Welcome! Log In Create A New Profile


Sending mail via Gmail SMTP

Posted by Willy 
Sending mail via Gmail SMTP
February 19, 2019 01:28PM

Sending mil via mozilla thunderbird is easy.

I want to send mail via a webdev site using a gmail account.

I See in the setting OAut2.

I can not find that in de windev language.

Is this supported.

Willy Hermans
Re: Sending mail via Gmail SMTP
February 19, 2019 06:27PM
You don't need OAut2 to use the gmail smtp server.

In the sending gmail account you must activate the Allow less secure apps in the security settings.
In your webdev app just use the gmail SMTP server settings in the EmailStartSMTPSession function and send the email using the EmailSend function.
You can use other functions instead of EmailStartSMTPSession,EmailSend but the gmail settings are the same.

Be careful with the limits of gmail, it depends on your account but it has limits.

Gmail SMTP server settings:
Server: smtp.gmail.com
Encryption/Authentication: SSL
Port: 465
Server: smtp.gmail.com
Encryption/Authentication: StartTLS
Port: 587


Paulo Oliveira

Edited 1 time(s). Last edit at 02/19/2019 06:44PM by pao.
Re: Sending mail via Gmail SMTP
February 22, 2019 10:13AM
Thank you very much.

After changing the settings of the email account, it works fine.

There is always a message to the recipients that it can be spam.

I think I have to live with it. The recipients knows it is not spam.
Re: Sending mail via Gmail SMTP
February 22, 2019 10:47AM
What is the sender you are using?
It's one address from gmail like my_app@gmail.com or from some other domain like my_app@my_app.com?

Normally if the SPF and DKIM records don't match you will endup in troubles.


Paulo Oliveira

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.