Contact form via SMTP authentification

1 reply · opened Oct 13, 2017

Ccelf82Oct 13, 2017

Hello,

I don't manage to make the contact form work properly. Since nothing happend when we clicked on the "submit button", I added the SMTP authentification on the sendemail.php file (as written on the documentation). I guess i did wrong since I got this error message:

Email could not be sent due to some Unexpected Error. Please Try Again later.
Reason:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I don't have a mail adress with the domain mail of the website i'm developping. So what do you exactly mean by
$mail->Host = "mail.yourdomain.com"; >mail.7eetage.fr?
$mail->Username = "yourname@yourdomain.com" > my yahoo address?
$mail->Password = "yourpassword";> my yahoo password?

Here is the website I'm talking about: http://7eetage.fr/

Many thanks in advance for your help!

SSemicolon WebSTAFFOct 15, 2017

Hello,

Thanks for your Patience!

We have checked out your Website and there can be the following 2 Issues:

  1. Your Server does not support the PHP mail() Function which needs to be enabled by your Web Hosting Provider in order to allow the Forms to send emails. You can contact them and they can easily do it for you.

  2. If enabling the PHP mail() Function is not an Option, you will need to enable SMTP using the Codes provided in the Documentation but you will need to change the Values according to your Own Server's Configuration in the below codes:

$mail->Host = "mail.yourdomain.com";
$mail->Port = 26;
$mail->Username = "yourname@yourdomain.com";
$mail->Password = "yourpassword";

In the post above, you have mentioned that the Error Message returned is SMTP connect() failed. This indicates that your Server does not support the SMTP Functionality as well. In this case you will need to use either the Gmail SMTP or the Yahoo SMTP. You can use this Example: https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail.phps .

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