Page 1 of 1

Customized e-mail interface for SendGrid / mailun / Mailjet / etc

Posted: 13 Sep 2018, 23:55
by jds13
Google Compute Engine and other systems do not allow use of SMTP mailers, and instead suggest that people use third party providers like SendGrid, Mailgun, or Mailjet. These require somewhat different interfaces from SMTP. Also, after reviewing the traffic on e-mail configuration, a better encapsulated interface might help many users.

I thought perhaps Mantis might be enhanced with another setting for $g_phpMailer_method, e.g.:

Code: Select all

   $g_phpMailer_method = USEREXIT
and a user-supplied php file (perhaps with the constant name mantis_mail.php) would contain a function like

Code: Select all

   bool mantis_mail($to,$subject,$text)
which would take care of sending the message.

I've been a Mantis user for many years but have never before felt the need to modify the system. Is there a way to architect this that would be more in keeping with the system's conventions? Or a better way to solve this problem?

Thank you very much.

Re: Customized e-mail interface for SendGrid / mailun / Mailjet / etc

Posted: 15 Sep 2018, 21:41
by atrol
Mantis e-mail sending is based on the following 3rd party component https://github.com/PHPMailer/PHPMailer
I think this would be the right place to introduce more methods to send e-mail in a first step.

Re: Customized e-mail interface for SendGrid / mailun / Mailjet / etc

Posted: 15 Sep 2018, 21:49
by atrol