Sending Butler Email without Trello Ads
Asked by J?rg Grabinski:

We are using Trello to coordinate our support. I am trying to send a message to an email address contained in a custom field (the sender of the message). This works nicely. But the generated message contains a lot of "trello marketing garbage" that distracts from my message (see below). Is is possible to remove or reduce this? I am using a butler command like so:

*join the card, subscribe to the card, and send an email notification to "{{%EMail}}" with subject "We have received your Incident Report" and message "My Text"*

J?rg (Paid Trello account!)

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| M?chten Sie die Details erfahren? [Wechseln Sie zu Trello](https://trello.com/b/AWU0uKxY/ubit-support)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **My Text** |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Diese E-Mail-Benachrichtigung wurde in Butler von J?rg Grabinski eingerichtet. Sie haben sich nicht f?r diese E-Mail registriert? [Klicken Sie hier](https://api.butlerfortrello.com/email-report/V7FkeCC6Trfc?action=report), um sich abzumelden und E-Mails von @jorggrabinski zu blockieren. | |


Answers:
author: milynnus
body: [@J?rg Grabinski](/t5/user/viewprofilepage/user-id/4490621)

my first thought would be to use a third party smtp services or you own DIY smtp via http request. This way it is part of the Trello automation and you can send Trello variables including the report variables across. I made one for my client. Planning to make it more customisable for other users.

comments: author: J?rg Grabinski
body: [@milynnus](/t5/user/viewprofilepage/user-id/3947182) : thank you for the quick response. This sounds like a possible solution. Could you provide an example or help?


author: milynnus
body: [@J?rg Grabinski](/t5/user/viewprofilepage/user-id/4490621)

The reality is that if are not wanting native Trello automation then [@Brittany Joiner](/t5/user/viewprofilepage/user-id/1692248) suggestions or mine would involve a third party software.   
There are smtp solutions that you can use http request to send your email. One of them that I had looked at is CloudMailin. it does require you to have your own domain.

I wrote my own because I wanted a asynchronous process so that background task does not hold up the response to Trello automation. The smtp keeps the clients mail credentials and setup in a secured database and allows you to have your own html template for your email.

It is not a commercial product but one I had to built for a long time client and now I make it more customisable.


author: J?rg Grabinski
body: [@milynnus](/t5/user/viewprofilepage/user-id/3947182) : we have a domain and smtp. But how can I use our smtp from Trello? I can't find any description or example. Is your solution available?


author: milynnus
body: [@J?rg Grabinski](/t5/user/viewprofilepage/user-id/4490621)

In Trello automation you can invoke a http request to a third party service (it is under "Other"). If your smtp provider allows you to call it's services via api then you can use that. One example is CloudMailin.   

As I mentioned I have just completed the migration of the smtp user credentials and setup to a database. This smtp service runs as a microservice as a background tasks using FASTAPI. Presently, it is used for my clients. The database setup and creating jinjia2 template is manual.

If you like to see it in action, I can demonstrate to you via zoom. My profile has my contact details.


author: milynnus
body: [@J?rg Grabinski](/t5/user/viewprofilepage/user-id/4490621)

The is an example of an smtp called from within Trello Automation. You can see that you can specify the user SMTP credentials to use, the email template, feed the email via the payload using custom fields and or any variables.

![Screen Shot 2022-07-27 at 6.23.41 PM.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/208101iB18A4E85D1EDB0B6/image-size/large?v=v2&px=999 "Screen Shot 2022-07-27 at 6.23.41 PM.jpg")


author: J?rg Grabinski
body: Thanks a lot. I will share this with my developers.


author: Brittany Joiner
body: Similar to what [@milynnus](/t5/user/viewprofilepage/user-id/3947182) i would recommend hooking up Zapier with Trello and Gmail and trying to send email through something like that. You can access pretty much the same triggers in Zapier and have complete control over the email you send from Gmail (i think Outlook is also an option, probably other email clients if Gmail isn't your client)

comments: author: J?rg Grabinski
body: [@Brittany Joiner](/t5/user/viewprofilepage/user-id/1692248) : thanks for your thoughts. I am looking for a simple solution, don't like the idea of hooking two other systems together with Trello. Is there any chance that Atlassian Trello provides a flag to disable these headers and footers for paying customers? Or make them customizable?


author: Brittany Joiner
body: [@J?rg Grabinski](/t5/user/viewprofilepage/user-id/4490621) not that i know of, but that actually might be a nice "Enterprise" feature to be able to white label emails from Butler