SMTP

8 replies · opened Aug 12, 2020

LLuiz Augusto Correia de AraujoAug 12, 2020

Hi,

I can't send email using SMTP on http://www.mrocha.eng.br/r_imigrantes/

The code I am using is:

$mail->isSMTP();
$mail->SMTPDebug = 0;
$mail->Host = 'smtp.mrocha.eng.br';
$mail->SMTPAuth = true;
$mail->Port = 587;
$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
$mail->Username = 'email';
$mail->Password = 'password';
$mail->addBCC('another_email');
$mail->IsHTML(true);

Could you please help me to fix this issue?

Regards,

Luiz

SSemicolon WebSTAFFAug 12, 2020

Hello,

The Link of the Form Processor PHP File which your Contact Form is linked to does not exist: http://www.mrocha.eng.br/include/form.php . This might be why your Forms are not working. make sure that you upload the File to its appropriate location on your Web Servers.

Hope this Helps!

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

LLuiz Augusto Correia de AraujoAug 12, 2020

Hi,

Thanks for the quick reply.

This form is in the folder "r_imigrantes" of the http://www.mrocha.eng.br/ website.

We changed this code:
``

To this one:
``

But the issue still there.

Any other idea?

Thank you!

SSemicolon WebSTAFFAug 12, 2020

Hello,

We have checked out your PHP File again and it contains PHP Errors: http://www.mrocha.eng.br/r_imigrantes/include/form.php . Here is the Error Message:


Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/mrocha.eng.br/www/r_imigrantes/include/form.php on line 15

Make sure that your codes are error free to avoid any issues.

Hope this Helps!

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

LLuiz Augusto Correia de AraujoAug 12, 2020

Hi,

We are using the op-apartment.html template in a folder "http://www.mrocha.eng.br/r_imigrantes/" and we are trying to follow the Canvas documentation to send SMTP email.

The original form file has 2 lines that are causing the issue:
15. use PHPmailer\PHPMailer\PHPMailer;
16. use \PHPMailer\PHPMailer\Exception;

Please take a look at the form file we attached and help us.

Maybe is a path issue...

Thank you!

Regards,

Luiz

LLuiz Augusto Correia de AraujoAug 12, 2020

Please take a look at the form file we attached and help us.

SSemicolon WebSTAFFAug 13, 2020

Hello,

It appears that the PHP Engine you are using is outdated. Please make sure that your PHP Version is more than 5.6 or preferably the Latest Version.

Hope this Helps!

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

LLuiz Augusto Correia de AraujoAug 14, 2020

Hi,

PHP version now is 7.0 (according phpinfo.php). But the issue still there.

Can you help us?

Regards,

Luiz

SSemicolon WebSTAFFAug 15, 2020

Hello,

We have just checked out your Website and everything is working fine now. You will just need to change a small bit of code in your include/form.php File. Simply find the $mail->SMTPDebug Variable and set its value to 0.

This should definitely fix your issue. 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