# \[Solved\]- Email Particle Photon

**URL:** <https://community.particle.io/t/solved-email-particle-photon/27176>\
**Category:** Troubleshooting\
**Created:** [November 10, 2016, 6:10pm UTC](https://community.particle.io/t/solved-email-particle-photon/27176 "2016-11-10T18:10:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emil.dk](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@Emil.dk](https://community.particle.io/u/Emil.dk)\
**Post date:** [November 10, 2016, 6:10pm UTC](https://community.particle.io/t/solved-email-particle-photon/27176/1 "2016-11-10T18:10:21Z")

</div>

Hallo guys.

I have some troubles, when i am useing this code.

> <https://gist.github.com/anonymous/404e907f367dc64a2727d605a8b6e5e5>

my proton starts flashing SOS and followed by either 11 or 12 flashes, Do any of you know what I am doing wrong?

I am trying to use [smtp2go.com](http://smtp2go.com) and their port 2525.

Kind regards Emil

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [November 10, 2016, 6:35pm UTC](https://community.particle.io/t/solved-email-particle-photon/27176/2 "2016-11-10T18:35:37Z")

</div>

I would start with changing your `#define`d strings to `const char[]` variables, transition to the current version of `Spark.variable("emailSent", &sentOnce, INT);` to `Particle.variable("emailSent", sentOnce);`, change `SPARK_WLAN_Loop();` to `Particle.process();` and use less `String` objects and rather go with C strings (`char[]`, `char*`).

I guess especially the “overuse” of `String` causes heap fragmentation which eventually leads to your SOS panic.

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [November 10, 2016, 7:04pm UTC](https://community.particle.io/t/solved-email-particle-photon/27176/3 "2016-11-10T19:04:26Z")

</div>

Does their service allow you to use it without SSL/TLS? Most do not.

---

<div class="post-metadata">

**Author:** ![Emil.dk](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@Emil.dk](https://community.particle.io/u/Emil.dk)\
**Post date:** [November 19, 2016, 12:51pm UTC](https://community.particle.io/t/solved-email-particle-photon/27176/4 "2016-11-19T12:51:16Z")

</div>

Thank for the help.  
I changed my setup to use “[IFTTT.COM](http://IFTTT.COM)”. And it works now.

Thank you! 😄
