Jump to content

Edit History

Ali Samie

Ali Samie


Update with new solution

--------------------------------------------
UPDATE: It won't work after Sep 2024

This method won't work at the end of this September. Why? Check these pages:
https://support.google.com/accounts/answer/6010255
https://workspaceupdates.googleblog.com/2023/09/winding-down-google-sync-and-less-secure-apps-support.html

Alternative? papercut from ChangemakerStudios and docker

If you are using docker for your development environment, you are my good friend and I like you, otherwise, I have no idea what to do. Find your way. I promise with docker it's gonna be too easy that you can't believe it.

  1. Add `papercut` as a new service to your `docker-compose.yml` file.
    # Other configurations
    # ...
    # ...
    # ...
    
    services:
      #other services
      # ...
      # ...
      # ...
      papercut:
        image: changemakerstudiosus/papercut-smtp:latest
        ports:
          - 10300:80 # choose any port you like, for me `localhost:10300` would be the port to access the papercut web application
          - 25:25
  2. Run or restart your containers to have the new service added to the same network.
  3. Setup SMTP configuration in Prestashop backoffice like this image
    1. Set the method as "Set my own SMTP ...".
    2. Set the SMTP server to "papercut" which is the name of the service or container, and it's accessible with that name in the network of containers.
    3. Leave the email domain, username, and password fields empty.
    4. Set encryption to none and the port to 25. This number comes from the docker-compose file, you can change it if you need.
    5. image.thumb.png.9155fd9fe65020039b7061175b4171a4.png
  4. Now try sending an email by triggers like account creation order status change or use of the Mail::send() method, here's a demo:
    1.  Sent emails list
      image.thumb.png.453c7465faa551fe3c278407be7909d1.png
    2. Preview an email:
      image.thumb.png.e06138921499f5bf719d53e82eeba879.png

Thanks to this amazing repository on Github: https://github.com/ChangemakerStudios/Papercut-SMTP

----------------------------------------------------------------------------

How to test email functions with a Gmail account in Prestashop?

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

I have added a video for you to follow the steps. It very easy.

I use this method just for testing, like when you want to test the email templates and you do not want to put time on setting up an SMTP server locally. I do not recommend using this in a production shop.

Ali Samie

Ali Samie


Edit title

How to test email functions with a Gmail account in Prestashop?

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

I have added a video for you to follow the steps. It very easy.

I use this method just for testing, like when you want to test the email templates and you do not want to put time on setting up an SMTP server locally. I do not recommend using this in a production shop.

Ali Samie

Ali Samie


Edit title

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

I have added a video for you to follow the steps. It very easy.

I use this method just for testing, like when you want to test the email templates and you do not want to put time on setting up an SMTP server locally. I do not recommend using this in a production shop.

Ali Samie

Ali Samie


Add proof video

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

I have added a video for you to follow the steps. It very easy.

I use this method just for testing, like when you want to test the email templates and you do not want to put time on setting up an SMTP server locally. I do not recommend using this in a production shop.

Ali Samie

Ali Samie


Add proof video

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

I have added a video for you to follow the steps. It very easy.

Ali Samie

Ali Samie

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

Ali Samie

Ali Samie

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account and get an app password.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the account password (if does not work create an APP password and use that)
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

Ali Samie

Ali Samie

Hi community.

I have seen some questions about the email issues. I want to show you how to set up a Gmail account in Prestashop as your temporary SMTP server, which lets you easily test your email functionality, templates and related stuff.

This is what I went through in a local server and I manged to get it working.

  1. Set up a new Gmail account (if you do not have any).
  2. Sign in to your account and get an app password.
  3. Open BO of your Prestashop.
  4. Go under this menu "Advanced Parameters > E-mail".
  5. Find the "Email" form.
  6. Fill the form like this:
    1. Send emails to > Select "Customer Service"
    2. Radio Buttons > Select "Set my own SMTP parameters (for advanced users ONLY)"
    3. Email domain name > Let it be blank
    4. SMTP server > "smtp.gmail.com"
    5. SMTP username > Fill it with your gmail for example : [email protected]
    6. SMTP password  > Fill it with the APP PASSWORD that you have created in google account setting
    7. Encryption > Select "TLS"
    8. Port > "578"
    9. Radio Buttons > Select "Both"
    10. Log emails > Select "Yes"

After you have saved these, send a test email in the next form with title of "Test your email configuration".

×
×
  • Create New...