How do we keep different email addresses based on ...
# support
n
Dear Team, I wanted to address an urgent task regarding our Foo-Medical apps running on two domains. We have my.domain1.com and my.domain2.com, both hosted on S3 using the Foo-Medical template. Additionally, we utilize Self Hosted Medplum with separate projects for each app. We need to implement a custom "From" mail functionality in the existing sendMail() function to ensure that emails are sent to users based on the system they are visiting. Specifically, emails from my.domain1.com should be sent from the associated custom email address, and emails from my.domain2.com should use the respective custom email address. Despite my attempt to add the "From" mail option in Medplum's SendMail() function, the current implementation continues to send emails from the global configuration email. After reviewing the Medplum code, I found that the "From" mail is hard-coded and not customizable. I urgently request your assistance modifying the Medplum code to enable the desired custom "From" mail functionality. This adjustment is essential to provide a seamless user experience and ensure emails originate from recognizable sources tied to their respective domains. Thank you for your prompt attention to this matter. Best regards,
r
Thanks for raising this issue, looks like the email is restricted unfortunately. One thought: a common tool for this use case is Mailchimp - you can segment the branding, sender, copy etc per domain. https://mailchimp.com/developer/transactional/guides/quick-start/
n
Thanks for your guidance
160 Views