Hi all:
Some of you have answered my past 2 threads on vbSendMail (thread222-1505112) and Email Security (thread222-1505888), so I'm again hoping for your help.
I've done some studying and found that CDO may be the way to go, but I'm still having problems with security. It seems the SSL is there, but not the TLS.
Any Help will be greatly appreciated
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors
Some of you have answered my past 2 threads on vbSendMail (thread222-1505112) and Email Security (thread222-1505888), so I'm again hoping for your help.
I've done some studying and found that CDO may be the way to go, but I'm still having problems with security. It seems the SSL is there, but not the TLS.
Code:
Dim iMsg As New CDO.Message
Dim iConfg As New CDO.Configuration
Set iConfg = New CDO.Configuration
Set Flds = iConfg.Fields
schema = "[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/"[/URL]
Flds.Item(schema & "sendusing") = 2
Flds.Item(schema & "smtpserver") = "mail.SMTP.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "sendusername") = "someone@somewhere.com"
Flds.Item(schema & "sendpassword") = "Password!"
Flds.Item(schema & "smtpusessl") = 1
Flds.Item(schema & "smtpusetls") = 1
Flds.Update
With iMsg
.HTMLBody = "<HTML>Test</HTML>"
.Subject = "CDO Test"
.To = "Me@Source.tv"
.From = "CS@Mask.com <someone@somewhere.com>"
.Sender = "Mask"
.ReplyTo = "CS@Mask.com"
Set .Configuration = iConfg
.Send
End With
''Receives error:
''The Transport failed to connect with the server
Any Help will be greatly appreciated
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors