Could not instantiate mail function

5 replies · opened Jan 6, 2017

Rrednose2077Jan 6, 2017

Everytime i try to send an email through the contact form i get the message: "Could not instantiate mail function". I tried various email adresses in the sendemail.php. Website is: www.lakelife-event.de

Do you have a solution? Newest PHP Mailer is installed.

Thank you!

SSemicolon WebSTAFFJan 9, 2017

Hello,

The issue is that the your Web Server's PHP mail() Function does not seem to be enabled and in this case you will have to use the SMTP Authentication Functionality or you will need to contact your Web Hosting Provider to enable this for you. Complete setup instructions can be found in the Documentation > Widgets > Contact & Subscriptions Section.

Hope this Helps! Thanks for your Patience.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

PplantsgFeb 23, 2017

Hi Support Team,

I seem to have the same issue on my website "Could Not Instantiate Mail Function".
I made sure that I've already edited the receive address on the sendemail.php (used a personal gmail account for testing)

I've already tried smtp too as per the instructions on the documentation using the codes below:

$mail->IsSMTP();
$mail->Host = "smtp.gmail.com";
$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->Port = 26;
$mail->Username = "anotherpersonal@gmail.com";
$mail->Password = "passwordforthemail";

But it still doesn't work. What happens is that upon submission on the contact form, it just loads to no end.
No mails received.

Can you help us cracking this one?

SIDENOTE (I don't know how and where to post/start an inquiry here in the forums so I just posted it in here. Apologies)

Thanks in advance!
Justin

SSemicolon WebSTAFFFeb 23, 2017

Hello,

Ideally, you will need to contact your Web Hosting Provider in this case as they are most likely to solve these issues for you.

However, meanwhile can you please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFMar 10, 2017

Hello,

We have checked out your Website and the Issue appears to be with the include/process.php File which does not follow the same Output Format as the include/sendemail.php File. Please make sure that the Output Format of your Custom PHP File is in the Same Format (JSON) as the Default PHP Files so that the Message is properly executed and a notification is shown.

Example of an Output is:

echo '{ "alert": "error", "message": "Captcha not Validated! Please Try Again." }';

This should definitely fix your issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard