Introduction
Providing some functions for sending email
How to use
You can load Mail
class through Application::getClass
method.
Controller
$mail = $this->getClass('Tool/Mail');
$mail->subject('Mail subject');
$mail->body('Mail body');
$mail->send('mail@example.com', 'John Doe', 'from@example.com');
Methods
- Mail::__construct
- Setup sending image
- Mail::subject
- Set mail subject
- Mail::body
- Set mail body
- Mail::pushHeader
- Add custom header
- Mail::removeHeader
- Remove custom header
- Mail::pushAttached
- Add attachment file
- Mail::send
- Send email
- Mail::sendWithFile
- Send email with attachment file
- Mail::log
- Save log file instead sending email
- Mail::setInputCharset
- Set input character set
- Mail::setSendCharset
- Set email character set
- Mail::setDebugFlag
- Set debug flag and log file name