webCOMAND

mail::options()

Add or update multiple email options.  To set a single option, see mail::option().

Prototype

void options(array $options, boolean $ignore_invalid = FALSE)

Parameters

  • options - Associative array of options where the key/value pairs correspond to the the parameters accepted by option().
  • ignore_invalid - FALSE (default) to throw an exception if the key is not recognized.  TRUE to to silently skip setting the option if the key is not valid.

Example

$mail = new \io_comand_email\mail(
    'webmaster@webcomand.com',
    'Testing',
    "<p>This is a test.<br/>\nTesting 1, 2, 3.</p>"
);
$mail->option('bcc', 'archive@example.com');
$mail->option('smtp_ssl_verify_peer', FALSE);
$mail->send();

Related