Click here to Skip to main content
15,879,095 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 - " + "";
MailMessage msg = new MailMessage("", email, name + " is inviting you to join ", body);

SmtpClient SmtpMail = new SmtpClient("", 25);
SmtpMail.Credentials = new NetworkCredential("", "mypassword");
SmtpMail.EnableSsl = false;


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.[^]

and SmartScreen[^]


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
Updated 6-Jul-11 8:54am

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.

Share this answer
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:[^]

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 "" 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