Hi @Ian_Banda,
Welcome to the community!
Yes, it is possible to send emails with personal email addresses in Retool, even if the main email used to configure Retool SMTP is different. To do this, you can use a query to set the From field of the email to the user's personal email address.
For example, if you have a Retool app with a resource query called Send Email
, you could set the From field to the following:
{{user.email}}
This will ensure that the email is sent from the user's personal email address, regardless of the main email used to configure Retool SMTP.
To restrict this to users with the example.com domain, you can use the following condition in your query:
{{user.email.endsWith('@example.com')}}
This will ensure that the email is only sent from users with the example.com domain.
Here is an example of a complete Retool resource query for sending emails with personal email addresses, restricted to users with the example.com domain:
{
"resource": "Retool Email",
"action": "send",
"data": {
"from": "{{user.email}}",
"to": "{{email.value}}",
"subject": "{{subject.value}}",
"body": "{{body.value}}"
},
"conditions": [
"{{user.email.endsWith('@example.com')}}"
]
}
Once you have created the query, you can use it in your Retool app to send emails from users' personal email addresses. For example, you could add a button to your app that calls the Send Email
query when clicked.
I hope this helps!

Patrick