webCOMAND

mail::__construct()

The mail constructor prepares an email that can be built upon and ultimately sent with support methods.

Prototype

mail __construct(string $to = NULL, string $subject = NULL, string $message = NULL)

Parameters

See parameters for static method mail().

Example

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