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:
4
smtp.php
4
smtp.php
@@ -89,6 +89,8 @@ class smtp
|
|||||||
* @param string|array $to the recipient of the email. Not displayed in the
|
* @param string|array $to the recipient of the email. Not displayed in the
|
||||||
* email content
|
* email content
|
||||||
* @param $completeMail The content of the email
|
* @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)
|
public function send ($from, $to, $completeMail)
|
||||||
{
|
{
|
||||||
@@ -104,7 +106,7 @@ class smtp
|
|||||||
$this->putLine ("DATA\r\n");
|
$this->putLine ("DATA\r\n");
|
||||||
if (substr ($completeMail, -2) !== "\r\n")
|
if (substr ($completeMail, -2) !== "\r\n")
|
||||||
$completeMail .= "\r\n";
|
$completeMail .= "\r\n";
|
||||||
$this->putLine ("$completeMail.\r\n");
|
return $this->putLine ("$completeMail.\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Disconnect from the SMTP server */
|
/** Disconnect from the SMTP server */
|
||||||
|
|||||||
Reference in New Issue
Block a user