View Full Version : Problem with System.Web.Mail
jordanbrock
11-15-2003, 11:34 AM
Howdy all,
I have a page that has the following:
objMsg = new MailMessage();
objMsg.BodyFormat = MailFormat.Text;
objMsg.To = strRecipient;
objMsg.Bcc = strRecipientCC;
objMsg.Subject = "Balneaire Seaside Resort Booking Request";
objMsg.Body = strMessage;
objMsg.From = strSender;
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(objMsg);
where strRecipient is an address on a domain hosted by DiscountASP.Net and strRecipientCC is my email address.
The problem is that the user on the DiscountASP.Net mail server isn't receiving the mail, whereas I, on another mail host, am.
Does anyone have any clues as to why this is?
Regards
Jordan Brock
jordanbrock
11-16-2003, 03:34 AM
Further to my last post, I have just received some delivery delay notifications, so it appears that its an issue with DiscountASP.Net.
Is this something I should raise with support?
Jordan
steurm
11-16-2003, 04:08 AM
[b]quote:Originally posted by jordanbrock
Further to my last post, I have just received some delivery delay notifications, so it appears that its an issue with DiscountASP.Net.
Is this something I should raise with support?
Jordan
</blockquote id="quote"></font id="quote">
I noticed the same delays, and raised it with support. According to them, this is caused by bare LF in your mail. Replace them with CRLF and you should be fine.
--
Steurm
www.steurm.net/steurm
bruce
11-16-2003, 05:04 AM
Please also contact support after fixing the bare LF problem.
We'll need to purge the queue before mail would start flowing.
[b]quote:Originally posted by steurm
[b]quote:Originally posted by jordanbrock
Further to my last post, I have just received some delivery delay notifications, so it appears that its an issue with DiscountASP.Net.
Is this something I should raise with support?
Jordan
</blockquote id="quote"></font id="quote">
I noticed the same delays, and raised it with support. According to them, this is caused by bare LF in your mail. Replace them with CRLF and you should be fine.
--
Steurm
www.steurm.net/steurm
</blockquote id="quote"></font id="quote">
bruce
11-17-2003, 02:01 AM
\n\r is a carraige return & line feed == vbCrLf
\n == vbCr
\r == vbLf
Hope this helps
[b]quote:Originally posted by jordanbrock
In my messages, I use the "\n" character to do a newline (I presume this is a bare LF.) What should I use in place?
Regards,
Jordan
</blockquote id="quote"></font id="quote">
jordanbrock
11-17-2003, 12:40 PM
In my messages, I use the "\n" character to do a newline (I presume this is a bare LF.) What should I use in place?
Regards,
Jordan
vBulletin® ©Jelsoft Enterprises Ltd.