Mail

$this->mail->setTo($to);

Set the recipient’s email address.

$this->mail->setFrom($from);

Set the sender email address.

$this->mail->setSender($sender);

Set the name of the sender.

$this->mail->setSubject($subject);

Set the subject line for the email.

$this->mail->setText($text);

Set the text format version of the email content.

$this->mail->setHtml($html);

Set the HTML version of the email content.

$this->mail->addAttachment($filename);

Add an attachment to the email.

$this->mail->send();

Send the email.

Last update: August 23rd at 11:11pm