devine952 Posted February 20, 2005 Share Posted February 20, 2005 I have been reading forum feeds for the last 4 hours and have found a number of proposals for fixing a problem I am experiencing. The problem: I receive code instead of the HTML, I am copying into the Newsletter manager. I have used the following contribution for the Send Email tool Name: Add Mail Message Type // // Author: Chris Morris // Exponential Media, Inc. // [email protected] // // Description: Adds "HTML" and "Plain Text" radio buttons to Admin's // "Send Email" page. When "HTML" is selected, the message will // be sent as HTML. When "Plain Text" is selected, the message // will be sent as plain text. Requires changes to only two // files! The contribution works and I now receive emails using Send Email in HTML, unfortunately it produces the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/wspilo2/public_html/catalog/admin/includes/languages/english/mail.php:33) in /home/wspilo2/public_html/catalog/admin/includes/functions/general.php on line 18 And don't quite understand what the problem is, but it does sound interesting. Now, from reading the forum posts, I have found a solution that enables me to solve the Newsletter Manager's problem, but this seems one wayish, inasmuch as they seem to recommend HTML "always on". So, is it possible to send emails that are html, but default to text if the recipient doesn't support html? and how do you do this with OsCommerce? Quote Link to comment Share on other sites More sharing options...
devine952 Posted February 20, 2005 Author Share Posted February 20, 2005 BUMP I have been reading forum feeds for the last 4 hours and have found a number of proposals for fixing a problem I am experiencing. The problem: I receive code instead of the HTML, I am copying into the Newsletter manager. I have used the following contribution for the Send Email tool Name: Add Mail Message Type // // Author: Chris Morris // Exponential Media, Inc. // [email protected] // // Description: Adds "HTML" and "Plain Text" radio buttons to Admin's // "Send Email" page. When "HTML" is selected, the message will // be sent as HTML. When "Plain Text" is selected, the message // will be sent as plain text. Requires changes to only two // files! The contribution works and I now receive emails using Send Email in HTML, unfortunately it produces the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/wspilo2/public_html/catalog/admin/includes/languages/english/mail.php:33) in /home/wspilo2/public_html/catalog/admin/includes/functions/general.php on line 18 And don't quite understand what the problem is, but it does sound interesting. Now, from reading the forum posts, I have found a solution that enables me to solve the Newsletter Manager's problem, but this seems one wayish, inasmuch as they seem to recommend HTML "always on". So, is it possible to send emails that are html, but default to text if the recipient doesn't support html? and how do you do this with OsCommerce? <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
usisu Posted October 14, 2007 Share Posted October 14, 2007 You can send HTML emails from admin. catalog/admin/mail.php at or near line 40: Change //Let's build a message object using the email class $mimemessage = new email(array('X-Mailer: osCommerce')); To //Let's build a message object using the email class $mimemessage = new email(array('Content-Type: text/html; charset=ISO-8859-15')); See it in action HorticultureSource.com - Specialty Gardening Supplies -usisu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.