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 SecretAnd:
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