Mail::send
Send email
メモ
If there is added attachment file, this method will call Mail::sendWithFile automatically
メモ
If debug flag is enabled, this method will call Mail::log automatically
Description
public self Mail::send( string $to, [ string $from_name = null, string $from_ad = null ] )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$to | string | Send email address | |
$from_name | string | null | Sender name |
$from_ad | string | null | Sender address |
Example
Controller
$mail = $this->getClass('Tool/Mail');
$mail->subject('Mail subject');
$mail->body('Mail body');
$mail->send('mail@example.com', 'John Doe', 'from@example.com');