Using nternet_Service_Commands to send mail | Telit Cinterion IoT Developer Community
June 28, 2018 - 3:47pm, 2518 views
MidletCode.txt
MidletResult.txt
Dear all...
I have attatched these two files in order to get some clarity.
I am trying to send a mail, but allthough I get an OK, there is no result as an output or rather input to my e-mail server.
Just mee, br
Hi,
For gmail, please change the
Antero Markkula
Communication and Mechatronics
Enkom Active Oy – www.enkom-active.fi
Upseerinkatu 3 A, 02600 Espoo, Finland
Mobile: +358 400 411368
Office: +358 10 204 0000
Fax: +358 10 204 0010
E-mail: antero.markkula@enkom-active.fi
Thank's for trying, but it did not help.
The prblem is this, that all commands are accepted, right or wrong.
I have so far been using my own java mail, ****** behind my tomcat.
More help would be appreciated.
Br
Hello,
I can't see any log between SISO and SISC - is there any output?
In the SMTP example in AT commands specification there is "2" or "login" authentication used for gmail - please try.
Additionally Gmail may need some configuration to allow external applications to use it.
Regards,
Bartłomiej
No, aparently, the touble is AT^SISS=0,address,"mail.nn.dk"
+CME ERROR: invalid index
But it is this address i use in other location, java-mail
public static String host = "mail.nn.dk";
public static String host = "smtp.gmail.com";
both works fine in java
^SIS: 0,0,1000,"PARA-ERR: cmd must be set" What to here?
Hello,
This means that you should set 'cmd' parameter of AT^SISS command.
What is the module type that uou are using (ATI1 command)?
Please see the SMTP example in the AT commands specification and 'cmd' parameter description for SMTP.
Regards,
Bartłomiej
As You will see from the output, Gmail can open, and stay open, no handshake.
The Showing should just have the .txt saved and changed to .html
No hidden code there.
But my own mail account is running. And all that jazz about less secure should have been changed, for a long time ago. br.dk
Errata: new output ->
G-Mail Response Open -> 4
G-Mail Loop = 60
G-Mail Delay = 1000
G-Mail Response Open -> 4
G-Mail Remaining LOOP*s = 60
G-Mail Loop = 60
G-Mail Delay = 1000
G-Mail Waiting to close
Notify RINGChanged -> false
Notify RINGChanged -> true
Notify RINGChanged -> false
Notify RINGChanged -> true
G-Mail Resonse close = 6
G-Mail Remaining LOOP*s = 55
Notify RINGChanged -> false
Response -> AT^SISC=1
OK
It seam to work now.
Hello,
I have tried to do the same with my module.
I can see a few problems here.
One, the least important maybe, is that you configure user and password twice - in the address and with separate AT commands.
I wasn't able to send the email with SMTPS so I tried with SMTP. And this also failed with the following result:
^SIS: 4,0,4400,"Smtp open(mail.mee.dk:25)"
^SIS: 4,0,4400,"220 mail.mee.dk Microsoft ESMTP MAIL Service ready at Mon, 9 Jul 2018 13:24:16 +0200"
^SIS: 4,0,400,"SMTP-ERR: 501 5.5.4 Invalid domain name"
I think that this is a configuration problem on the server - please google the above error for more information.
I have tried with IP address instead of domain and then sending succeeded:
AT^SISO=4
OK
^SISW: 4,1
AT^SISW=4,0,1
^SISW: 4,0,0
OK
^SIS: 4,0,4400,"Smtp open(152.115.136.222:25)"
^SIS: 4,0,4400,"220 mail.mee.dk Microsoft ESMTP MAIL Service ready at Mon, 9 Jul 2018 14:21:45 +0200"
^SIS: 4,0,4400,"250-mail.mee.dk Hello [31.2.7.127]"
^SIS: 4,0,4400,"Warning: No authentication set!"
^SIS: 4,0,4400,"Mail send OK"
^SISW: 4,2
AT^SISC=4
OK
But still it is not working with SMTPS.
There is only:
^SIS: 4,0,4400,"Smtp open(152.115.136.222:465)"
And then nothing for a long time and in the end:
^SIS: 4,0,14,"An established connection was aborted, possibly due to a data transmission time-out or protocol error"
I think that maybe it would be good to test with some other server. Or use some other email client to test your server. This could be again the server problem.
Finally I was able to send mail with SMTPS using some other public email provider.
Regards,
Bartłomiej
You are right reduscing setup.
So I made a new simple setup.
The G_mail should be saved as html.
The result is the output of the source code in G_mail.html
If You agree, You might upload it to Knowledge Base, in order to help other's
The negative about using G-mail, is the delay.
You can not use G-mail in a dynamic application, whereas my own private account, the response come in a split second.
In the old day's, the SMS could be several day'es to respond, but at that time I was using Nokia M2M named Nokia 12i. I still have it.
Hello,
So as I understand the email is sent while using SMTPS and Gmail.. That would be a good news.
It is not that clear as your log does not print '^SIS:' URCs.
I think that this thread is the best place for the logs and source as here's the whole context.
Best regards,
Bartłomiej