I'm just starting to using Mantis hosted on azure and would like to send the email using SendGrind Product.
I found some old topic but not relevant anymore as Sendgrind oblige all the user to use APIKey to send email.
I've tried to follow their documentation described on this URL : https://sendgrid.com/docs/for-developer ... -smtp-api/
1 Create an API Key with at least "Mail" permissions.
2 Set the server host in your email client or application to smtp.sendgrid.net. This setting is sometimes referred to as the external SMTP server or the SMTP relay.
3 Set your username to the string apikey. This setting is the exact string "apikey" and not the API key itself.
4 Set your password to the API key generated in step one.
5 Set the port to 587 (or as specified below).
Which give me something like this :
Code: Select all
$g_use_phpMailer = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_username = 'apikey';
$g_from_name = 'mymail@domaine.com';
$g_smtp_password = 'SG.XXX';
$g_smtp_host = 'smtp.sendgrid.net';
$g_smtp_port = 587;
$g_smtp_connection_mode = 'tls';
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:d:\home\logfiles\mantisbt.log';
2021-04-14 15:12 UTC MAIL email_api.php:1432 email_send() ERROR: Message could not be sent - SMTP Error: data not accepted.
Does anyone know how to fix that or know how to use SendGrind with Mantis please??