error Name&Phone form

2 replies · opened Jan 23, 2017

JjokerpkJan 23, 2017

Hello!

Can you help me, please, with my form issue?

Form address: http://w29773f4.bget.ru/sd/#zapis

After fliping fields and click "Send" I can see this message:

{ "alert": "error", "message": "Email could not be sent due to some Unexpected Error. Please Try Again later.

Reason:
You must provide at least one recipient email address." }

In addition sendemail.php

Thanks

JjokerpkJan 26, 2017

need help

SSemicolon WebSTAFFJan 30, 2017

Hello,

We have just checked out your Website and it is not working for you because you have not included the Email Field in your Form. Additionally, also make sure that you have added your Name and Email Address as explained in the Documentation > Widgets > Contact Form Section.

Please follow the Steps below:

  1. Please find the following code in the include/sendemail.php File:
$mail = new PHPMailer();

and replace it with:

$mail = new PHPMailer();
$email = 'default@your-website.com';
  1. Now, find the following code a:
if( $_POST['template-contactform-email'] != '' ) {

and replace it with:

if( $email != '' ) {
  1. Then, find and delete the following code:
$email = isset( $_POST['template-contactform-email'] ) ? $_POST['template-contactform-email'] : '';

This should definitely fix the issue. 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.

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