Multiple problems with contact form

3 replies · opened Jan 28, 2022

BbcolledaJan 28, 2022

Here is my website redpinewebdesign.com

Here is my code:

/*-------------------------------------------------
	Receiver's Email
---------------------------------------------------*/

$toemails = array();

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

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

$fromemail = array(
	'email' => 'brendan@redpinewebdesign.com', // Company's Email Address (preferably currently used Domain Name)
	'name' => 'Red Pine Web Design' // Company Name
);

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

// Add this only if you use reCaptcha with your Contact Forms
$recaptcha_secret = 'I did put my secret here'; // Your reCaptcha Secret

And:


   
   

Problems!

The email doesn't send. It "says We have successfully received your Message and will get Back to you as soon as possible." I checked my email inbox and nothing comes up!

If I change the SMTP, it gives this error:
Email could not be sent due to some Unexpected Error. Please Try Again later.
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Here is the SMTP code I'm using:

/* Add your SMTP Codes after this Line */
$mail->IsSMTP();
$mail->Host = "redpinewebdesign.com";
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Port = 26;
$mail->Username = "brendan@redpinewebdesign.com";
$mail->Password = "my email password went here";

// End of SMTP
SSemicolon WebSTAFFJan 29, 2022

Hello,

It appears that there is some Firewall on your SMTP Servers which is blocking the Connection. Please consider contacting your Web Hosting Providers regarding this and notify them that you would like to connect to SMTP using PHP and they should be able to help you out with this.

Also, you can consider verifying your Port and Auth Settings for your SMTP Servers and fixing it in the codes.

For more troubleshooting details, please check here: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#smtp-error-could-not-connect-to-smtp-host .

Hope this Helps!

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

BbcolledaJan 29, 2022

Fixed! I contacted my host and they said the email router was not set properly.

SSemicolon WebSTAFFJan 31, 2022

Hello,

Glad the issue was resolved.

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