Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Newsletter and Send Email Tools


devine952

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 years later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...