Customized e-mail interface for SendGrid / mailun / Mailjet / etc
Posted: 13 Sep 2018, 23:55
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.:
and a user-supplied php file (perhaps with the constant name mantis_mail.php) would contain a function like
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.
I thought perhaps Mantis might be enhanced with another setting for $g_phpMailer_method, e.g.:
Code: Select all
$g_phpMailer_method = USEREXIT
Code: Select all
bool mantis_mail($to,$subject,$text)
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.