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

Moderator: Mmiscool

User avatar
By heckler
#35256 Yes for gmail I was using port 587, I did not try other ports on gmail.

My local ISP does still work via the email sent from an ESP using the LUA code posted at the beginning of this thread.

here is the response from that successful attempt...
NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
nil
> 220 mail1.xtanet.com ESMTP Postfix
250 mail1.xtanet.com
334 VXNlCm5hbWU6
334 UGFzC3dvcmQ6
235 2.0.0 Authentication successful
250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
250 2.0.0 Ok: queued as E2F112100A9
221 2.0.0 Bye


and here is the message I get when trying to send an email from ESP BASIC...
connected
220 mail1.xtanet.com ESMTP Postfix
Sending hello
250-mail1.xtanet.com
250-PIPELINING
250-SIZE 26214400
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Sending auth login
334 VXNlCm5hbWU6
Sending User
334 UGFzC3dvcmQ6
Sending Password
235 2.0.0 Authentication successful
Sending From
250 2.1.0 Ok
Sending To
250 2.1.5 Ok
Sending DATA
354 End data with <CR><LF>.<CR><LF>
Sending email
250 2.0.0 Ok: queued as 5AB38211005C
Sending QUIT
221 2.0.0 Bye
disconnected


I appears that they should both be successful. Yet I never get the second message. They are both using the same smtp server. Same from address. Same to address.

Could there be something about the 'subject' or the 'body' of the email that is causing the second one to not be sent??

I plan on contacting my ISP tomorrow to see if a Tech on that end can see what the problem might be.

Any thoughts or suggestions appreciated.
(note: when pasting the responses I changed slightly the encoded parts to obscure my personal info.)

dwight
User avatar
By heckler
#35399 So I finally got the smtp2mail thing to work so I can send an email or a text message (not to gmail though as gmail rejects it due to differing FROM and smtp2go issues)

question... is it possible to use a variable or string variable to insert data into the subject or body of the message??

when I tried to use a variable it just sent the name of the variable.

Is there a way to combine various bits of text and values like temperature into a message body to be sent?

That is really the way it should work so the email program can notify you of something with parameters included like "door open at 11:59 pm" "door closed at 12:15 am" "the temperature is 27 deg" etc, etc.

thanks
dwight
User avatar
By Mmiscool
#35401 It should work with the contents of variable. If it is not please post an example. I should like to test.
User avatar
By heckler
#35404 This is all I did... you can see where I assigned body=25 then tried to send body in the text msg.
When I recieved the text msg it just said "body"

thanks for the quick response.

dwight

Code: Select allcls
setupemail mail.smtp2go.com 2525 ?????@yahoo.com ???????
button "Send Email" [SendEmail]
button "Exit " [TestExit]
wait
[SendEmail]
let body=25
email 0123456789@vtext.com ????@yahoo.com testSubject body
wait
[TestExit]
end