Page 1 of 1

Mailer Error: Could not instantiate mail function.

Posted: 18 Apr 2007, 10:55
by polarbear
Hi All,

I have deployed Mantis on an Apache Server 2.2.4 & i have installed MySQL 4.1 along with PHP 5.2.1
Whenever i try to create an account ( I would like to tell you here that I have the administrator rights), am propmpted to enter the username ,realname & password. Once i click on the create user button i am displayed with an error
"Mailer Error: Could not instantiate mail function."
though the user a/c is created he cannot login to the system becaz he has not received password bcaz there is a fail in sending mail .
Can anybody direct me how to overcome this problem?

Advance thanks,
Polarbear

Posted: 18 Apr 2007, 22:48
by ed
have you set the following variables (if required) in config_inc.php:

$g_phpMailer_method = 2;
$g_smtp_host = 'localhost';
$g_smtp_username = '';
$g_smtp_password = '';

Posted: 19 Apr 2007, 01:33
by mdrfkrjrm
if you haven't configured your the email feature, you can type these in the config_inc.php
these will disable the email notification feature and enable the admin to assign the password to the user.

$g_enable_email_notification = OFF;
$g_send_reset_password = OFF;
$g_validate_email = OFF;
$g_check_mx_record = OFF;

Posted: 19 Apr 2007, 07:18
by polarbear
Hi Ed, :(
I tried what u said.
But still the emails are not send.
It would have been more helpful if u had listed all the workarounds which i can try to make email working & i would also like to know what may be the reasons for emails being not sent.

with advance thanks,
polarbear

Posted: 19 Apr 2007, 23:06
by ed
They are the variable you need to set, not necessarily the settings they should be.

Are you able to send email with other applications from the machine mantis is installed on?

Posted: 20 Apr 2007, 06:00
by polarbear
Hi Ed.. :D

Thanks for your quick response.
Mails started working after i changed the SMTP host name to a different SMTP hostname.

Cheers,
Polarbear