This works on the computer I developed it on (Windows 10 Pro 64-bit, Office 2013 Pro)
It Also works on a computer I have deployed it on (Windows 7 Pro 64bit, Office 2010 Pro)
It doesnt work on the second computer I have deployed it on. (Windows 7 Pro 64-bit, Office 2010 Pro)
My Location is IA, the first location is in NC the other is in TX... But States cant make a difference.
Code:
Set cdomsg = CreateObject("CDO.message") With cdomsg.Configuration.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'NTLM method
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
.Item("http://schemas.microsoft.com/cdo/configuration/smptserverport") = 25
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 5
.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "me@gmail.com"
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = key
.Update
End With
' build email parts
With cdomsg
.To = "me@host"
.From = "me@gmail.com"
.Subject = "Title"
.AddAttachment (dirname & fullName)
.TextBody = "Body"
.Send
End With
Set cdomsg = Nothing

Port 25 isnt block, and they use Outlook for emails, so why there is a issue I dont know