Eljefegeneo
Still trying to learn
- Local time
- Today, 04:23
- Joined
- Jan 10, 2011
- Messages
- 902
I have the following code that worked fine until I tried it today. I have not used it in a while, so I don't know how long this has been not working properly.
Now I get the following error message:
"Incorrect Credentials!! – This message could not be sent to the SMPT server. The transport error code was 0x80040217. The server response was not available."
Thinking perhaps I needed to be on Gmail to use this, I logged on to my account but get the same message.
Code:
msConfigURL = "http://schemas.microsoft.com/cdo/configuration"
With fields
'Enable SSL Authentication
.Item(msConfigURL & "/smtpusessl") = True
'Make SMTP authentication Enabled=true (1)
.Item(msConfigURL & "/smtpauthenticate") = 1
.Item(msConfigURL & "/smtpserver") = "smtp.gmail.com"
.Item(msConfigURL & "/smtpserverport") = 465
.Item(msConfigURL & "/sendusing") = 2
.Item(msConfigURL & "/sendusername") = "mySignInName@gmail.com"
.Item(msConfigURL & "/sendpassword") = "myPassword"
.Update
End With
NewMail.Configuration = mailConfig
NewMail.Send
"Incorrect Credentials!! – This message could not be sent to the SMPT server. The transport error code was 0x80040217. The server response was not available."
Thinking perhaps I needed to be on Gmail to use this, I logged on to my account but get the same message.