phpmailer

4 replies · opened Mar 4, 2023

KkasempongMar 4, 2023

Hi Support,

I am using medical theme and having problem on sending mail, as after I pressed the button it just kept spinning. I have not yet uploaded the files to my hosting, testing it on my personal computer. Please check my setting:

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

$fromemail = array(
'email' => 'kasempong@outlook.com', // Company's Email Address (preferably currently used Domain Name)
'name' => 'Using Outlook' // Company Name
);

$recaptcha_secret = ''; // Your reCaptcha Secret

$mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host = "smtp-mail.outlook.com";
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Port = 587;
$mail->Username = "kasempong@outlook.com";
$mail->Password = "************";

I have also tried on domain name, and the same thing happened - spinning icon on the button.

Thanks and regards,
Kasempong

SSemicolon WebSTAFFMar 7, 2023

Hello,

Thanks for your Kind Patience!

This appears to be an issue with the Servers/Configurations and we will need a Live URL so that we can check out the exact issue and provide you with more accurate assistance on this. Thanks for your Patience.

Additionally, your Form File: include/form.php could be returning a 500 Internal Server Error which is an indication that this is a Server Configuration issue.

Please consider adding the .customjs Class to the .form-widget DIV and then following code at the very top of your include/form.php File 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.

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

KkasempongMar 10, 2023

Hi Support,

I did add .customjs to .form-widget DIV in ratichestclinic.com/newRati.html, and add "error_reporting(E_ALL);" in include/form.php the very top line after PHP opening tags. After I click on the submit button, the page went back to the top part, no mail was sent.

live url: www.ratichestclinic.com/newRati.html

Thanks and regards,
Kasempong

KkasempongMar 10, 2023

Hi Support,

I think the SMTPsecure was wrong, now I have received a mail from the server.

Thanks,
Kasempong

SSemicolon WebSTAFFMar 11, 2023

Hello,

Thanks for your Patience!

Based on your Reply, the Form was spinning without any notification because of the SMTP Issue. Now, you can rollback to before the above fixes:

  1. Remove the .customjs Class.

  2. Remove the `error_reporting(E_ALL);`` Code.

The Form should now work as expected.

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