I have created a simple "send this to a friend" form but it seems to have problems when Hotmail addresses are used:
which submits to a page with the following code:
Set Mail = Server.CreateObject("SMTPs
Mail.FromName = Request.Form("name")
Mail.RemoteHost = "mail.mailserver.com"
Mail.AddRecipient "", Request.Form("friendemail"
Mail.Subject = Request.Form("subject")
Mail.BodyText = Request.Form("message")
I have several email accounts on this server and testing any combination of these as sender/recipient works fine.
At first I had no subject/message fields for testing and using a hotmail address as recipient did not work, the email didnt ever arrive. By adding a subject and message body they now do arrive at a hotmail recipient (using one of my "proper" email addresses as sender)
But, the message is always put into junk, which isnt great. Any idea on how to prevent this from happening would be good.
Also, using a hotmail address as sender and another hotmail as receipient, the email never arrives.
But, using a "proper" email address as recipient, and hotmail as sender, the email DOES arrive!
Not sure whats going on, just need help/ideas to troubleshoot/explain this.