Contact Form not working

14 replies · opened Jun 3, 2022

CCoSurvivorJun 3, 2022

Hi there...

Contact forms are not working on my website: http://www.cosurvivor.in/pages/contact.html

When i try the PHP method, using just the "from" and "to" emails, I get a success message on screen but am not receiving anything in my inbox

if i try with entering the SMTP code, i get an error message saying SMTP Connect() Failed.
Have tried using Port 26 and 25 as specified by GoDaddy, have also tried SMTP Auth as true as well as false, keep getting the same error.

$mail->IsSMTP();
$mail->Host = "mail.cosurvivor.in";
$mail->SMTPDebug = 0;
$mail->SMTPAuth = false;
$mail->SMTPSecure = "ssl";
$mail->Port = 25;
$mail->Username = "rohit@cosurvivor.in";
$mail->Password = "Karmayogi2021";

The website is hosted with GoDaddy, please help with the correct settings here to get the contact forms working.

Thanks

CCoSurvivorJun 4, 2022

Tried troubleshooting with the tech support at GoDaddy.
They confirmed that i would have to add in the SMTP code, with the following settings:

$mail->IsSMTP();
$mail->Host = “184.168.100.133”;
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = “ssl”;
$mail->Port = 587;
$mail->Username = “”;
$mail->Password = “”;

However, now i just see the two circling arrows when i click submit, nothing else happens.

Please check if you could let me know what i am missing or what corrections i need to make to get this working.
Thanks

SSemicolon WebSTAFFJun 4, 2022

Hello,

Since your Form File: include/form.php is returning a 500 Internal Server Error, it is an indication that this is a Server Configuration issue.

Please consider adding the .customjs Class to the .form-widget DIV and then the following code at the very top of your include/form.php File just after the opening php tags:
[ch_pre type="php"]error_reporting(E_ALL);[/ch_pre]

which should display all the possible errors. Please notify us about the Error Message you see, after going through the process above, so that we can provide you with more assistance on 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.

CCoSurvivorJun 8, 2022

Hi there,

Thanks for yur reply...tried troubleshooting as per your suggestions, though im not totally sure of what you mean when you say - "adding the .customjs Class to the .form-widget DIV"
do you mean in in the DIV tag in the contact form html page? - <div class="form-widget">
if so could you tell me the exact syntax for your recommendation, just to make sure I get it right...

also, i spoke again a few times with the godaddy tech support...they referred me to the following page for SMTP settings - https://in.godaddy.com/help/send-form-mail-using-an-smtp-relay-server-953

im currently using the following SMTP code:

$mail->IsSMTP();
$mail->Host = “localhost”;
$mail->SMTPDebug = 0;
$mail->SMTPAuth = false;
$mail->SMTPSecure = none;
$mail->Port = 25;

So far in all my attempts, every time i try to submit the form, all i get is the two spinning arrows... no emails being received, no error messages either.

Hoping you can help with the exact code i would need to input here

SSemicolon WebSTAFFJun 9, 2022

Hello,

Replace your existing code:
[ch_pre][/ch_pre]

with this:
[ch_pre][/ch_pre]

GoDaddy is known to block PHPMailers. Secondly, make sure your Server's PHP Version is more than 5.6 or preferably the Latest Version. Additionally, you can also provide us with your FTP Details in a Private Reply and we can look into this 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.

CCoSurvivorJun 9, 2022

Hi there,

thanks so much for your reply and suggestions. Tried adding that code, but got the same result. Checked, the PHP is version 8.1

If you could help with sorting out the error it would be really appreciated.

FTP details -
Site IP address: 184.168.100.133
port: 21
FTP username: rohit@cosurvivor.in
password: Password2022

However, ive never been able to log in using an FTP client, always shows an error. Ive been using the file manager on the godaddy Cpanel, can use my login to access that:

https://www.godaddy.com/en-in
username: rohit.chawlaa@gmail.com
password: Password2022

once you log in, can go to my products --> hosting --> manage .... on the top you will find the link for "File Manager" and in the "Public_HTML" folder you can find the pages.

link to the contact page: http://www.cosurvivor.in/pages/contact.html

Please do let me know if you are able to access the files, and what would be the solution to get the forms working...

CCoSurvivorJun 11, 2022

