Gemalto is now part of the Thales Group, find out more.

You are here

Sending Email in Java using AT Commands - Doesnt send - RESOLVED. | Thales IoT Developer Community

February 25, 2018 - 3:06pm, 2620 views

Hi,

Has anyone been able to have any success properly configuring a connection and service profile to send an email using AT Command in Java?

I have attempted this using Yahoo SMTP server but am finding the email does not come through to the nominated address.

Here's a paste code of what I attempted:

https://pastebin.com/ZwAucdXb 

When I run the individual commands using a terminal, the email sends just fine.

But in Java, it just doesnt work the way it works when I typically use the AT commands to send an SMS (which works just fine).

Does anyone have any tips or a working basic example of being able to send the email using the AT commands via Java?

Many thanks.

Nick.

UPDATE - It's OK I got it working again. Please feel free to ask if you need example.