locant57 Posted September 7 Share Posted September 7 Hello everyone, I have a problem with a store that I am building with P.S. 1.7.8.11. I wanted to configure sending emails from the site, but I noticed that in this version there is no longer the possibility of using PHP mail(). Up to version 1.7.6.9 installed on other sites, I had found PHP mail(). Now, as a replacement I find: Use /usr/sbin/sendmail (recommended: it works most of the time). Unfortunately I do not have the possibility of using sendmail because it is not supported by my server. To be able to use SMTP my provider forces me to purchase an additional service. The only solution would therefore be to be able to use PHP mail(). Do you think there is the possibility of implementing PHP mail() in version 1.7.8.11? According to my provider it would be necessary to search for and install an additional module that would allow implementing PHP mail() on version 1.7.8.11. I tried to search for it both on addons and online but I didn't find anything. Could someone tell me how to solve this problem? I thank you for the help you can give me Link to comment Share on other sites More sharing options...
imjulien.dev Posted September 7 Share Posted September 7 Hello, I you are a developper, you can override send function in the class classes/Mail.php https://devdocs.prestashop-project.org/1.7/modules/concepts/overrides/ Have a nice day, Julien Link to comment Share on other sites More sharing options...
locant57 Posted September 7 Author Share Posted September 7 Ciao Julien, grazie per la tua risposta. Non sono uno sviluppatore, ma vorrei davvero riuscire a risolvere questo problema, perché ho bisogno di mettere online il mio sito il prima possibile. Ho dato un'occhiata alla pagina che hai indicato, ma non sono riuscito a trovare un modo per risolvere questo problema. Ti sarei molto grato se potessi indicarmi il percorso del file da modificare e quale dovrebbe essere la modifica da apportare. Grazie ancora e buona giornata Antonio Link to comment Share on other sites More sharing options...
Tag Concierge Posted September 11 Share Posted September 11 Using the mail() function is not recommended as it does not ensure high deliverability of emails. I suggest to use sending via smtp server, you can use for example gmail mailbox. Here is the tutorial - https://help-center.prestashop.com/en/articles/11094179575698-send-emails-via-smtp-from-your-gmail-account, no extra service should be needed from your hosting provider. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now