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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jds13
Posts: 1
Joined: 13 Sep 2018, 23:42

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

Post 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.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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.
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Please use Search before posting and read the Manual
Post Reply