Page 1 of 1

Could not instantiate mail function

Posted: 04 May 2011, 18:37
by fgueho
I'm on my own server.
When I try to send an email from the contact form, I have : "Could not instantiate mail function".

You can test it here :
http://88.191.136.19/focalefixe.fr/

I've tried the "imagevue-check" :
http://88.191.136.19/focalefixe.fr/iv-i ... -check.php

And it works !

The mail function from the command line (on SSH) or from a simple PHP script is also working properly.
So I just don't understanf how the contact form can't send a mail...

Thanks for your help.

Fred

Re: Could not instantiate mail function

Posted: 04 May 2011, 23:53
by Nick
Try to set forceFrom to 'none' or to your email address from your own server. Another option would be to switch to SMTP email.

Re: Could not instantiate mail function

Posted: 05 May 2011, 04:42
by fgueho
I'm not sure to understand.
Do you mean I have to modifiy something in the php.ini ?

Re: Could not instantiate mail function

Posted: 05 May 2011, 04:55
by Nick
It's actually in Settings>Email:

Image

Although I am not sure if it's in 2.6.4 or appeared in 2.7beta, which you are welcome to try anyway.

Re: Could not instantiate mail function

Posted: 07 May 2011, 10:14
by fgueho
Ok, I found what was the problem : a missing parameter in my postfix configuration.

Tks