# Send email to multiple recipients - how to use recipient name in the email body?

**URL:** <https://community.appfarm.io/t/send-email-to-multiple-recipients-how-to-use-recipient-name-in-the-email-body/565>\
**Category:** Ask the community\
**Created:** [July 7, 2023, 10:18am UTC](https://community.appfarm.io/t/send-email-to-multiple-recipients-how-to-use-recipient-name-in-the-email-body/565 "2023-07-07T10:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kjellamund](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@Kjellamund](https://community.appfarm.io/u/Kjellamund)\
**Post date:** [July 7, 2023, 10:18am UTC](https://community.appfarm.io/t/send-email-to-multiple-recipients-how-to-use-recipient-name-in-the-email-body/565/1 "2023-07-07T10:18:14Z")

</div>

Hi!

I am using the send email action node with multiple recipient parameter. In the email body i would like to use the recipient name, to write something like ‘Hi #NAME#’.  
Data source that i’m using for the list of recipients has properties name and email.  
I have tried to use Recipients.name in the function for email body content, but it is empty, i have tried to use Recipients object (object in context), but it is null.

Thank you

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [July 7, 2023, 10:53am UTC](https://community.appfarm.io/t/send-email-to-multiple-recipients-how-to-use-recipient-name-in-the-email-body/565/2 "2023-07-07T10:53:32Z")

</div>

Hi! Are you using a `Foreach` over the send email action? It should work if you first iterate the recipients datasource with a `Foreach` action node, and then inside the iteration use the `Send email` action node. You can then use the `recipients.name` on the object in context.

---

<div class="post-metadata">

**Author:** ![Kjellamund](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@Kjellamund](https://community.appfarm.io/u/Kjellamund)\
**Post date:** [July 8, 2023, 6:27am UTC](https://community.appfarm.io/t/send-email-to-multiple-recipients-how-to-use-recipient-name-in-the-email-body/565/3 "2023-07-08T06:27:50Z")

</div>

Hi @Simona  
No, i am using ‘send to multiple recipients’ property of the send email action node. I know that i can use for each and it will work then, but i am curious if i can access name/email in the body that are provided in the parameters when using ‘send to multiple recipients’.

---

<div class="post-metadata">

**Author:** ![Joanna](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/joanna/32/122_2.png) [@Joanna](https://community.appfarm.io/u/Joanna)\
**Post date:** [July 10, 2023, 7:55am UTC](https://community.appfarm.io/t/send-email-to-multiple-recipients-how-to-use-recipient-name-in-the-email-body/565/4 "2023-07-10T07:55:05Z")

</div>

Hi, unfortunately, this is not possible.
