Permalink
Browse files

QA action, 6 months since patch was uploaded and known to work

git-svn-id: http://svn.php.net/repository/pear/packages/Mail/trunk@289157 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
kenguest committed Oct 4, 2009
1 parent 81a6ca7 commit 285d97b62b1fc2edf820839b6a783b5bae3f551d
Showing with 10 additions and 0 deletions.
  1. +10 −0 Mail/smtp.php
View
@@ -278,6 +278,16 @@ function send($recipients, $headers, $body)
/* Send the message's headers and the body as SMTP data. */
$res = $this->_smtp->data($textHeaders . "\r\n\r\n" . $body);
+ list(,$args) = $this->_smtp->getResponse();
+
+ if (preg_match("/Ok: queued as (.*)/", $args, $queued)) {
+ $this->queued_as = $queued[1];
+ }
+
+ /* we need the greeting; from it we can extract the authorative name of the mail server we've really connected to.
+ * ideal if we're connecting to a round-robin of relay servers and need to track which exact one took the email */
+ $this->greeting = $this->_smtp->getGreeting();
+
if (is_a($res, 'PEAR_Error')) {
$error = $this->_error('Failed to send data', $res);
$this->_smtp->rset();

0 comments on commit 285d97b

Please sign in to comment.