Jump to content

[Solved] Plain text email


Recommended Posts

Hi tutankhamen (nice nickname),

 

PrestaShop always send both HTML and plain text emails.

 

We use the Swift Mailer class, which is a very great tool (thanks to its fantastic team!):

 

http://www.swiftmailer.org/

 

For next versions, this might become an option, it's a interresting idea.

 

You can also modify : classes/Mail.php

 

$message->attach(new Swift_Message_Part($templateTxt, 'text/plain', '8bit', 'utf-8'));

$message->attach(new Swift_Message_Part($templateHtml, 'text/html', '8bit', 'utf-8'));

 

Delete the line of your choice ;)

 

Best regards,

 

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

thanks for the hint with plain text emails. Is it possible to list all products in the plain text emails, not only the total price etc? I tried to handle this with the '{products}' tag in the /mail/de/order_conf.txt. But the result looks like this:

<tr style="background-color:#EBECEE;">
<td style="padding:0.6em 0.4em;"></td>
<td style="padding:0.6em 0.4em;"><strong>MacBook</strong></td>
<td style="padding:0.6em 0.4em; text-align:right;">1 400,00 €</td>
<td style="padding:0.6em 0.4em; text-align:center;">1</td>
<td style="padding:0.6em 0.4em; text-align:right;">1 400,00 €</td>
</tr>

Where are the {products} defined?

Link to comment
Share on other sites

  • 1 year later...
  • 3 years 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...