# Sending email with vapor

**URL:** <https://forums.kodeco.com/t/sending-email-with-vapor/89289>\
**Category:** Server Side Swift with Vapor\
**Created:** [November 26, 2019, 2:34am UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289 "2019-11-26T02:34:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannguyen](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mannguyen/32/81494_2.png) [@mannguyen](https://forums.kodeco.com/u/mannguyen)\
**Post date:** [November 26, 2019, 2:34am UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289/1 "2019-11-26T02:34:26Z")

</div>

I’m creating a contact us page for my website that using a contact form. I’m looking for a way to handle that contact form: get all the data filled out by the user (email, title, message) then send it to my own email for support or CRM. However, I can’t find any tutorial online for how to send email with vapor and this topic is not cover in the book either. If someone can point me to the right direction that would be really great. Thank you!

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [November 26, 2019, 9:59am UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289/2 "2019-11-26T09:59:53Z")

</div>

Checkout the password reset chapter, that uses SendGrid to send emails to reset a password

---

<div class="post-metadata">

**Author:** ![sparklydust](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sparklydust/32/110937_2.png) [@sparklydust](https://forums.kodeco.com/u/sparklydust)\
**Post date:** [January 21, 2021, 11:05pm UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289/3 "2021-01-21T23:05:38Z")

</div>

What about using Mailgun. It is a SwiftPackageManager that can handle sending emails through Vapor.

> **[GitHub - vapor-community/mailgun: 📧 Service to assist with sending emails...](https://github.com/vapor-community/mailgun)**
>
> 📧 Service to assist with sending emails from Vapor apps - GitHub - vapor-community/mailgun: 📧 Service to assist with sending emails from Vapor apps

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [February 3, 2021, 3:57pm UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289/4 "2021-02-03T15:57:04Z")

</div>

Mailgun works in a very similar way and is just as good an option

---

<div class="post-metadata">

**Author:** ![ingricharddavid](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ingricharddavid/32/95852_2.png) [@ingricharddavid](https://forums.kodeco.com/u/ingricharddavid)\
**Post date:** [April 11, 2021, 10:13pm UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289/5 "2021-04-11T22:13:50Z")

</div>

> **[GitHub - Joannis/VaporSMTPKit: SMTP support in Vapor 4](https://github.com/Joannis/VaporSMTPKit)**
>
> SMTP support in Vapor 4. Contribute to Joannis/VaporSMTPKit development by creating an account on GitHub.

1. It’s free.
2. Unlimited (You simply associate an email from which you want the emails to be triggered).
3. You don’t need an API key or create accounts on third-party platforms.
4. Greater flexibility for mailing. You can dynamically define the sender of emails.
5. And much more.
