NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: elcidsps on January 21, 2010, 10:56:54 AM

Title: Email using Gmail
Post 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
Title: Re: Email using Gmail
Post by: Graham on January 21, 2010, 09:17:29 PM
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
Title: Re: Email using Gmail
Post by: elcidsps on January 24, 2010, 06:47:03 AM
Hey Graham:

That nailed it.  Thanks for your help.