NetTalk E-Mail > E-Mail - Ask For Help

Email using Gmail

(1/1)

elcidsps:
Gurus:

Does anyone have an example of sending an email using gmail as an account?  Thanks!  Cheers!

Shawn

Graham:
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

elcidsps:
Hey Graham:

That nailed it.  Thanks for your help.

Navigation

[0] Message Index

Go to full version