Contact form again. Common problem with no help?

10 replies · opened Oct 15, 2017

NNJTSOct 15, 2017

Hello all.
This is the question for all of the users of CANVAS template, and support as well.
Common problem here is "contact form doesnt work".
I have the same problem.
CANVAS have lots of people around the world and they dont have this problem. Why?
"Just change your Email Address in the include/sendemail.php or include/quickcontact.php File to start receiving Form Responses."
Didnt work: "could not instantiate mail function"
"... But you can use SMTP Authentication. Just find the following line of code: $mail = new PHPMailer();... "
Didnt work: "smtp connect failed. https://github.com/... "

  1. I have all files on my server.
  2. Didnt modify other files.
  3. Didnt ask my server guys about PHP Mailer, Im sure it works.
  4. Maybe Im wrong.
    This post because after 2 days surfing online for an answer... still nothing.
    HELP!
NNJTSOct 15, 2017

Upload Error, so again.

HhisalmanOct 16, 2017

Same issue with me as well.

Ccelf82Oct 17, 2017

Hello, I have the same problem and already sent a message to this forum asking for support a few days ago. Still no answer yet either. I hope it will come soon so that I can finalize the website.

NNJTSOct 17, 2017

You know what? I didnt do anything, absolutly nothing with a code. I left it until someone will help, and checking now to see again this f*cking red box and... its working!
Maybe server needs some time to... I dont know. I hope it will work forever.
So in my case patience was the answer.
Any way Im expecting explanation from designer of this code or template how it works. Please :-)

Guys, please tell me how did you resolve the problem. Thanks.

This is not everything!!!
Durning writing this post, I tryed the form a few times. 3 times red boxes (could not instantiate... ) vs 2 times green boxes. And more tryes...
I checked all very carefully: if I wrote my email addresses from my server xxx.home.pl in the field -email- , all was Okay. If from xxx@gmail.com, xxx@yahoo.com... NOT Okay. Email in include/sendemail.php is NOT on my server. Its free email xxx@gmx.com.
???

Than I changed email in include/sendemail.php to my server email xxx@home.pl and nothing new. All the same. Try yourself: https://goo.gl/4abjrZ

Website is of course on my server xxx.home.pl

:) works like localhost, LAN. Funny.

Any idea?

ps.I hope you understand my language ;-)

NNJTSOct 18, 2017

Okay. Done.
Because some servers have strong antispam rules, software... whatever, you have to show to the server that the message is not a spam. Easiest way is to send message from the same server. Maybe its only one way.
So, create an email address e.g. form@xxx.xx on the server with website files.

What to do:

Changes only in the include/sendemail.php or include/quickcontact.php

after this code:
$toemails[] = array( 'email' => 'username@website.com', // Your Email Address 'name' => 'Your Name' // Your Name );

add:
$name = strip_tags($_POST['name']); $email = strip_tags($_POST['email']);

this code:
$mail->SetFrom( $email , $name );

replace with:
$mail->SetFrom('xxx@xxx.xx'); // Your Email Address on the same server with website files

It works for me perfect, but shows form@xxx.xx email as a sender. Any way answer goes to $email. So its Okay.
But if you want to see name of the sender from contact form use this code:
$mail->SetFrom('xxx@xxx.xx' , $name); // Your Email Address on the same server with website files

Any other ideas very welcome. Cheers.

NNJTSOct 19, 2017

Today I checked with gmail address, CANVAS way from Documentation. Doesnt work. Any chance for support? Or this is too stupid to get any help? Is this contact template realy work for someone? Please answer, anyone. Thanks.

SSemicolon WebSTAFFOct 22, 2017

Hello,

We Really Apologize about the Delays in replying to your Support Queries and Truly Appreciate your Patience with us!

The Contact Form works fine with most servers with default settings, however some servers have some settings disabled for security reasons for protecting SPAM. We have checked out your Website and there can be the following 2 Issues:

  1. Your Server does not support the PHP mail() Function which needs to be enabled by your Web Hosting Provider in order to allow the Forms to send emails. You can contact them and they can easily do it for you.

  2. If enabling the PHP mail() Function is not an Option, you will need to enable SMTP using the Codes provided in the Documentation but you will need to change the Values according to your Own Server's Configuration in the below codes:

$mail->Host = "mail.yourdomain.com";
$mail->Port = 26;
$mail->Username = "yourname@yourdomain.com";
$mail->Password = "yourpassword";

In the post above, you have mentioned that the Error Message returned is SMTP connect() failed. This indicates that your Server does not support the SMTP Functionality as well. In this case you will need to use either the Gmail SMTP or the Yahoo SMTP. You can use this Example: https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail.phps .

Hope this Helps!

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

NNJTSNov 7, 2017

Thanks for reply, usless btw. You suggesting standard procedures. Maybe working for someone. This is old stuff, the code, and just doesnt work on modern servers. Im not an expert and even I can see it. I changed the code and it works but not realy as I want. It looks like need to hire some pro cose here no help.

SSemicolon WebSTAFFNov 8, 2017

Hello,

Thanks for your Message! Unfortunately, the PHPMailer works in this way and the codes used are from the Official Examples of the Plugin with works with >90% of the Modern Servers. Most of the Templates use this Library since it is secure and protects against SPAM and Email Spoofing. WordPress also uses this Library and the codes are completely optimized for the Modern Servers. So even if you hire a Pro for this, it will work in the same way as it is now. The Codes we have provided you are based on the Analysis of the Errors that have been reported by Canvas Users. Moreover, the Codes are an example of what works with 95% of the Servers that have Canvas Installed. The SMTP codes provided have the Configuration used by most of the Servers, but if your Servers use different Configurations like Ports/Authentication Type, then you will need to verify it with your Web Hosting Providers.

We would love to about what results are you looking for so that we can improve on the Codes and release an Update. 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