Forums

Mailer Error: Could not instantiate mail function.

steverahks 13 Jun, 2016
I am getting the error: Mailer Error: Could not instantiate mail function.

I have read the documentation relating to this and verified everything is correct.

[list]I am receiving email from the Joomla Core programs[/list]
[list]The "From name" and "From email" used in the "Mail setup" match the ones used in your form's Email setup.[/list]
[list]I am not using the mail settings in Chronoforms since the Joomla settings do work.[/list]
[list]I did set up and try using the Chronoforms settings just in case. Didn't help.[/list]

Here is the debug info:

Array
(
    [2] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below could NOT be sent:
                    [1] => To:glass.artist@my-domain.com
                    [2] => Subject:liquidglassco.com visitor submission 2016-06-13 21:44:31
                    [3] => From name:Liquid Glass Company
                    [4] => From email:glass.artist@my-domain.com
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:tim.haas@some-domain.com
                    [9] => Attachments:
                    [10] => Body:
<table>
<tr><td></td><td></td></tr>
<tr><td>Full Name:</td><td>Tim Haas</td></tr>
<tr><td>Phone:</td><td>320-582-2288</td></tr>
<tr><td>E-mail:</td><td>tim.haas@midmnmarketing.com</td></tr>
<tr><td>Array</td><td>test</td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 173.22.157.151
                )

        )

)

What needs to be fixed?

Thanks. Help is always appreciated.
GreyHead 14 Jun, 2016
Hi tjhaas,

If you are using a Reply To Email please also add the Reply To Address; Joomla! 3.5 has changed the way it handles Reply To addresses.

Also the From and To Emails are the same, I wouldn't expect that to give you an instantiation error but it can lead to the emails being dropped.

Is the glass.artist@ address the one used in the Site Email settings?

Bob
steverahks 14 Jun, 2016
Hello,

Here are the settings:

Enabled: Yes
To: glass.artist@liquidglassco.com
From Name: Liquid Glass Company
From email: Now left blank - using the dynamic from email
Dynamic Subject is used
Dynamic from email is the email address submitted in the contact form.

Yes the glass.artist@ address is the one used in the Site Email Settings.

Still not working. Same error message.
GreyHead 15 Jun, 2016
Hi tjhaas,

I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

Bob
steverahks 15 Jun, 2016
Ok, got that fixed.

Still having the issue with:
Error: "Could not instantiate mail function"
GreyHead 16 Jun, 2016
Hi tjhaas,

By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 17 Jun, 2016
Hi tjhaas,

Sorry I don't know why this is failing. It may be that the email From address is for a subdomain and not the domain in use ???

I have confirmed that the site will send an email from a link in an article so the mail settings do work.

I have tried various options in the mail you have (you had the same To & From address and a Reply To Email with no matching Reply To name); and I have created a test form - all of these get the Instantiate error.

As ChronoForms is using the Joomla! mailer this should work OK unless there is a server setting blocking it for some reason - you should check this with your web host.

You could also try adding the SMTP settings to the CF Email settings - click the Settings icon in the toolbar - but this should not be necessary,

Bob
steverahks 17 Jun, 2016
Hi Bob,

Thank you for your time and efforts. I appreciate it a great deal.

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