Help with Contact Form

1 reply · opened May 5, 2020

JjdussaillantMay 5, 2020

Hi, im having issues with the contact form, when submitting I get the following error:

"jquery.js:2 POST file:///home/jid/EnerlinkWeb/include/form.php net::ERR_FAILED"

You can check a live version of the web in enerlink

Also, this is my form.php, i followed the documentation for editing it:

 'contacto@enerlink.cl', // Your Email Address
				'name' => 'Contacto' // Your Name
			);

/*-------------------------------------------------
	Sender's Email
---------------------------------------------------*/

$fromemail = array(
				'email' => 'soporte@enerlink.cl', // Company's Email Address (preferably currently used Domain Name)
				'name' => 'Soporte' // Company Name
			);

/*-------------------------------------------------
	reCaptcha
---------------------------------------------------*/

// Add this only if you use reCaptcha with your Contact Forms
$recaptcha_secret = ''; // Your reCaptcha Secret

/*-------------------------------------------------
	PHPMailer Initialization
---------------------------------------------------*/

$mail = new PHPMailer();

/* Add your SMTP Codes after this Line */
$mail->isSMTP();
$mail->SMTPDebug = 0;
$mail->Host = 'smtp.gmail.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "contacto@enerlink.cl";
$mail->Password = "[Redacted]";
// End of SMTP

The html is from the templates but i have removed the Captcha.

SSemicolon WebSTAFFMay 6, 2020

Hello,

We have checked out your Contact Form and currently it returns a 405 Method not allowed HTTP response on the: https://dev.enerlink.cl/include/form.php File. The reason for this is that, this file is currently downloadable in the Browser, while it should be executable by your Servers using the PHP Engine (which is already enabled by default on Most Servers) so that it can process your Form's Information. So, simply setting this file to be executable by your Servers should fix your issue. You will need to contact your Web Hosting Providers for this.

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