Hi...
So after changing the DIV tag to : <div class="form-widget customjs">

when i hit the send button, it goes directly to the form.php page : http://www.cosurvivor.in/include/form.php

the page remains blank, no error message, no mails being received still...

ive sent the ftp login details in the private message above...awaiting your reply and suggestions.

Thanks

SSemicolon WebSTAFFJun 11, 2022

Hello,

We have tried Logging In to your FTP which does not work as you have mentioned and also the GoDaddy Account requires Two Factor Authentication which requires an OTP (either sent to your Email or Mobile) to Login to your Accounts. We request you to contact GoDaddy and fix FTP so that we can easily access your Form Processor and fix this issue for you at the earliest. 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.

CCoSurvivorJun 12, 2022

Hi...
thanks for your reply.

so after multiple calls with goddaddy support, have managed to get the ftp working on filezilla.

using the quickconnect option with the following settings:

Host: 184.168.100.133
port: 22
FTP username: b1g6byvy4u6o
password: Admin@1234

do let me know if this works for you, or for any errors still showing up

SSemicolon WebSTAFFJun 14, 2022

Hello,

Issue fixed! The Blank error you were getting is due to the unformatted quotes in code which you had copy/pasted. We always recommend using a Text Editor to write/edit your codes.

Additionally, there were SMTP Settings which we need to change that fixed the issue. Overall, GoDaddy is a very shitty hosting provider as it blocks many User Preferences of using external services. We highly recommend using a more transparent hosting service for your websites for best experience.

Hope this Helps!

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

CCoSurvivorJun 14, 2022

Hi there...

Thanks for your help...i do see a success message now when i submit the form, however im still not receiving any emails in my inbox (have checked he spam folder too), so really not sure what to do from here.

was going through some other topics on the support forums, and im guessing using gmail smtp is also not currently an option.

I hope you understand, as long as i cannot get contact forms to work, i cannot undertake any sort of social media promotions or email marketing for the website...its really important for me to get this going.
Understood that godaddy is a shitty hosting provider, just getting basic tech support from them has been a pain. My hosting is about to expire soon with them so i have 2 questions:

1 - can you recommend a good hosting provider? i have enjoyed customizing my website using your templates and in fact, there are a lot more pages and sections im working on right now....pls let me know a hosting provider where all the Canvas HTML codes will work without any issues.

2 - what can i do right now to start receiving any contact form queries? so far, im not receiving anything after submitting the forms on the website

SSemicolon WebSTAFFJun 15, 2022

Hello,

If the Email is not getting delivered even while using SMTP then this is a Huge SMTP issue. Canvas's codes work on every host but unfortunately, there are some external factors like some Hosting Providers like GoDaddy blocking functionalities which is beyond our control. These kind of Hosting Provider place many limits on their Shared Hosting and force you to buy premium plans. We use Google Cloud and Digital Ocean but we have built the Server ourselves. You can consider using A2Hosting or SiteGround. They should work great. Additionally, you can consider using an Email API like SendGrid or Mailgun.

Gmail is still supported. Consider using the Solution mentioned in this Support Topic: https://support.semicolonweb.com/forums/topic/gmail-less-secure-app-access/ .

Hope this Helps!

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

CCoSurvivorJun 20, 2022

Hi there...

Thank you so much for your reply and suggestions, much appreciate the solutions and recommendations provided.

I'm working with GoDaddy tech support to understand why im not receiving any emails even after seeing a success message after the forms are submitted.
In the meanwhile, trying to use gmail smtp but getting an error. Could you please let me know if the following code is correct:

$mail->isSMTP();
$mail->SMTPDebug = 0;
$mail->Host = 'smtp.gmail.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "cosurvivor.explore@gmail.com";
$mail->Password = "fiemblpcuvdbwvyz";

the password is the "pass key" generated by google for my email address.

thank you...

CCoSurvivorJun 20, 2022

Hi...
please ignore the above message, have finally got it to work...

Once again, thank you very much for all your help...much appreciated!

SSemicolon WebSTAFFJun 21, 2022

Hello,

Glad the issues were resolved. Very Happy to Help! :)

We are using the same SMTP for Gmail as you have mentioned above with the App Password (Pass Key) and it is working perfectly for us. So this should work fine for you as well.

Please 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