Guys,
Getting this error:
"The message could not be sent to the SMTP server. The transport error code was 0x800ccc6a. The server response was 451 See http://pobox.com/~djb/docs/smtplf.html."
This problem is because of Bare LF ie new line feed.
This error comes when you have a multline textbox and while tying in it you press enter.When you press enter it is repalced by "\r\n" in IE and "\n" in mozilla.
just add the following line of code.Lets say you have a string called msg
msg = msg.Replace("\r\n", "
"); //This is to solve this error in IE
msg = msg.Replace("\n", "
"); //This is to solve this error in //Firefox,mozilla
msg = msg.Replace(Environment.NewLine, "
");
If you still have any problems please feel free to post here.
Cheers
admin
Sunday, September 28, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
THANK U!!! This was driving me crazy and your solution (3rd one is the charm!) worked! :)
Hi,
I am continually getting this error
"The message could not be sent to the SMTP server. The transport error code was 0x800ccc6a. The server response was 451 ESMTP MailEnable Service temporarily refused connection at 04/14/10 07:01:31 from IP (127.0.0.1) because the server is too busy."
Can you please help and let me know why this error is occuring. I have handles "\n\r" in my code and have replaced it with "
".
Post a Comment