Prestashop: Contact form on frontend does not send email (BO ok)

Created on 14 Dec 2020  路  14Comments  路  Source: PrestaShop/PrestaShop

Try to send an email from contactform page result in 2 scenario:

1) red error message ('An error occurred while sending the message') and email are not sent
2) green ('Your message has been correctly sent') but email are not sent the same

email config test in Back office work with no problem , we use custom smtp and email are right send to test email adress.

Have your own test ^^ : https://www.sixrace.it/it/contattaci

Debug mode does not show error, web server log file does not record message.

PS 17.6.1
PHP 7.2
APACHE

1.7.6.1 Bug Contactform FO NMI

Most helpful comment

@matteolavaggi Hello, the last message is passive-aggressive and is against our Code of Conduct

"Using welcoming and inclusive language
Being respectful of differing viewpoints and experiences
Gracefully accepting constructive criticism
Focusing on what is best for the community
Showing empathy towards other community members"

Please stop using passive-aggressive statements.

The contact form on your shop is not working. It does not mean every contact forms on the 300,000 shops running thanks to PrestaShop are broken.

All 14 comments

Just because i'm in trouble to have contact email from customer i'm tring the customer thread function .. and ... not work -_-
Try to reply from customer support section of BO send an email to customer with a link for open a "customer thread" discussion. The link does nothing, simply redirect customer to front end contac page. Not bad ^^

Hi @matteolavaggi

Can you check your contact form module config please ?

image

The setting is configured like your picuture, btw this cant trow an error i think.
Try to update to last version, manual paste the last release code in the php file. No way to have an error that can be undestood , and module does not send email from 4 days.
we have not updated anything or installed module. Simply changed back office contact page detail (store details).

What version of contact form module are you using?

I've the last git code release now, BO modules show 4.3.0

Hello @matteolavaggi

I didn't manage to reprodcue your issue with PS1.7.6.1, please check the attached screen record below:

https://drive.google.com/file/d/1trLU-HFKxp-UvFCL9F3KdCbZrD5Pvv8u/view

So, could you please check your Email setting in BO > CONFIGURE > Advanced Parameters > E-mail

image

Please check and feedback.

Thanks!

Hi dear, i've check it again, but you can read above that in back office the test email function work, send email with no problem:
image

Using real email result in real message received.

@matteolavaggi This can be related to your theme.
Could you check if you have these lines in your theme :
(/themes/YOUR_THEME_NAME/modules/contactform/views/templates/widget/contactform.tpl)

https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/modules/contactform/views/templates/widget/contactform.tpl#L123-L129

My template is classic theme and the code is exactly the same, there is no way to get an error with specific information ?

So we have a record, the first ecommerce without a simple working contact form in 2021 ^^!

@matteolavaggi Hello, the last message is passive-aggressive and is against our Code of Conduct

"Using welcoming and inclusive language
Being respectful of differing viewpoints and experiences
Gracefully accepting constructive criticism
Focusing on what is best for the community
Showing empathy towards other community members"

Please stop using passive-aggressive statements.

The contact form on your shop is not working. It does not mean every contact forms on the 300,000 shops running thanks to PrestaShop are broken.

So we have a record, the first ecommerce without a simple working contact form in 2021 ^^!

It's nice 馃帀 ! But we are still in 2020 馃槈

@matteolavaggi can you show me your mail params please ?

image

So we have a record, the first ecommerce without a simple working contact form in 2021 ^^!

It's nice 馃帀 ! But we are still in 2020 馃槈

@matteolavaggi can you show me your mail params please ?

image

This is funny ^^ btw you ask to me what i've just confirmed to @hibatallahAouadni (and what i've just write in the opening bug report) , email WORK on back office:

image

Here the configuration (that works on BO)
image

Usign php result in same errore, Front Office trow an error.

PS @matks You are right, forgive me if it seems absurd to me that a basic function such as a contact form can stop working on an ecommerce, it seems that some pieces are missing such as the management of conversations that does not work and yet is also integrated in the new releases of the module

Hello @matteolavaggi

We have been asking you again and again about these details cause we didn't manage to reproduce your issue :confused:
That's weird that in BO the test mail works but in FO it doesn't.
Could you please provide some details to reproduce your issue.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings