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
Showing posts with label Bare LF. Show all posts
Showing posts with label Bare LF. Show all posts
Sunday, September 28, 2008
Subscribe to:
Posts (Atom)