Jump to content

Adding a form that sends email over SMTP


Romerito

Recommended Posts

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...