Mailer Error: Could not instantiate mail function.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Mailer Error: Could not instantiate mail function.

Post 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
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post 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 = '';
mdrfkrjrm
Posts: 19
Joined: 12 Apr 2007, 07:28

Post 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;
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Post 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
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post 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?
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Post 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
Post Reply