A Basic Interpreter written from scratch for the ESP8266

Moderator: Mmiscool

User avatar
By mfalzon
#54040 Hi,
I've uploaded the latest 3.0 version of ESP8266basic onto the -01 module and tried to run the email
program listed below. I flashed using the 1Mb option. This program had worked well with the version 2.0


body = "my first email from esp8266"
server = "mail.smtp2go.com"
port = 2525
user = "*******"
password = "*******"
sendto = "*******@*****.***"
sendfrom = "*******@smtp2go.com"
mess = "Email test"

setupemail server port user password
button "Send Email" [SendEmail]
button "Exit " [getout]
wait
[SendEmail]
email sendto sendfrom mess body
wait
[getout]
end

now I'm getting these error reports

Error at line 10: Failed to reach end of input expression, likely malformed input
Error at line 11: The arguments must be 2!
Error at line 11: Halted

Can you help me please?

Maurice
User avatar
By Mmiscool
#54714 Look at the 3.0 docs.
The commands now need commas between the parameters.
User avatar
By ztoti
#55488 Hi,
I use NODEM;CU with Basic3.0 Alpha49, I've made account on smtp2go but I can't send the email with the sample code:

body = "my first email from esp8266"
server = "mail.smtp2go.com"
port = 2525
user = " ******@gmail.com"
password = " ******** "
sendto = " ******@gmail.com"
sendfrom = " ******** "
mess = "just sample"
setupemail server , port , user , password
button "Send Email",[SendEmail]
button "Exit ",[getout]
wait
[SendEmail]
email sendto , sendfrom , mess , body
wait
[getout]
end - See more at: viewtopic.php?f=40&t=8599#sthash.VUEk5ssn.dpuf.

Here is terminal message:


220 mail.smtp2go.com ESMTP Exim 4.87 Thu, 22 Sep 2016 03:57:42 +0000
250-mail.smtp2go.com Hello 1.2.3.4 [24.76.64.244]
250-SIZE 52428800
250-8BITMIME
250-DSN
250-PIPELINING
250-AUTH CRAM-MD5 PLAIN LOGIN
250-STARTTLS
250-PRDR
250 HELP
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535 Incorrect authentication data
221 mail.smtp2go.com closing connection
disconnecte

Any idea?
Thank you.
User avatar
By vinicius.valenca
#69648
mfalzon wrote:Hi,
I've uploaded the latest 3.0 version of ESP8266basic onto the -01 module and tried to run the email
program listed below. I flashed using the 1Mb option. This program had worked well with the version 2.0


body = "my first email from esp8266"
server = "mail.smtp2go.com"
port = 2525
user = "*******"
password = "*******"
sendto = "*******@*****.***"
sendfrom = "*******@smtp2go.com"
mess = "Email test"

setupemail server port user password
button "Send Email" [SendEmail]
button "Exit " [getout]
wait
[SendEmail]
email sendto sendfrom mess body
wait
[getout]
end

now I'm getting these error reports

Error at line 10: Failed to reach end of input expression, likely malformed input
Error at line 11: The arguments must be 2!
Error at line 11: Halted

Can you help me please?

Maurice

How didi you flashed your ESP8266-01 ?? cant get it work here