Good morning everyone.
Given the requests I decided to solve the problem of my example of SendMail2 and Gmail.
I can confirm that with SendMail2 it is possible to send emails using Google.
The steps to take are:
1)Log into your Google account
2)Select security
3)Enable 2-step authentication and within it choose passwords for the apps.
Give the application a name, a long password including spaces will be generated
The entire password (including spaces) must be used for SMTP authentication
Due to the presence of spaces SendMail2 requires small changes
Line 818 goes from:
aadd(acCmd," --user "+cFrom+":"+cPassword)
to like this:
aadd(acCmd,[ --user "]+cFrom+":"+cPassword+["])
Line 1118 cBuff := Space( 1024 ) e
Line 1128 nBytes := FRead( hStdOut, @cBuff, 1024 )
change to:
1118 cBuff := Space( 2048 )
1128 nBytes := FRead( hStdOut, @cBuff, 2048 )
At this point SendMail 2 can use both CDO and CURL using Google as the provider
and the following parameters:
smtp.gmail.com port 465 SSL
If Grigory has further time available for a new Release these and other active changes
will be distributed.
Happy programming with Minigui Exteded.
--
Pierpaolo Martinello [ Minigui Extended Team ]
IW1CUY Ham Radio From Biella Italy
Linux User 177880