Jump to content

Recommended Posts

SOMETIMES my program failed to send email n show error msg like:-

 

SMTP -> FROM SERVER:

SMTP -> FROM SERVER:

220 mail.mtat.com ESMTP ) Ready

SMTP -> ERROR: EHLO not accepted from server: 220 mail.mtat.com ESMTP ) Ready

SMTP -> FROM SERVER:

250-mail.mtat.com Hello localhost.localdomain (172.21.30.72)

250 SIZE

SMTP -> FROM SERVER:

503 mail.mtat.com Duplicate HELO

SMTP -> ERROR: MAIL not accepted from server: 503 mail.mtat.com Duplicate HELO

SMTP -> FROM SERVER:

250 sender ok <nomination@mtat.com>

Message could not be sent. <p>Mailer Error: Language string failed to load: from_failednomination@mtat.com

 

Here's my source code example:-

 

function Hello($host="")

{

        $this->error = null;

        if(!$this->connected()) {

            $this->error = array(

                    "error" => "Hello() called without connection");

            return false;

        }

 

        if(empty($host)) {     

            $host = "localhost";

        }

        if(!$this->SendHello("EHLO", $host))

        {

            if(!$this->SendHello("HELO", $host))

                return false;

        }

        return true;

}

 

this is really frustrating to me and this prob doesn't happen avtime.. juz SOMETIMES oni...

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.