- Methods
- Static Methods
mail::add_to()
Add an email address to the email TO.
Prototype
void add_to(string $email, string $name = NULL)
Parameters
- email - Email address.
- name - Optional human-readable name.
Example
$mail = new \io_comand_email\mail(
'webmaster@webcomand.com',
'Testing',
"This is a test.\nTesting 1, 2, 3."
);
$mail->add_to('name@example.com', 'Full Name');
$mail->send();