smtp : Return the last message of the server when sending mail. There is the queue message id stored in it

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2715 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-05-03 13:16:26 +00:00
parent c39148bba0
commit f10b852369

View File

@@ -89,6 +89,8 @@ class smtp
* @param string|array $to the recipient of the email. Not displayed in the
* email content
* @param $completeMail The content of the email
* @return the message from the server (where is stored the message queue
* identifier
*/
public function send ($from, $to, $completeMail)
{
@@ -104,7 +106,7 @@ class smtp
$this->putLine ("DATA\r\n");
if (substr ($completeMail, -2) !== "\r\n")
$completeMail .= "\r\n";
$this->putLine ("$completeMail.\r\n");
return $this->putLine ("$completeMail.\r\n");
}
/** Disconnect from the SMTP server */