NetTalk Central
NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: elcidsps on January 21, 2010, 10:56:54 AM
-
Gurus:
Does anyone have an example of sending an email using gmail as an account? Thanks! Cheers!
Shawn
-
Hi Shawn,
I'm no guru but you need to enable SSL for Gmail - try this:
ThisEmailSend.Server = 'smtp.gmail.com'
ThisEmailSend.Port = '587' ! Outlook 2007 Client port
ThisEmailSend.AuthUser = myUsername
ThisEmailSend.AuthPassword = myPassword
ThisEmailSend.SSL = 1
ThisEmailSend.SecureEmailStartTLS = 1
ThisEmailSend.SSLCertificateOptions.CertificateFile = ''
ThisEmailSend.SSLCertificateOptions.PrivateKeyFile = ''
ThisEmailSend.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
ThisEmailSend.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
ThisEmailSend.SSLCertificateOptions.CARootFile = ''
Try the the NetDemo Email example for more insights/info
hth
Graham
-
Hey Graham:
That nailed it. Thanks for your help.