0

Mails must be sent to certain roles from certain domains. Is it possible to setup SMTP server per role? (through rules or by coding)

0

MTA's can usually handle complex routing, such as handling multiple domains. Your specific rub will be the connection and routing to the MTA with the appropriate credentials to send the email.

You will need to setup a custom SMTP table where each role can setup their details, then within rules (or a custom module) create the logic to connect to the MTA with the appropriate credentials.

I hope this helps, or at least provides a gateway to an exact answer.

  • I suppose that it is easier to do with SMTP Authentication module. Everything is in place apart from one rule or a code per role. – gladiatorhl2 Apr 28 '16 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.