Submit Button on Contact Form Does not work

8 replies · opened Jun 9, 2016

AamaliacardenasJun 9, 2016

Hello,

I read the Contact and Subscriptions documentation carefully and did not manage to have the form emailed to my gmail account when you click on the submit button. Here is what I have done:

In the **include/sendemail.php AND in the include/quickcontact.php **I added my email address and name in the appropriate section. Below is an example of the code that I manipulated. Just so you know, the name and email address below is not my actual email address. For the purpose of this email I added an example in order to avoid spam.

$toemails[] = array(
'email' => 'amalia@amalia.com', // Your Email Address
'name' => 'Amalia' // Your Name
);

I am attaching the html and the php files.

Please let me know if there is something I need to add to the HTML in order to have the form submit to my email address. Thank you

Amalia

AamaliacardenasJun 9, 2016

Below is the HTML for the form

				

							
								Name *
								
							

							
								Email *
								
							

							

							
								Phone
								
							

							
								Services
								
									-- Select One --
									Coaching Packages
									Video Request
									General Question
									Other
								
							

							

							
								Subject *
								
							

							
								Message *
								
							

							
								
							

							
								Send Message
							

						
AamaliacardenasJun 10, 2016

Hello,

I am still waiting for your reply. Is there anything I need to add to the html in order for the contact form to work? As I mentioned above I added my email address and name in the include/sendemail.php AND in the include/quickcontact.php sections per your instructions on the documentation. Is there anything else I need to do in order for the form to submit properly?

Thanks in advance for your help.

Best,

Amalia

SSemicolon WebSTAFFJun 10, 2016

Hello,

According to all the Information you have provided us with in the Previous Posts, the settings you have done appear to correctly configured. However, since you are facing an issue it would be great if you can 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.

Additionally, the Forms use the PHPMailer to send Form Replies using the PHP mail() Function so it could also be possible that your Web Server does not support it or might have been block by your Web Hosting Provider. So it is recommended that you contact your Web Hosting Provider regarding this and ask them to enable it for you. If this is not an Option then you will need to use SMTP Authentication to Send Emails. Complete Instructions for this has been provided in the Documentation > Widgets > Contact Forms Section.

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

AamaliacardenasJun 14, 2016

Hello,

Thank you for your response. This is the live URL where the contact form is located. http://www.anybodycancode.com/contact.html

I checked the console and I am getting a 404 error.

http://www.anybodycancode.com/include/sendemail-recaptcha.php 404 (Not Found)

It looks like there is a missing include/sendemail-recaptcha.php file. I looked in the original zip file that I downloaded and the template does not seem to have a sendemail-recaptcha.php file in the include folder. Where can I get this file?

In addition, the twitter feed on this page is not loading. What do I need to do to configure this widget?

Thank you for your help.

Kind Regards,

Amalia

AamaliacardenasJun 15, 2016

Hello,

I am still waiting for your reply. Please let me know if you will be able to help me solve this issue.

Kind Regards,

Amalia

SSemicolon WebSTAFFJun 15, 2016

Hello,

[sb_private_reply]Apologies about the Delays![/sb_private_reply]

  1. There was a Minor Bug in the Form Action Linking in the reCaptcha Templates and we have fixed this in our Latest Version going to be released shortly. We Really Apologize about this! You can fix this by simply replacing the action="include/sendemail-recaptcha.php" to action="include/sendemail.php" in the Form. This should definitely fix the issue! Thanks for your Patience.

  2. Can you please provide us with a Live URL so that we can check out the exact issue with the Twitter Feed 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.

AamaliacardenasJun 15, 2016

Hello,

Thank you for your response. The contact form is now working.

The twitter widget is located at the bottom of the contact form next to the mailing address on this page: http://anybodycancode.com/contact.html

I see that on your documentation you mention that the new Twitter API v1.1 no longer supports unauthenticated User Timeline calls so I will have to now authenticate to OAuth. How can i ensure that the consumerkey, the consumersecret, the accesstoken, and the accesstokensecret are private? I have seen people create environment variables to protect these keys, but this is a static site so I can't do that. I am afraid that if I upload the include/twitter/tweets.php to my public_html folder I open up access to unwanted users. Please let me know what I need to do.

Thanks for your help.

Amalia

SSemicolon WebSTAFFJun 17, 2016

Hello,

Your API Keys will always be private as they are non-accessible through the PHP Files. PHP Files are Server Side Files and they do not reveal information. So you can definitely use them without worrying. All the Websites that use OAUTH Authentication use this Method. So please follow the Steps mentioned in the Documentation and it will definitely work fine for you.

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