dispatch() JROOT/index.php:522 JComponentHelper::renderComponent() JROOT/includes/application.php:2183 JComponentHelper::executeComponent() JROOT/libraries/legacy/component/helper.php:3394 require_once() JROOT/libraries/legacy/component/helper.php:3595 process() JROOT/components/com_chronoforms/chronoforms.php:966 CFChronoForm->process() JROOT/components/com_chronoforms/chronoforms.php:1077 CFChronoForm->_processEvents() JROOT/components/com_chronoforms/libraries/chronoform.php:2378 CFChronoForm->_processAction() JROOT/components/com_chronoforms/libraries/chronoform.php:2629 CFChronoForm->runAction() JROOT/components/com_chronoforms/libraries/chronoform.php:28710 CfactionEmail->run() JROOT/components/com_chronoforms/libraries/chronoform.php:31211 JMail->sendMail() JROOT/administrator/components/com_chronoforms/form_actions/email/email.php:21712 JMail->Send() JROOT/libraries/joomla/mail/mail.php:47613 JError::raiseNotice() JROOT/libraries/joomla/mail/mail.php:9514 JError::raise() JROOT/libraries/legacy/error/error.php:289"> Could not instantiate mail function - Forums

Forums

Could not instantiate mail function

tdhfox21 12 Aug, 2013
When the form is submitted, it errors: "Could not instantiate mail function."

I have read over the forums, and looked at what others have said about it. I can send emails from Joomla (Mass Mail functionality), and I have the Send From address match up with that of the Chronoform. Is there anything further I can look into, or test?

Thanks in advance for anyones assistance!

Joomla! Version | Joomla! 3.0.4 Stable [ Ember ] 24-April-2013 14:00 GMT
Chronoform Version | Version 4.0

The Joomla debugger lists;

Could not instantiate mail function.
Call stack
# Function Location
1 JSite->dispatch() JROOT/index.php:52
2 JComponentHelper::renderComponent() JROOT/includes/application.php:218
3 JComponentHelper::executeComponent() JROOT/libraries/legacy/component/helper.php:339
4 require_once() JROOT/libraries/legacy/component/helper.php:359
5 process() JROOT/components/com_chronoforms/chronoforms.php:96
6 CFChronoForm->process() JROOT/components/com_chronoforms/chronoforms.php:107
7 CFChronoForm->_processEvents() JROOT/components/com_chronoforms/libraries/chronoform.php:237
8 CFChronoForm->_processAction() JROOT/components/com_chronoforms/libraries/chronoform.php:262
9 CFChronoForm->runAction() JROOT/components/com_chronoforms/libraries/chronoform.php:287
10 CfactionEmail->run() JROOT/components/com_chronoforms/libraries/chronoform.php:312
11 JMail->sendMail() JROOT/administrator/components/com_chronoforms/form_actions/email/email.php:217
12 JMail->Send() JROOT/libraries/joomla/mail/mail.php:476
13 JError::raiseNotice() JROOT/libraries/joomla/mail/mail.php:95
14 JError::raise() JROOT/libraries/legacy/error/error.php:289
tdhfox21 13 Aug, 2013
Hi Bob,

Thanks for your reply.

I have had a look at the FAQ, and headed down the path of the GH email action. This installed correctly (from what I can tell), however I am not noticing any difference or what I should be doing with this update that will make the Chronoform emails work.

Do you have another webpage you can point me to more information please?

I really appreciate your assistance. Thanks.

Kindest regards,
Todd
GreyHead 13 Aug, 2013
Hi tdhfox21,

You'd need to add the action to your form in place of the standard Email action. Have you done that?

Bob
tdhfox21 15 Aug, 2013
Good afternoon Bob,

I have removed the old email events (defaults), and added in yours just underneath the event "DB Save". I have added in the details to all the associated tabs, and I can see that your event is definitely being called as when I submit the form I can see the details I entered into the action being displayed.

The end error is still "Could not instantiate mail function."

---
General Tab
Enabled=True
Condition=null
Action Label="Email submit"
Send individual emails=null
Check MX record=True
File attachments=null
IP=True
Filter=True

EMail Setup Tab
[email]To=just_an_account@hotmail.com[/email]
Subject=Form submit
The rest is left as defaults

Debug Data
1. Email info
Email failed
Could not instantiate mail function.
From: (Admin at our website) info@ our website
To: [email]just_an_account@hotmail.com[/email]
Subject: Form submit
---

Is there any other tests I can do, or further documentation I can run through?

Appreciate your assistance!🙂

Cheers,
Todd
GreyHead 15 Aug, 2013
Hi Todd,

I think all the other suggestions are in the FAQ I linked to. You could also check with your web host to see if they have any suggestions.

Bob
tdhfox21 28 Aug, 2013
Hi Bob,

Just wanted to give you an update on this, which may come in handy for other users.

The post over at: http://forum.joomla.org/viewtopic.php?t=727435 had a fix for me with the instantiate mail issue. There was a 'fixed' PHPMailer.php that a user provided, which I believe was based off the Joomla 2.5 version.

Might work for others as well.

Cheers,
Todd
GreyHead 30 Aug, 2013
Hi Todd,

Thanks for that - I hadn't seen it. I've added a link to that thread to the FAQ here.

Bob
This topic is locked and no more replies can be posted.