Page 1 of 1

[RESOLU] Problème configuration des emails

Posted: 30 Jan 2013, 09:58
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.

Re: Problème configuration des emails

Posted: 06 Feb 2013, 10:38
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

++.

Re: Problème configuration des emails

Posted: 06 Feb 2013, 11:13
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 :)

Re: [RESOLU] Problème configuration des emails

Posted: 06 Feb 2013, 15:11
by Stef06
Avec plaisir mec !! Fais-toi plaiz avec Mantis !!! :D

++!

Re: [RESOLU] Problème configuration des emails

Posted: 20 Jul 2018, 15:25
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!!!