# Only send e-mail out from erlang code

**URL:** <https://erlangforums.com/t/only-send-e-mail-out-from-erlang-code/2879>\
**Category:** Questions / Help\
**Tags:** erlang\
**Created:** [September 17, 2023, 3:44pm UTC](https://erlangforums.com/t/only-send-e-mail-out-from-erlang-code/2879 "2023-09-17T15:44:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inforista](https://erlangforums.com/user_avatar/erlangforums.com/inforista/32/2279_2.png) [@Inforista](https://erlangforums.com/u/Inforista)\
**Post date:** [September 17, 2023, 3:44pm UTC](https://erlangforums.com/t/only-send-e-mail-out-from-erlang-code/2879/1 "2023-09-17T15:44:22Z")

</div>

What is the simplest, reliable way of ONLY sending e-mails out from Erlang code?

My code does not need to receive e-mails, it only needs to send e-mails 🙂

Anyway to do this without using the full gen\_smtp client and server library ?

I need it to send out authorization e-mails.

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![mworrell](https://erlangforums.com/user_avatar/erlangforums.com/mworrell/32/267_2.png) [@mworrell](https://erlangforums.com/u/mworrell)\
**Post date:** [September 18, 2023, 6:14am UTC](https://erlangforums.com/t/only-send-e-mail-out-from-erlang-code/2879/2 "2023-09-18T06:14:18Z")

</div>

`gen_smtp` is the way to go. You don’t need to start an email server to use the sending part.

---

<div class="post-metadata">

**Author:** ![Inforista](https://erlangforums.com/user_avatar/erlangforums.com/inforista/32/2279_2.png) [@Inforista](https://erlangforums.com/u/Inforista)\
**Post date:** [September 18, 2023, 12:02pm UTC](https://erlangforums.com/t/only-send-e-mail-out-from-erlang-code/2879/3 "2023-09-18T12:02:36Z")

</div>

Perfect thanks - I got it to work now 😀
