Sending Email with EHS6 | Thales IoT Developer Community
December 4, 2014 - 3:41pm, 4664 views
Hi,
do you have an example code to send Emails with java?
i tried to send an email like in the discription EHS6 AT Commands, but i have no keystore installed. i think this is the problem why i cant send an email
regards
I only used Sercurity command for HttpsVerifyOnUntrusted and changed settings on my gmail account that I used for sending email, that allows untrusted applications and I managed to send email without keystore.
Hello,
Gmail has made some security changes recently so the example may not work.
Please see more here: https://iot-developer.thalesgroup.com/threads/smtp-and-gmail-no-longer-w...
With the necessary changes the example will be working.
Unfortunatelly I don't have any example code.
In Java you can still use AT commands or alternatively you can implement SMTP on your own.
Best regards,
Bartłomiej
i installed now the keystore, do the same like in the pdf and in the thread smtp-and-gmail-no-longer-working.
everytime i want to start with AT^SISO=x, it shows me the Error "+CME ERROR: operation temporary not allowed"
Did I forgot something?
Thanks
Hello,
Have you configured the internet connection with AT^SICS command properly?
Please see this thread for help: https://iot-developer.thalesgroup.com/tutorial/concept-board-internet-se...
If this is not the case, please write the commands you are entering - we will try to help you.
Best regards,
Bartłomiej
Thank you Bartłomiej,
I forgot the AT^SICS commands
Best regards
Robert
now i have this,
AT+CREG=2
OK
AT+COPS=0
OK
AT+CMEE=2
OK
AT^SICS=0,"conType","GPRS0"
OK
AT^SICS=0,"apn","internet"
OK
AT^SISS=9,"srvType","Ftp"
OK
AT^SISS=9,conId,"0"
OK
AT^SISS=9,"address","ftp://lich.bplaced.net"
OK
AT^SISS=9,"user","lich"
OK
AT^SISS=9,"passwd","ASDFasdf"
OK
AT^SISS=9,"cmd","put"
OK
AT^SISS=9,"path","file:///a:/data/"
OK
AT^SISS=9,"files","flowers.jpg"
OK
AT^SISO=9
OK
^SIS: 9,0,2100,"Ftp open(lich.bplaced.net:21)"
^SIS: 9,0,2100,"220 Welcome to bplaced, FTP server standing by ..."
^SIS: 9,0,2100,"FTP Login OK"
^SIS: 9,0,2100,"put flowers.jpg"
^SISW: 9,1
AT^SISW=9,20
^SISW: 9,20,0
nothing happens and i have to typ 20 chars and get this
OK
^SISW: 9,1
my jpg on the server contains the chars i wrote after ^SISW: 9,20,0... what is my problem that it doesn't put the data automatically?
Hello,
Please use "fput" command instead of "put".
Then the log should be similar to this:
AT^SISO=9
OK
^SIS: 9,0,2100,"Ftp open(***.YYY.ZZZ.AAA:21)"
^SIS: 9,0,2100,"220 My FTP Server"
^SIS: 9,0,2100,"FTP Login OK"
^SIS: 9,0,2100,"fput 12.jpg"
^SIS: 9,0,2100,"FPUT : 12.jpg 179452 bytes"
^SISW: 9,2
^SIS: 9,0,2100,"221 Goodbye."
Best regards,
Bartłomiej
Thank you,
it works fine
regards