NetTalk Central
NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: Alberto on February 04, 2014, 03:26:21 PM
-
Hi,
I´m trying to use the gmail smtp to send mails and I get errors like the attached image.
I have inatalled all the secure dll´s indicated in the help.
Thanks
[attachment deleted by admin]
-
you can add code to the .Process and .Send methods to "see" the conversation. That can help to determine what might be wrong.
The email you are sending though - does it have a large attachment?
cheers
Bruce
-
Hi Bruce,
The mail has a simple line, no atachmets.
HOw can I see the conversation, which code must I use in Process and Send?
-
Try with port 587 with SSL
-
ok port 587
but how do I use SSL ? what do I need to change?
-
i don't why but i configurate my SQL Server for send email with google relay and only work via SSL
Try with
ThisEmailSend.SSL = 1
-
Ok I use the new port and ThisEmailSend.SSL = 1
Caroot.pem is in the app forlder but I allways get the same error, see image
SSL failed to load Ca root file.
What am I missing?
Thanks
[attachment deleted by admin]
-
in your email procedure what is the name of the CA Root certificate set to?
caroot.pem or ca_root.pem, or something else?
the name of the file on the disk must match the name in this setting.
cheers
Bruce
-
I send through gmail all the time, and I use the following settings
ThisEmailSend.Server = 'smtp.gmail.com'
ThisEmailSend.Port =587
ThisEmailSend.SSL = 1
ThisEmailSend.SecureEmailStartTLS = 1
If ThisEmailSend.SSL or ThisEmailSend.SecureEmailStartTLS
ThisEmailSend.SSLCertificateOptions.CertificateFile = ''
ThisEmailSend.SSLCertificateOptions.PrivateKeyFile = ''
ThisEmailSend.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 0
ThisEmailSend.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 0
ThisEmailSend.SSLCertificateOptions.CARootFile = '.\certs\CA Roots\CA_Roots.pem'
end
If ThisEmailSend.SecureEmailStartTLS
ThisEmailSend.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
end
-
Thanks debzidoodle !
But using your code the email is sent but it does not arrive at any account.
I´ve tried sending to a hotmail and a gmail account but nothing, no errors, no nothing.
Any idea?
-
Using the sending account from gmail, do you see it in the sent items? If so I would say its getting blocked or sent to junk mail somewhere along the way. If its not in sent items then it did not get sent and you have something else wrong. Make sure in your Error Trap embed that you check ThisEmailSend.ServerErrorDesc for any errors. Google is pretty good about giving descriptions if you are doing something wrong.
-
Michelis,
Try sending to another Gmail account, first. That will tell you if you're successfully getting into the Gmail SMTP server, or not. If you receive the mail at your alternate Gmail account, then you've made it this far. If not, you're still missing something in the connect/send bit on your side.
If your test is received at another Gmail account, but not at a Hotmail, Outlook or Yahoo account, then you might only be missing some security settings in the connect bit on your side. This is the kind of troubleshooting I do with my clients who have the same problem.
Flint
-
Only two years late ... hope you got it figured out already :D
Michelis,
Try sending to another Gmail account, first. That will tell you if you're successfully getting into the Gmail SMTP server, or not. If you receive the mail at your alternate Gmail account, then you've made it this far. If not, you're still missing something in the connect/send bit on your side.
If your test is received at another Gmail account, but not at a Hotmail, Outlook or Yahoo account, then you might only be missing some security settings in the connect bit on your side. This is the kind of troubleshooting I do with my clients who have the same problem.
Flint