Help with SMTP response error
Posted: Tue Aug 19, 2008 9:40 pm
I encountered the following error:
There was a problem reading line 1 of an SMTP response. The response so far was:
[]. It appears the connection has died without saying goodbye to us! Too many emails in one go perhaps? (fsockopen: #0)
Sometimes it outputs that error, sometimes not.
This is my code:
$swift =& new Swift(new Swift_Connection_SMTP("localhost"));
// Create a message
$message =& new Swift_Message($subject);
$message->attach(new Swift_Message_Part($txtBody));
$message->attach(new Swift_Message_Part($htmlBody, 'text/html'));
// Send email
$swift->send($message, "assistance@universalpinoy.net", $EmailAddress);
There was a problem reading line 1 of an SMTP response. The response so far was:
[]. It appears the connection has died without saying goodbye to us! Too many emails in one go perhaps? (fsockopen: #0)
Sometimes it outputs that error, sometimes not.
This is my code:
$swift =& new Swift(new Swift_Connection_SMTP("localhost"));
// Create a message
$message =& new Swift_Message($subject);
$message->attach(new Swift_Message_Part($txtBody));
$message->attach(new Swift_Message_Part($htmlBody, 'text/html'));
// Send email
$swift->send($message, "assistance@universalpinoy.net", $EmailAddress);