# SendGrid mail not sending

**URL:** <https://forum.adalo.com/t/sendgrid-mail-not-sending/42102>\
**Category:** Get Help\
**Created:** [September 18, 2023, 3:20pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102 "2023-09-18T15:20:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eccles](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@Eccles](https://forum.adalo.com/u/Eccles)\
**Post date:** [September 18, 2023, 3:20pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/1 "2023-09-18T15:20:55Z")

</div>

I am trying to set up a custom action with SendGrid to send a email. When I test the action it’s successful, and the mail is sent, but when I use the action, nothing happens. Does anybody have any troubleshooting tips?

---

<div class="post-metadata">

**Author:** ![Rozza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rozza/32/22780_2.png) [@Rozza](https://forum.adalo.com/u/Rozza)\
**Post date:** [September 18, 2023, 4:01pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/2 "2023-09-18T16:01:07Z")

</div>

Check for line breaks in the body text of your email json.

---

<div class="post-metadata">

**Author:** ![Eccles](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@Eccles](https://forum.adalo.com/u/Eccles)\
**Post date:** [September 18, 2023, 4:05pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/3 "2023-09-18T16:05:01Z")

</div>

Wouldn’t that result in a failed test?

---

<div class="post-metadata">

**Author:** ![Rozza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rozza/32/22780_2.png) [@Rozza](https://forum.adalo.com/u/Rozza)\
**Post date:** [September 18, 2023, 4:27pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/4 "2023-09-18T16:27:40Z")

</div>

Params or magic text in the email body could contain line breaks. Sample data in your Custom Action would normally be a simple string without breaks. Hard to say, post some screen shots or video from Adalo and the api logs from sendgrid.

---

<div class="post-metadata">

**Author:** ![Eccles](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@Eccles](https://forum.adalo.com/u/Eccles)\
**Post date:** [September 18, 2023, 5:15pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/5 "2023-09-18T17:15:53Z")

</div>

Seems you’re right! It was a line break in the email body. Is it somehow possible to have line breaks?  
Like a normal email?  
Something like this

```auto
Hi John.
Jane have sent you an email.

Kind regards Adalo

```

---

<div class="post-metadata">

**Author:** ![cameronporter89](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/cameronporter89/32/30396_2.png) [@cameronporter89](https://forum.adalo.com/u/cameronporter89)\
**Post date:** [September 18, 2023, 5:44pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/6 "2023-09-18T17:44:41Z")

</div>

Don’t know about SendGrid specifically but with Adalo–\>Zapier–\>Gmail you can format your email body inputs as plain text or HTML. If HTML is an option instead of plain text, you should be able to use `<br>` to indicate line breaks.

---

<div class="post-metadata">

**Author:** ![Rozza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rozza/32/22780_2.png) [@Rozza](https://forum.adalo.com/u/Rozza)\
**Post date:** [September 18, 2023, 6:34pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/7 "2023-09-18T18:34:16Z")

</div>

Yeah you’re welcome. It’s been covered on the forum before, I can’t remember the solution off hand, I came up against the same thing, but have a search here and it will be there somewhere.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [September 28, 2023, 6:34pm UTC](https://forum.adalo.com/t/sendgrid-mail-not-sending/42102/8 "2023-09-28T18:34:22Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
