I am using firebase extension trigger email for sending mails on firestore events trigger
and have added smtp uri of a single email account of my domain in the form of
smtps://name@domain.com:password@smtp.yandex.com:465**)
, how can i send email through different email accounts like through name2@domain.com as it is unable to send the mail through an other email account but the smtp uri one
Asked
Active
Viewed 372 times
0

mayank3503
- 315
- 4
- 17
1 Answers
2
If you want to send email from different accounts with the Trigger Email extension, you'll need to:
- Install a separate instance of the extension for each account.
- Use a separate collection for triggering the email sent from each account.
So in your example, you'd install the extension twice, once for emails from name@domain.com
triggered from writes to the collection emails_from_name
and once for name2@domain.com
triggered from writes the collection emails_from_name2
.

Frank van Puffelen
- 565,676
- 79
- 828
- 807