Hi Yudhiy,
Interesting question indeed, and there are multiple options here. The first thing to ask yourself: as Mendix is not sending the e-mails, do you have a mail provider in mind already?
- There are solutions like SendGrid and MailGun, which provides you extensive possibilities and an API to connect to Mendix to send mails. Definitely in marketing domain, this might be interesting.
- If you stick to ‘simple’ SMTP sending, you need to check if you are allowed to change the From header at your SMTP-server.
- You could also use the Microsoft Graph API for sending e-mails. Good to know: sending happens by an account (sender) and can originate from somebody (from). If ‘sender’ and ‘from’ differ, then mail clients will present it as “on behalf of”, which might be not something you want.
Good luck!