Create a custom button to send an email notification when pressed
Asked by Anirbit Ghosh:

I have been successful in using the Zapier power-up to automate sending emails whenever a card is moved/updated. I was wondering if it is possible to do the same but upon pressing a button on the card instead of actually moving the card across lists. I do not want the card to be moved in order to send an email automatically, instead have a button, "Notify Customer", on the card itself which will send out email notification about the card's status whenever it is pressed.


Answers:
author: Dan Ivory
body: Hey [@Anirbit Ghosh](/t5/user/viewprofilepage/user-id/4583317)

Yes this should be possible with Butler using a card button and a "send email" action.

![Screenshot 2021-10-04 at 13.57.05.png](https://community.atlassian.com/t5/image/serverpage/image-id/163302i1BF3A9D2766F1849/image-size/large?v=v2&px=999 "Screenshot 2021-10-04 at 13.57.05.png")

However I am wondering how you will store the customer's email address. Do you have access to Custom Fields (you need to be on Trello Standard, Premium or Enterprise for this)?

Once I know that I can show you the rest of the Butler set up :)

Thanks,  
Dan

comments: author: Anirbit Ghosh
body: Hi [@Dan Ivory](/t5/user/viewprofilepage/user-id/1842230) ,  

Thank you so much for your answer.   
Yes, I do have access to custom fields and have a custom "Email" field in each card to store each customer's email addresses.


author: Dan Ivory
body: Hi [@Anirbit Ghosh](/t5/user/viewprofilepage/user-id/4583317)

No worries! Cool so you could set up some variable fields to fill in the information you have stored in custom fields to be included in the email you want to send.

Here is the list of variables you can pick and choose to include in the subject line or body of the email.... <https://help.trello.com/article/1157-variables> or for custom fields see <https://help.trello.com/article/1160-custom-field-variables#custom-field-variables>

Note the {{ }} double brackets for custom fields vs { } single brackets for other fields (I think this is correct but might need testing).

Here is an example I set up. Note for the custom field variables it would normally be {{customfieldname}} or {{customfieldvalue}}. But I swapped these to try and make it clearer what I was doing.

Also I assumed you are defining "Status" as what list the card is in. But if you are using Labels instead you can try {cardlabels}.

![Screenshot 2021-10-04 at 18.55.20.png](https://community.atlassian.com/t5/image/serverpage/image-id/163376i0F5D33BD5ED73539/image-size/large?v=v2&px=999 "Screenshot 2021-10-04 at 18.55.20.png")

*Written out so you can copy and paste:*

***Subject**: Status update for {{%Name of Custom Field containing customer's name}}*

***Body** :
Hello,*

*Here is a status update for {{%Name of Custom Field containing customer's name}}. Your project is now at the {cardlistname} stage.*

*Kind regards,*   
*XYZ*

Hope this makes sense. I've not tested it but it should work, might need some tweaking and test emails sent to yourself.

Let me know if you get stuck and Ill try to test it fully.

Cheers!

Dan


author: Anirbit Ghosh
body: Hi [@Dan Ivory](/t5/user/viewprofilepage/user-id/1842230) ,  

This solution worked perfectly for me.   
Really appreciate you taking your time to help in such great detail, it made it very easy to follow, thank you so much.

Cheers!

Anirbit


author: Dan Ivory
body: Great news! Glad it worked well for you [@Anirbit Ghosh](/t5/user/viewprofilepage/user-id/4583317) !

If you're keen to learn some more Trello tips and tricks check out our YouTube channel here <https://www.youtube.com/c/orahapps>

or our blog <https://www.orahapps.com/resources/blog>

I might make a tutorial with this example ?

Dan


author: Alex Chavel
body: Old thread i know!

This worked for us, but I'm wondering if there is a way to Add a signature to these button emails, and also change the "FROM" email at the top, it currently shows my username instead of the company name.

It also show a message at the bottom saying ALEX CHAVEL setup this butler, plus a huge trello logo, wondering if this can all be customized or removed all together.

comments: author: David E_ Lanau
body: Were you able to resolve this?  
I would like to change the trello logo to that of my company and remove the "Login trello"