Page 1 of 1

V1.0.5 Doesn't let me to create user and doesn't send email.

Posted: 16 Aug 2006, 19:27
by ssaj80
I got version 1.0.5 of mantis.. I configured it properly but it doesn't let anyone to create its USER ID and also it doesn't send any email message to the user and gives this ERROR:

PROBLEMS SENDING MAIL TO: test123@hotmail.com
Mailer Error: Could not instantiate mail function.

Please tell me what to do now?

Posted: 16 Aug 2006, 21:39
by gravyface
I had the same error but if you hit your back button, you'll see that the user has been created but that they have no password yet; I'm not sure if these emails are stored in a table in the database somewhere but if they are, you can probably fetch the URL from the message body and email it to someone manually for now. This link takes the new user to a registration/activation page where they can choose their password and then log in.

As for the actual error, it sounds like you don't have SMTP/mail configured on your server where Mantis is installed. This in itself is not trivial (there's relaying issues, etc.) and requires you to be somewhat familiar with your OS and system admin in general.

I'd suggest going to http://www.linuxquestions.org and asking them how to set up a mail server. Once you can send mail on your server, Mantis mail functionality should work.

Posted: 17 Aug 2006, 03:03
by vboctor
In Mantis 1.1, such emails will be queued in the database and will be sent once the email settings works or the SMTP becomes available.

Regards,
Victor
http://www.futureware.biz/mantisconnect/

Posted: 17 Aug 2006, 03:08
by gravyface
And if you do have a mail server installed but configured incorrectly, it'll queue it in /var/spool/mqueue or the like (depending on distro) for an indefinite amount of time.

Posted: 17 Aug 2006, 11:53
by Narcissus
I'd add that you might just need to fix the phpMailer settings in your configuration. Maybe set your SMTP server name and so on?

I don't have any code in front of me to tell you the exact things to look for, but it's probably just a config issue...

Posted: 17 Aug 2006, 12:39
by gravyface
And if you want to disable the password reset process (new users will be created with a blank password), copy the following from config_defaults_inc.php to config_inc.php, near line 150. Set this to "OFF":

Code: Select all

# if ON users will be sent their password when reset.
# if OFF the password will be set to blank. If set to ON, mail settings must be
# correctly configured.
$g_send_reset_password	= ON;
I think we're talking to ourselves here, but hopefully somebody else will find this useful. ;)

Posted: 17 Aug 2006, 12:42
by Narcissus
We may very well be talking to ourselves, but just had to make a note. Don't change anything in config_defaults_inc.php. Any changes you wish to make to that file, copy in to config_inc.php and make the change there.

That way you won't need to merge your changes on upgrade...

Posted: 17 Aug 2006, 12:48
by gravyface
Ah, good to know! Thanks

Posted: 17 Aug 2006, 18:01
by ssaj80
Thanks mates.. thanks alot for your kind replies.. I will try to configure on the paths you guys have answered. :0)