Trouble with php mail

I wrote a PHP site for manufacturer that their dealers use to mail price quotes to customers. When one of their dealers logs on, he gets the error below. I can log on and send a quote just fine. Mail processing is all done on the server (CodeIgniter/PHP). I’m a bit stumped how to troubleshoot this one. Suggestions?

[CODE]220 mail11.m****here.biz ESMTP

hello: 250-mail11.m****here.biz
250-PIPELINING
250-8BITMIME
250-SIZE 26214400
250 AUTH LOGIN PLAIN CRAM-MD5

from: 250 ok

data: 503 RCPT first (#5.5.1)

The following SMTP error was encountered: 503 RCPT first (#5.5.1)
502 unimplemented (#5.5.1)
The following SMTP error was encountered: 502 unimplemented (#5.5.1)
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Wed, 24 Aug 2011 14:59:26 -0500
Subject: =?utf-8?Q?System_Quote?=
From: “Dealer Name”
Return-Path:
Reply-To: “[email protected]
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: [email protected]
Mime-Version: 1.0
[/CODE]

Other dealers are not having troubles. This is the first report of any troubles. Could it somehow be related to the migration? Maybe his DNS is out of date and pointing to old servers or something?

No MX dns record found for this domain.
http://www.intodns.com/removed.com

Abhishek, I removed the dealer’s actual email address from the error message and replaced them with “removed.com”. Sorry for the confusion that might have caused.

“250-SIZE 26214400”
Is that the mail size in bytes? Maybe it’s too big?

Thanks for the suggestion. If I read this page SMTP Commands Reference (covers HELO/EHLO, MAIL, RCPT, DATA, RSET, VRFY, AUTH, STARTTLS etc) correctly, the SIZE command is coming from the server informing the client (php) what the max size of the message can be.

Besides, the email is all HTML formatted text. Definitely less than 2500 K even if the dealer selects every option. His direct emails to me don’t contain any hidden attachments so I highly doubt malware is stuffing the web form with a payload.

The error “The following SMTP error was encountered: 503 RCPT first” can be due to many things check your code and see if that is not trying to send mail to same recipient twice in the same code using a loop or something

OR

It can also be the case that your have CC or BCC in there in the code but the values are not being fetched. Do a google on this and it might help you out.