Romerito Posted June 15, 2015 Share Posted June 15, 2015 Hello all, I'm quite new on Prestashop. I'm using 1.6 I'm trying to add a simple form where users fill some data, and on submission, it's sent to my email. I used to achive this in PS 1.4 by simply creating a confirmation.php script that gathers the form fields and doing like so: mail($to, $subject, $body, $headers); it worked fine. However with my new hosting, cannot use mail() function and honestly SMTP is working really well for contact form, registration etc... So the question is, how I can use SMTP Swift mail functions instead of mail()? How do I have to include them in the script? I dont want to write a module or touch some controller if it is not really necessary, just a simple single script... Thanks in advance Link to comment Share on other sites More sharing options...
bellini13 Posted June 15, 2015 Share Posted June 15, 2015 you should review the /classes/Mail.php file to learn how mail is sent out of Prestashop. You will see a function named Send 1 Link to comment Share on other sites More sharing options...
Romerito Posted June 24, 2015 Author Share Posted June 24, 2015 Thanks @bellini13 for the hint, I finally made it work. cheers. 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