# Sendgrid-sending automated emails

**URL:** <https://forum.bubble.io/t/sendgrid-sending-automated-emails/100609>\
**Category:** Plugins\
**Created:** [July 7, 2020, 7:57am UTC](https://forum.bubble.io/t/sendgrid-sending-automated-emails/100609 "2020-07-07T07:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohannB](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johannb/32/65792_2.png) [@JohannB](https://forum.bubble.io/u/JohannB)\
**Post date:** [July 7, 2020, 7:57am UTC](https://forum.bubble.io/t/sendgrid-sending-automated-emails/100609/1 "2020-07-07T07:57:08Z")

</div>

Hi,

I have set up sendgrid (API key, sender name) and I have installed the sendgrid plugin (by Copilot).

On my application (2sided rental marketplace) users can send each other messages. What I am trying to achieve is that when User A is writing User B a message in the app (regarding a listing of user B), I want that User B gets an email/notification from my app sender name that user A has written a message. The same when a new user signs up, I want him to receive a welcome message on his email.

(Note: since the user’s email is not “attached” to the listing, I created a field on my Listings data type that is set to type “user”. This way, I am able to source the user’s email in the workflow. When creating a field on one data type that is of another data type, I can essentially link the two allowing my workflows to access data.)

I tried a lot of different things in the sendgrid-send email inputs but nothing has worked so far. Does anyone has an idea how I can achieve that?

Thank you,  
J

 ![Screenshot 2020-07-07 at 01.50.03](https://us1.discourse-cdn.com/bubble/original/3X/4/5/457854f3512b0dbf4e9d55998d82ac042f67973e.png)

---

<div class="post-metadata">

**Author:** ![bartek.dev](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bartek.dev/32/50610_2.png) [@bartek.dev](https://forum.bubble.io/u/bartek.dev)\
**Post date:** [July 7, 2020, 9:08am UTC](https://forum.bubble.io/t/sendgrid-sending-automated-emails/100609/2 "2020-07-07T09:08:55Z")

</div>

> [@\[Beginners Guide\] to Sending Emails With Sendgrid - Work in Progress!](http://forum.bubble.io/t/beginners-guide-to-sending-emails-with-sendgrid-work-in-progress/48860):
>
> Hey Everyone… I’m on a journey to understand all that can be done with Sendgrid, and I’m going to document my experience here! The Big Picture You could say there are three kinds of emails you can send from Bubble… Bubble’s Transactional Emails By this we mean the ones that that Bubble sends out automatically on our user’s behalf such as those for a password reset. Bubble’s “Send Email” Action So using the standard action that comes with native Bubble, found in Add Action -\> Email -\> S…

you have to use brackets that target the dynamic content. You create them in substitution tags

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/f/af1a176b679824522712aa46245111554031bb75.png)

Then in Sendgrid panel you have to create template and insert the tags into the email content

e.g. “Hello {{first\_name}}”

You can insert user message by creating tag for example {{message}}
