NetTalk Central

Author Topic: Email using Gmail  (Read 9902 times)

elcidsps

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Email using Gmail
« 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

Graham

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Email using Gmail
« Reply #1 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

elcidsps

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Re: Email using Gmail
« Reply #2 on: January 24, 2010, 06:47:03 AM »
Hey Graham:

That nailed it.  Thanks for your help.