[RESOLU] Problème configuration des emails

MantisBT forum for users who prefer to ask and answer questions in French.

Moderators: Developer, Contributor

Post Reply
nmarotel
Posts: 9
Joined: 23 Jan 2013, 14:36

[RESOLU] Problème configuration des emails

Post by nmarotel »

Bonjour à tous

J'ai un soucis avec la configuration des emails sous Mantis.

Après avoir parcouru la doc et les forums, je n'ai pas trouvé de solution.

Voici ce que j'ai rajouté dans mon fichier config_inc.php :

$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_smtp_username = 'nmarotel@gmail.com'; //replace it with your gmail address
$g_smtp_password = 'xxxxxxx'; //replace it with your gmail password
$g_administrator_email = 'nmarotel@gmail.com'; //this will be your administrator email address


Je teste ceci avec le script de test sous admin mais impossible de recevoir un mail.
J'ai l'erreur :

Testing Mail - PROBLEMS SENDING MAIL TO: nmarotel@gmail.com. Please check your php/mail server settings.
Email Address: nmarotel@gmail.com


J'ai bien rajouté dans mon fichier php.ini l'instruction extension=php_openssl.dll mais après avoir redémarrer Apache, j'ai toujours l'erreur.

Bref, si quelqu'un avait une idée ???
Je dois configurer Mantis pour une société et l'envoi d'email est une des fonctionnalités importantes de Mantis à mettre en place.
Last edited by nmarotel on 06 Feb 2013, 11:14, edited 1 time in total.
Stef06
Posts: 73
Joined: 09 Jan 2012, 07:52

Re: Problème configuration des emails

Post by Stef06 »

Hello,

Peut-être que ta config gmail n'est pas bonne...

J'ai trouvé ça qui pourra peut-être t'aider : http://www.mantisbt.org/forums/viewtopi ... =3&t=15398

++.
nmarotel
Posts: 9
Joined: 23 Jan 2013, 14:36

Re: Problème configuration des emails

Post by nmarotel »

Merci beaucoup Steph06 !!!

J'ai rechecker ma config gmail et effectivement, j'avais activé la verification du compte quand on se connecte depuis un nouvel ordinateur.
En recréant une adresse gmail pour tester, tout fonctionne.
Je n'ai plus qu'à configurer Mantis avec le serveur smtp de la société et ce sera bon.
Encore Merci :)
Stef06
Posts: 73
Joined: 09 Jan 2012, 07:52

Re: [RESOLU] Problème configuration des emails

Post by Stef06 »

Avec plaisir mec !! Fais-toi plaiz avec Mantis !!! :D

++!
Youss
Posts: 2
Joined: 20 Jul 2018, 09:18

Re: [RESOLU] Problème configuration des emails

Post by Youss »

@nmarotel

Bonjour nmarotel

J'ai le même problème d'envoie de mail depuis mantis, tu peux me dire comment t'as fait pour activer la vérification du compte STP!!
Voila la config que j'ai mis dans le fichier config_inc.php:

$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'mantisbtr@gmail.com'; //replace it with your gmail address
$g_smtp_password = 'mantisbtr123'; //replace it with your gmail password
$g_administrator_email = 'mantisbtr@gmail.com'; //this will be your administrator email address

Merci d'avance!!!
Post Reply