diff --git a/smtp.php b/smtp.php index bd9d119..2f5fc3c 100644 --- a/smtp.php +++ b/smtp.php @@ -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 */