Is there any chance to send mail in Prestashop?

Hi,
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:
Maill::Send();

Thank you, but which module?

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

2 Likes

You need to setup SMTP first.

https://classydevs.com/prestashop-smtp-settings/#:~:text=%20Process%20of%20Prestashop%20SMTP%20Settings%20%201,parameters%20(for%20advanced%20users%20ONLY)%20“.%20More%20

3 Likes

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.

3 Likes

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

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

Connection could not be established with host poczta.int.pl :stream_socket_client(): unable to connect to tcp://poczta.int.pl:143 (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?
image

2 Likes

With 465 port I got error
“Connection to tcp://poczta.int.pl:465 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.