How to config Email ?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
hardy
Posts: 1
Joined: 20 Sep 2021, 14:12

How to config Email ?

Post by hardy »

I just depoly a LAMP + Mantisbt 2.25.2
everthing is fine but i have problem with email config.
i just copy the email config part from config_inc.php.sample as below and write it down in config_inc.php
i fill in everything and make sure they are right.
whatever i go do admin page to test mail, or i reset user password to send mail, it doesn't work.
Since it doesn't show any error log (or i can't find these log) it just bothered me for days.
i don't know where did i miss, can you help me?

--- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'localhost'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = ''; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = ''; # used with PHPMAILER_METHOD_SMTP
$g_webmaster_email = 'webmaster@example.com';
$g_from_email = 'noreply@example.com'; # the "From: " field in emails
$g_return_path_email = 'admin@example.com'; # the return address for bounced mail
72D0CD6B-2B3E-4e5c-B1B9-A32CA6746C09.png
72D0CD6B-2B3E-4e5c-B1B9-A32CA6746C09.png (54.98 KiB) Viewed 23616 times
Post Reply