#Multiple mailgun account integration?

1 messages · Page 1 of 1 (latest)

golden swift
#

Hi, I wanted to know if it is possible to integrate more than 1 instance of mailgun account?

Use case: I am planning to self host novu to send emails to different customer using different mailgun accounts.
Mailgun account 1: Will be used to send email to all customers of company A
Mailgun account 2: Will be used to send email to all customers of company B

If this is not possible now? Then do we have any scope of this feature in future?

round vortex
#

Hi @golden swift
We support one email provider per organisation.
You can create new organisation in your account and can connect other mailgun account

golden swift
#

Thanks @round vortex

round vortex
#

api key will be different for different orgs

golden swift
#

Yes, I can manage that.

#

Thanks for that note though.

strong hound
#

From a subscriber point of view, lets say subscriberId 123 with email address [email protected]

And we also have two organizations (org-a & org-b), both setup with different email providers.

If both organizations trigger events to that single subscriber, he/she will receive emails via the two different providers. What about in-app notifications?

Would I be correct that within Novu the subscriber will exist in both orgs, and it would not be possible to make a single API call to fetch all in-app notifications (across both orgs) for that single subscriber?

round vortex
#

No, subscriber exist only one org
If you want that that subscriber in other org, you will have to add separately.
As different orgs have different API_KEY and Application_Identifier so call will be different

strong hound
#

Yeah that is what I was guessing. If you need to use different email providers within a single org, it sounds like a custom mail provider will need to be created that handles the switch between the different providers depending on the sender. I currently have a requirement where one sender wants all emails to transit via their own SMTP server, but all other emails sent (by other users) will transit via our own cloud mail provider. Thanks for your help.