Click here to Skip to main content
15,885,743 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a windows application from which clients can send an invite to their friends to join the program.

I am using the following code to send mail:
string body = "Dear " + friend + Environment.NewLine +
Environment.NewLine + "Your friend " + name + " invites you to join the program. Download from this link - " + "http://www.myurl.com";
MailMessage msg = new MailMessage("info@myurl.com", email, name + " is inviting you to join ", body);

SmtpClient SmtpMail = new SmtpClient("mail.myurl.com", 25);
SmtpMail.Credentials = new NetworkCredential("info@myurl.com", "mypassword");
SmtpMail.EnableSsl = false;

SmtpMail.Send(msg);


This works fine with all the email we have tested apart from hotmail.
I have contacted hotmail support and joined their Junk Reporting Plan as requested and still the emails went to junk folder.

When I queried this again I got loaded with a massive document which I cannot understand. http://postmaster.live.com/Guidelines.aspx[^]

and SmartScreen[^]


and http://download.microsoft.com/download/e/3/3/e3397e7c-17a6-497d-9693-78f80be272fb/enhance_deliver.pdf

Can anybody please explain this in plain english and show me what I need to do. As always Microsoft help is a nightmare and not helpful at all.

I have given up on them after 2 weeks of emails.

Thanks to anyone who can help
Posted
Updated 6-Jul-11 8:54am
v2

I don't think it is related to any problems with your sending code. It all depends on how anti-spam filtering is configured on the Hotmail side. You should contact Hotmail again and ask for resolution. Maybe this is related just to the configuration of the e-mail account of the recipient.

—SA
 
Share this answer
 
Comments
milenalukic 6-Jul-11 15:33pm    
Yes i know that. But their answer is to comply with thoses documents. What the question was is how to comply.
Did you check any of the points in:

http://postmaster.live.com/Guidelines.aspx[^]

For example:

* Messages must not be transmitted through insecure email relay or proxy servers.

* Connections from dynamic IP space may not be accepted.

* Email servers must have valid reverse DNS records.

Is your email server "mail.myurl.com" set up correctly? Does it have a valid reverse DNS record? Does it have a static IP address?

You are sending the message with SSL disabled -- this might be sufficient for Hotmail to decide the email is insecure and route it to the spam folder.

Have you tried sending the exact same email message from a standard email client?

That way you can differentiate between problems with the content of the message and problems with the way it is being sent.

Hotmail may decide that short messages with links in them are spam unless they come from people in the recepients address book. (That's a pretty reasonable assumption.)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900