webCOMAND

mail::send()

Send the email created with the constructor and customized with other methods.

Prototype

boolean send(log $log = NULL)

Parameters

  • log - Optional log to log any errors that occur while trying to send the email.

Return

Returns TRUE if the email was successfully accepted for delivery, otherwise FALSE.

Just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.

Example

$mail = new \io_comand_email\mail(
    'webmaster@webcomand.com',
    'Testing',
    "This is a test.\nTesting 1, 2, 3."
);
$mail->send();

Related

mail()