Skip to main content
Associate II
February 12, 2024
Solved

How to send an e-mail with SMS module?

  • February 12, 2024
  • 5 replies
  • 2766 views

Hello,

 

I work with a STM32L031K6TxLQFP32. I can already send a SMS by connecting a SIM card.  Can someone tell if I can control a SIM card, so I can send and received an Email or, if it doesen't work, because of what value it would fail?

Thanks in advance.
#stm32#email

Best answer by Andrew Neil

@Der_Rote wrote:

I can already send a SMS by connecting a SIM card. 


Not just a SIM card - you'd also need a GSM (cellular) radio module!

The SIM card is just your authentication to use the network.

To send an email, you'd need to implement an email client (eg, SMTP), which would also require a TCP/IP stack.

As @STTwo-32 suggested, many cellular modules have such things built in - access via AT Commands.

Or, as @Tesla DeLorean suggested, you may be able to find an SMS-to-email gateway service ...

BTW: note that GSM (2G & 3G) services are being phased-out (already gone in some places) - so probably not a great idea to be starting a project now based on a 2G module like SIM900...

https://www.emnify.com/blog/global-2g-3g-phase-out 

#2Gsunset #3Gsunset

5 replies

STTwo-32
Technical Moderator
February 12, 2024

Hello @Der_Rote and welcome to the ST Community :smiling_face_with_smiling_eyes:.

That depends on the sim module that you arr using. For example, if you are looking to send email using the module sim900, it will be possible using the AT Commands.

Best Regards.

STTwo-32 

Tesla DeLorean
Guru
February 12, 2024

There's often an SMS method to an email address. Depends also on carrier / plan. Might also find SMS redirectors that can do it.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Andrew Neil
Andrew NeilBest answer
Super User
February 12, 2024

@Der_Rote wrote:

I can already send a SMS by connecting a SIM card. 


Not just a SIM card - you'd also need a GSM (cellular) radio module!

The SIM card is just your authentication to use the network.

To send an email, you'd need to implement an email client (eg, SMTP), which would also require a TCP/IP stack.

As @STTwo-32 suggested, many cellular modules have such things built in - access via AT Commands.

Or, as @Tesla DeLorean suggested, you may be able to find an SMS-to-email gateway service ...

BTW: note that GSM (2G & 3G) services are being phased-out (already gone in some places) - so probably not a great idea to be starting a project now based on a 2G module like SIM900...

https://www.emnify.com/blog/global-2g-3g-phase-out 

#2Gsunset #3Gsunset

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Der_RoteAuthor
Associate II
February 12, 2024

Thanks a lot guys!

All of your hints was helpfull

it should work to send an email and I'll try it tomorrow :)

Visitor II
September 30, 2025

What worked for me was registering the SIM with a sip provider that offers email-to-SMS or SMS-to-email services. Once your module can send AT commands correctly, the sip provider handles the rest by routing the message as an email through their gateway. Just make sure the module’s firmware supports the extended AT command set for SMS functions.

Pavel A.
Super User
September 30, 2025

GRPS is not supported by modern cellular networks (4G, 5G). It is still supported by some 3G networks. 

To send email using SMTP or IMAP protocols, your SIM must have a data plan active. Otherwise you can only send SMS (so, SMS to email gateway - as suggested by others).