500 5.5.0 Syntax error - line too long

We are using VB .NET code to send out emails.  Occasionally we get one back with the above error.  What does it mean?
rkanterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PLeclairCommented:
In your Windows\System32\logfiles folder you should see a directory for SMTP..
Find the log that has the date of the error, open the log with notepad and do an edit/find search for "500 " or "5.5.0 "
You want to find the command that was issued, so it should be on the same line or the one above it just prior to the 5.5.0 error.
You may have to open IIS or in ESM's Protocols/SMTP branch and augment the details for the logging you are collecting.
You basically want to add all logging options using w3c format.
Once you have found the offending command, review your VB code to find the anomaly.

Thanks
Paul
0
rkanterAuthor Commented:
I forgot to point out that the email is addressed to several people.  Some get it without a problem.  There error is generated by the recipients email server not by ours.
0
rkanterAuthor Commented:
When it says 'line too long," what line iint the email s it talking about?
0
PLeclairCommented:
Generally anything issued in the command...

Basically an SMTP session start with
1. HELO or EHLO (extended SMTP)
2. Then it issues a FROM command when you provide the senders address
3. Then it issues an RCPT TO: command to designate the recipient, this command will have e-mail addresses in it etc..
4. Then it should issue a DATA command, followed by the message body..
5. Then it should issu a QUIT

So really, the likely places your code is messing up on are either CR carriage returns between commands, or the FROM, RCPT TO or DATA commands.. the EHLO and QUIT commands don't pass any parameters so I doubt those commands would have any relation to the problem..  
Thx
Paul
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rkanterAuthor Commented:
That helps.  I amm going out of town until Monday.  I will let you know what I find.
Thanks,
-Ron
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.