Is there any chance to send mail in Prestashop?

Is there any chance to send mail to clients in Prestashop with free account?

Hello @Lehooo,
In module install() function you can use php native function to send emails:

Thank you, but which module?

I believe this: How to send e-mails :: PrestaShop Developer Documentation


You need to setup SMTP first.,parameters%20(for%20advanced%20users%20ONLY)%20“.%20More%20


Sure, I did this, but does not work.

Which SMTP server did you use that it didn’t work? And what did you see when you tried it?

Please note that we do not provide any SMTP servers for you to use. If you want to send email from your website, you’ll need to get an SMTP service yourself (a free Gmail account can do the trick) and configure it in your website.


I use server. I use SMPT configuration of my email in outlook and work fine.

On InfinityFree I got error:
Error: Please check your configuration

Connection could not be established with host :stream_socket_client(): unable to connect to tcp:// (Connection timed out)

Thank you for answer :slight_smile:

The port number sounds wrong. Shouldn’t it be 465 or 587?

1 Like

I got parametrs from email provider

They do show 465, try that?


With 465 port I got error
“Connection to tcp:// Timed Out”

Try 587? Anything in your error_log?

1 Like

You are going to need to provide a password.

Maybe it was hidden on purpose.

with 587 I got
Expected response code 354 but got code “554”, with message "554 5.5.1 Error: no valid recipients "

You did not add the email you need to send the mail to.

Every time when I change something in configuration I put password again. Afetr click “save” password field is empty.

I did.