function SMTP::sendAndMail
Search API
5.x SMTP.php | public SMTP::sendAndMail($from) |
Send an SMTP SAML command. Starts a mail transaction from the email address specified in $from. Returns true if successful or false otherwise. If True the mail transaction is started and then one or more recipient commands may be called followed by a data command. This command will send the message to the users terminal if they are logged in and send them an email. Implements RFC 821: SAML <SP> FROM:<reverse-path> <CRLF>.
Parameters
string $from The address the message is from:
Return value
bool
File
- inc/
PHPMailer/ src/ SMTP.php, line 981
Class
- SMTP
- PHPMailer RFC821 SMTP email transport class. Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
Code
public function sendAndMail($from) {
return $this->sendCommand('SAML', "SAML FROM:$from", 250);
}