Forum Moderators: open

Message Too Old, No Replies

JMail and Hotmail

         

raztud

11:07 am on Nov 17, 2005 (gmt 0)

10+ Year Member



Hi
I'm trying to send mails using JMail and VBS, but Hotmail put my mails in Junk Folder. With gmail all it works fine.
My code:
smtpServer = "127.0.0.1" 'if I put my real mail server hostname/ipaddress doesn't work
smtpPort = 25
sender = "realaccount@example.com"
senderName = "My Real Name"
...
Set mail = CreateObject ("JMail.SMTPMail")
mail.ServerAddress = smtpServer & ":" & smtpPort
mail.Sender = sender
mail.Subject = subject
mail.AddRecipient email
mail.SenderName = senderName
mail.ContentType = "text/html"
mail.ISOEncodeHeaders = false
mail.ContentTransferEncoding = "8bit"
mail.Body = body
mail.Priority = 3
mail.AddHeader "Originating-IP", "ip.of.mail.server"
mail.Execute
set mail = nothing

[edited by: Xoc at 11:15 pm (utc) on Nov. 18, 2005]
[edit reason] changed to use example.com [/edit]

mrMister

3:16 pm on Dec 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's unlikely to be a problem with your code. It's more likely to be the way your mail server's set up.

If you're just using your local machine's smtp service, it won't have proper rDNS entries.

You should get it working with your real mail server. You most likely need to authenticate with the server in some way first.

redzone

9:52 pm on Dec 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Inbound Hotmail goes through BrightMail's filtering technology. If you don't have valid RDNS, you will never make it to inbox.