Problem with System.Web.Mail

Discussion in 'ASP.NET / ASP.NET Core' started by jordanbrock, Nov 15, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. 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
     
  3. 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
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    Please also contact support after fixing the bare LF problem.

    We'll need to purge the queue before mail would start flowing.

    quote:Originally posted by steurm

    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">
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    \n\r is a carraige return & line feed == vbCrLf

    \n == vbCr
    \r == vbLf

    Hope this helps


    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">
     
  6. 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
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page