Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By Zim
#74485 Hi dwight
Thanks for the reply. I have several home automation esp projects. They are all emailing through gmail. I am using the gsender code from the above mentioned instructable. It is fast for emails and sms and never misses a beat. It loads through arduino ide. I really want to stick with espbasic, as it makes much more sense to a beginner like me. I am totally confident that espbasic is capable but I am no where near experienced enough to convert C++ to basic. I just don't like using third partys as you never know when they dry up. The gsender code simply gives your gmail account the appropriate handshake, and from there on, the sky is the limit. Could you take a look at the code and see what you think?
Thanks
Randal
User avatar
By heckler
#74503 Hi Zim,

I tried GMAIL and could not get it working. I really wish Mike or someone could get gmail going as I too would like to be able to use it. when I changed it to send via gmail and then tried to send it connected to gmail and then timed out.

This will work for smtp2go...

Code: Select allcls
memclear
server = "mail.smtp2go.com"
port = "2525"
un = "smtp2go_username"
pw = "smtp2go_password"
emto = "someone@email.com"
emfrom = "emailfrom@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


note that you can spoof who the email is coming from by just changing the "emailfrom@email.com" to what ever you want.

give it a try if you want and post results back here

regards
dwight