Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By Kenneth Inman
#62286 Trying to use the email with a gmail account but it doesn't seem to work. No error is reported and no email is received.
My question is, does it work with gmail if I have gmail settings properly configured?

setupemail "smtp.gmail.com", 465, "<sourceaddr>@gmail.com", "<password>"
email "<destinationaddr>@gmail.com", "<sourceaddr@gmail.com", "Testing", "TEST"
wait

FYI:
Gmail SMTP server address: smtp.gmail.com.
Gmail SMTP username: Your full Gmail address (e.g. yourusername@gmail.com)
Gmail SMTP password: Your Gmail password.
Gmail SMTP port (TLS): 587.
Gmail SMTP port (SSL): 465.
Gmail SMTP TLS/SSL required: yes.
User avatar
By heckler
#62464 I have only been able to get the email function with something like smtp2go.com.

They have a free account sign up with something like 20 per day for free so I'd suggest giving that a try to at least have some success to get your feet wet.

I think gmail is too locked down. I would love to also use one of my own email accounts to forward email from an esp8266 but no luck so far.

please post back here if you figure it out.

good luck
dwight

Code: Select allcls
memclear
server = "mail.smtp2go.com"
port = "2525"
un = "your_smtp2go_username"
pw = "your_smtp2go_password"
emto = "sendto@email.com"
emfrom = "whofrom@email.com"
subject = "this is the subject"
body = "this is the body of the email"
setupemail server, port, un, pw
button "Send Email", [SendEmail]
button "Exit ", [Exit]
wait
[SendEmail]
email emto, emfrom, subject, body
wait
[Exit]
end
User avatar
By heckler
#62470 Also, be sure to monitor the serial output from the esp module as you will get quite a bit of feedback during the send process.

dwight