Note the two key lines: port number is set to 587 and enablessl is set because hotmail uses SecureSocketsLayer on its connections. The email that is sent says :
From: [the server email account adress] on behalf of [name of person account is registered to] ([the email address you put as from i.e. a@bb.net])
This means you cannot create fake emails through Hotmail without the receiver knowing

Hope this helps, Ed

This post has been edited by JackOfAllTrades: 07 January 2011 - 06:40 AM

I somehow set my email Username, Password, Host and Port in web.config file.
When sending email, it actually send from the email I set.
Is it possible to not displaying my email but display "noreply@mydomain.com" to receiver?

I somehow set my email Username, Password, Host and Port in web.config file.
When sending email, it actually send from the email I set.
Is it possible to not displaying my email but display "noreply@mydomain.com" to receiver?

I somehow set my email Username, Password, Host and Port in web.config file.
When sending email, it actually send from the email I set.
Is it possible to not displaying my email but display "noreply@mydomain.com" to receiver?

I somehow set my email Username, Password, Host and Port in web.config file.
When sending email, it actually send from the email I set.
Is it possible to not displaying my email but display "noreply@mydomain.com" to receiver?

Please i need some clarification on this.I really don't understand this part smtp.Host = "mail.mycompanyid.net";.What is this really talking about is it looking for my machine name or which ESSEL-PC or localhost or is it for example i have an email at yahoo so in that case can i just write smtp.yahoo.com or.Please help me