Public Member Functions | |
addAttachment ($path, $name, $type="octet-stream") | |
Add an attachment to the email. | |
addRecipient ($recipient) | |
Add a recipient to the email. | |
clearRecipients () | |
Clear the list of recipients. | |
sendMail () | |
Send the email message. | |
setDevRecipient ($email) | |
Set the email address that emails will be sent to during testing. | |
setFrom ($from) | |
Set the from address. | |
setMessage ($message) | |
Set the message body of the email. | |
setReplyTo ($address) | |
Set the reply-to address. | |
setSubject ($subject) | |
Set the subject of the email. |
Mailer::addAttachment | ( | $ | path, | |
$ | name, | |||
$ | type = "octet-stream" | |||
) |
Add an attachment to the email.
$path | [string]: The path to the file we are attaching | |
$name | [string]: The name of the file. | |
$type | [string]: (optional) The MIME type for the file. If none is set it will default to octet-stream. |
Mailer::addRecipient | ( | $ | recipient | ) |
Add a recipient to the email.
$recipient | [mixed]: An email address of a recipient, or an array of email addresses |
Mailer::sendMail | ( | ) |
Send the email message.
Sends a message containing the subject, message body, reply-to, etc., to all added recipients (call processRecipients() to generate a string version of the recipient list)
Mailer::setDevRecipient | ( | $ | ) |
Set the email address that emails will be sent to during testing.
<<<<<<< Updated upstream
[string]: The email that collects emails sent by the dev server during testing |
Mailer::setFrom | ( | $ | from | ) |
Set the from address.
$from | [string]: The email address from which the email will (appear to) be sent |
Mailer::setMessage | ( | $ | message | ) |
Set the message body of the email.
======= >>>>>>> Stashed changes
$message | [string]: The message body of the email |
Mailer::setReplyTo | ( | $ | address | ) |
Set the reply-to address.
$address | [string]: The reply-to email address for the email |
Mailer::setSubject | ( | $ | subject | ) |
Set the subject of the email.
$subject | [string]: The subject of the email |