Last updated: Tue, Jan 10, 2023 9:52 pm
Return to Knowledgebase
# | Parameter | Data Type | Required | Description |
---|---|---|---|---|
1 | $to | Yes | undocumented | |
2 | $subject | Yes | undocumented | |
3 | $body | Yes | undocumented | |
4 | $opts = [] | Yes | undocumented | |
5 | $attachment = null | Yes | undocumented |
$opts = array(
\'email\' => \'from_email@aol.com\',
\'name\' => \'Bob Smith\'
);
email(\"bob@aol.com\",\"Hi Bob\",\"This is an email\",$opts);
$attachment = \"welcome.pdf\";
email(\"bob@aol.com\",\"Hi Bob\",\"This is an email\",$opts,$attachment);