[Gambas-user] using smtp to send mail
Ivan Williams
ivanwms64 at yahoo.com
Thu Dec 5 18:09:35 CET 2019
Greetings,
I am trying to incorporate a routine within my program to send a email using gmail but I m receiving a 502 error when activating the routine.
Dim Email As New SmtpClient
Email.Host = "smtp.gmail.com" Email.User = "joecool at gmail.com" Email.Password = "snoopy"
Email.From = "joecool at gmail.com" Email.To.Add("woodstock at yahoo.com")
Email.Subject = "Great Pumpkin" Email.Body = "Pumpkin Patch"
I am getting a 502 when trying to send the email - unable to authenticate error - can anyone assist or point me in the right direction.
Thank You
Ivan \~/
I never saw a wild thing sorry for itself.
A small bird will drop frozen dead from a bough
Without ever having felt sorry for itself.
-- D.H. Lawrence
http://www.usconstitution.net/const.html
Linux - Live Free or Die.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191205/59701e7e/attachment.html>
More information about the User
mailing list