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

Get help from other users here.

Moderators: Contributor, Developer

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

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

Post by jds13 » Sep 13, 2018 6:55 pm

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: 7348
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Post by atrol » Sep 15, 2018 4:41 pm

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: 7348
Joined: Mar 26, 2008 4:37 pm
Location: Germany

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

Post by atrol » Sep 15, 2018 4:49 pm

Please use Search before posting and read the Manual

Post Reply