This is a discussion on HTML in emails within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I'm polishing off the site now, nearly there... However one VITAL necessity is to use HTML e-mails, so I can ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I'm polishing off the site now, nearly there... However one VITAL necessity is to use HTML e-mails, so I can add properly formatted text etc. Even the standard order confirmation e-mails have URLs which are listed as plain text, and are not clickable! I opened includes/classes/email.php and had a gander, it seems it adds a text/plain and text/html subpart! But it doesn't! I'm getting plain text emails! What do I set / change to send out HTML emails? thanks. |
|
#2
| |||
| |||
| try this: http://forums.oscommerce.com/index.p...p;#entry262186 there are a few other oScommerce threads. I'd try searching there |
|
#3
| |||
| |||
| If you have the html WYSIWYG use this http://www.oscommerce.com/contributi..._gc_coupon.zip |
|
#4
| |||
| |||
| Quote:
Just hack the gift voucher scripts? I had those installed... just copy paste and adapt the email scripts using the above?? not a bad suggestion mate, cheers |
|
#5
| |||
| |||
| Will someone then PLEASE explain the Configuration => E-mail Options => Use MIME HTML when sending emails?? Whatever I set it to, emails with HTML code in them just come up with all the HTML tags showing! On closer inspection, the MIME type in the email is text/plain!! I have MS2-MAX so I have the WYSIWYG HTML plugin, as well as the coupon one... but no matter how hard I try, I always get emails with the HTML showing! Is this a bug in OSCommerce?! |
|
#6
| |||
| |||
| Quote:
The other stupid thing that happens is that when the method of sending the emails is set to 'smtp' and not 'sendmail' the 'to' field has the sender's address twice (in hotmail at least)! this caused hotmail to slap the message into 'junkmail'!!! ironically, hotmail shows the HTML in emails up fine, even if they state text/plain in the MIME type. locally, using an email client, i get HTML tags, as you would expect. can this thread be passed onto the developers, if it IS a bug? any ideas / solutions? |
|
#7
| |||
| |||
| Well, I've made progress, and now KNOW HOW to make HTML in EMAILS WORK! Basically just type the HTML content in the appropriate script! the default email sending function in oscommerce automatically strips html code and makes a text/plain version of the email, as well as keeping the formatting for an html version, and adds both to your messages! catalog/checkout_process.php for the order confirmation email, admin/orders.php for the order status update emails. Ofcourse, you have to track down the lines which construct the email message. i may add a contribution soon with ready-made ones, which follow the invoice.php layout closely, whilst containing all the original email order confirmation content, but nicely formatted. |
|
#8
| |||
| |||
| Awesome! Do have an example from that section of the code? That would help me to not throw html somewhere it will cause a problem Tom |
|
#9
| ||||
| ||||
| Quote:
I'm sure it can EASILY be adapted for other people's sites, in it's present condition... At the moment I'm working on adding an option where customers can select if they want HTML or PLAIN TEXT emails. Be warned, my code WORKS PERFECTLY, but YOU NEED TO CHANGE THE IMAGE REFERENCES. Also, I've put CSS in there, but a LOT of email clients don't understand CSS. Hence, I have also hard coded certain lines with traditional HTML (for example, table backgrounds etc.) for maximum portability. The CSS causes a problem in the stripped plain text version of the email, in the sense that it includes all the CSS. I'm working on an HTML and PLAIN TEXT version of the emails as we speak. I've also modified the old code to not show up the () brackets that surround MODEL in the plain text emails if there is no model. here's the code for catalog/checkout_process.php.... remember, I'm working on a better version at the moment! Quote:
This code sits after Quote:
Quote:
tell me what you think! |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML Emails being sent as plain text or with source showing | malcol27 | osCMax v1.7 Installation | 8 | 04-25-2005 10:31 PM |
| No emails being sent | swkhost | osCMax v1.7 Installation | 2 | 02-20-2005 10:43 AM |
| Order emails | cigarjoe2003 | osCMax v1.7 Installation | 2 | 11-25-2004 12:03 AM |
| How to set CODEPAGE in EMAILS? | stando | osCMax v1.7 Discussion | 0 | 09-08-2004 08:36 AM |
| Newsletter / Emails | peterb | osCommerce 2.2 Modification Help | 0 | 07-01-2003 09:54 AM |