Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I am trying to send the msg body to the server it gives the response as 554 for SMTP command.In the wireshark i checked the server says 554-Rejected message containing bare LF's.
I was try to send the msg and adding the \r\n at the end, again i was getting the same error.
can any one tell the reason.
Ex: My msg body contains "Invalid column name 'CLIENT_SITE_ID'.
Statement(s) could not be prepared."
In above msg after the client_site_id i think it has some new line, i am only getting upto Invalid column name 'CLIENT_SITE_ID' only.
Posted
Comments
Mohibur Rashid 19-Jan-12 4:06am    
convert all \r\n to \r only and see

It's not enough to append a '\r\n'. All lines must be CRLF terminated. So replace all single '\n' line terminations by '\r\n'.
 
Share this answer
 
hi all i resolved this issue by breaking the msg if it contains new line then appended the msg's and passed this msg to server.Thank u all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900