Could not instantiate mail function

Phoca Guestbook - creating guestbooks in Joomla! CMS
jplelay
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Mar 2010, 11:22

Could not instantiate mail function

Post by jplelay »

Hello,

When a end-user want to put a message in our guest-book, he receive the following message :
Could not instantiate mail function.
I checked my configuration and my email address is right indicated.

What can I do ?

Regards.

J.P. LE LAY
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48736
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Could not instantiate mail function

Post by Jan »

Hi, check the mail function, the post was added to guestbook but while sending the mail, the mail could not be sent. The mail is sent by Joomla! framework mail function, so this needs to be checked in Global Configuration of Joomla!



Jan
If you find Phoca extensions useful, please support the project
jplelay
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Mar 2010, 11:22

Re: Could not instantiate mail function

Post by jplelay »

Hi,

I checked the email function in Joomla and it would seem that it is well configured.

J.P. LE LAY
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48736
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Could not instantiate mail function

Post by Jan »

In such case no idea there as the mail is sent by Joomla! frameworks send function :-(
If you find Phoca extensions useful, please support the project
Dietmarh
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Aug 2010, 01:37

Re: Could not instantiate mail function

Post by Dietmarh »

Sure there is no problem? I tried it with two addresses and there came no mail. Information about system mails arrive properly to both addresses.
jplelay
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Mar 2010, 11:22

Re: Could not instantiate mail function

Post by jplelay »

Hi,

Yes, I am sure there is no problem.
The mail function was poorly configured on the server.
The admin has made the necessary changes.

Best regards.

Jean-Pierre
Dietmarh
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Aug 2010, 01:37

Re: Could not instantiate mail function

Post by Dietmarh »

I found my problem, too. But I think it is a bad solution in Phoca Guestbook.

There is no item "Use Default" in the setting for the admin mail in the menu item. So the global setting made in Phoca Guestbook itself is always overwritten by this menu setting. The global setting for this is needless. If you don't set it in every menu item, no admin mail is going out.

Bad trap...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48736
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Could not instantiate mail function

Post by Jan »

Hi, see:
https://www.phoca.cz/documents/3-phoca-g ... l-settings

"Use Global" cannot be used for some kind of parameters (like for list of users) ... As if the parameters are not saved in administration, default values taken from php code must be run. And if you add some defalt value to php code, you will have no possibility to set "no" for emailing.

Jan
If you find Phoca extensions useful, please support the project
Post Reply