emails are not reaching Windows Live Hotmail

Discussion in 'Email' started by jrahma, Aug 9, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I havethis trouble for weeks already.. I am using this code to send emails from my website and it'w working fine, at least with few domains which i have already checked but when i send to Windows Live Hotmail it just disappear!! i don't get any thing in inbox or Junk folder. I checked on the web and found that I have to update my SPF which i didn already and when I check this link it tells me i have no problem with the SPF was found but i still don't get the emails in Windows Live Hotmail? Any idea what should I do?



    here is the SPF link:
    http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/



    here is the code:



    MailMessage mail_message = new MailMessage();


    // SmtpClient smtp_client = new SmtpClient("smtp.zatoor.com");


    SmtpClient smtp_client = new SmtpClient("localhost");


    NetworkCredential network_credential = new NetworkCredential("[email protected]", "xxxxxxx");


    smtp_client.UseDefaultCredentials = false;


    smtp_client.Port = 25;


    smtp_client.Credentials = network_credential;


    html_message = "<html>";


    html_message += "<head>";


    html_message += "<meta http-equiv=Content-Type content='text/html; charset=windows-1252'>";


    html_message += "</head>";


    html_message += "";


    html_message += "<img alt=' zatoor.com ' src='http://www.zatoor.com/images/common/website_logo.jpg' border='0'>";


    html_message += "you have received this message from zatoor.com in response of your post located at:";


    html_message += "";


    html_message += "<a href='http://www.zatoor.com/post.aspx?id=" + post_id.ToString() + "'>http://www.zatoor.com/post.aspx?id=" + post_id.ToString() + "</a>";


    html_message += "";


    html_message += "<hr>";


    html_message += "<< From : " + txtEmailAddress.Text + " >>";


    html_message += "";


    html_message += txtMessage.Text;


    html_message += "";


    html_message += "</body>";


    html_message += "</html>";


    mail_message.From = new MailAddress("[email protected]", "zatoor.com");


    mail_message.ReplyTo = new MailAddress(txtEmailAddress.Text);


    mail_message.To.Add(post_email);


    mail_message.Headers.Add("company", "zatoor.com");


    mail_message.Headers.Add("machine", Environment.MachineName);


    mail_message.Headers.Add("user", Environment.UserName);


    mail_message.Priority = MailPriority.Normal;


    mail_message.IsBodyHtml = true;


    mail_message.Subject = post_title;


    mail_message.Body = html_message;


    smtp_client.Send(mail_message);
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    2 problems

    1) Cause HotMail sucks!! I used to use Hotmail personally but they been losing a lot of email since about 6 months ago and I ditch em.

    2) You should use "localhost" as the SMTP server for your web application
     
  3. Make sure you set 'localhost' as the smtp server on your web application.
     
  4. i did used localhost. I also tried aspnetEmail with both System.Net.Mail and aspnetEmail but I am stil having the same problem.. do you think DiscountASP needs to update thier domains and IPs in the SPF?
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    create a support ticket and let them know the to / from address. We can parse the log to see where the email went.
     
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