Help with SMTP response error

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
jeboy25
Forum Newbie
Posts: 11
Joined: Mon Mar 24, 2008 2:15 am

Help with SMTP response error

Post by jeboy25 »

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);
Post Reply