From the inline documentation:
Code:
* @param string $to_name The name of the recipient, e.g. "Jim Johanssen"
* @param string $to_email_address The eMail address of the recipient, e.g. [email protected]
* (used as $to_email_address after validation)
* @param string $email_subject The subject of the eMail
* @param string $email_text The text of the eMail, may contain HTML entities
* @param string $from_email_name The name of the sender, e.g. Shop Administration
* @param string $from_email_adrdess The eMail address of the sender, e.g. [email protected]
* @param array $block Array containing values to be inserted into HTML-based email template
* @param string $module The module name of the routine calling zen_mail. Used for html template selection and email archiving.
* This is passed to the archive function denoting what module initiated the sending of the email
* @param array $attachments_list Array of attachment names/mime-types to be included (this portion still in testing, and not fully reliable)
**/
zen_mail($to_name, $to_address, $email_subject, $email_text, $from_email_name, $from_email_address, $block=array(), $module='default', $attachments_list='' )
So, the example then becomes:
Code:
zen_mail( Name-of-recipient,
Email-of-recipient,
Email-subject,
Text-Only-Content,
Name-of-Sender,
Email-of-sender,
Array-of-HTML-content-variables-to-be-replaced-by-HTML-Email-templates
)
The $module and $attachments_list are optional.
Actually, the HTML array $block is also optional if you're sending text-only emails.