Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML Newsletters


Guest

Recommended Posts

I have attempted several different methods to creating newsletters containing HTML and am not entirely certain they are working....

 

1) First tried using various tags with no BODY or HTML tags in case they were already included. No dice.

2) Tried including BODY and HTML tags and still no luck.

3) Tried just BODY and no HTML tags. No luck

 

Here's the kicker: I'm not entirely certain if MY email client is properly displaying HTML in emails, so I don't know for certain that any of these methods did or did not work.

 

Can anyone tell me the proper method for creating HTML-inclusive newsletters?

 

Thanks in advance!!

Link to comment
Share on other sites

I have attempted several different methods to creating newsletters containing HTML and am not entirely certain they are working....

 

1) First tried using various tags with no BODY or HTML tags in case they were already included. No dice.

2) Tried including BODY and HTML tags and still no luck.

3) Tried just BODY and no HTML tags. No luck

 

Here's the kicker: I'm not entirely certain if MY email client is properly displaying HTML in emails, so I don't know for certain that any of these methods did or did not work.

 

Can anyone tell me the proper method for creating HTML-inclusive newsletters?

 

Thanks in advance!!

 

 

I had a problem with my newsletter not showing HTML not too long ago and after I made sure that I had set newsletters to HTML format in Admin....they still didn't work....here is the solution that worked for me...

 

admin/includes/modules/newsletters/newsletter_subscribers.php (if you don't have the newsletter_subscribers.php file in there, then look at newsletter.php, that's the one I had to change.)

 

Find this text (towards the bottom of the file:

 

$mimemessage->add_text($this->contentb);

 

 

And change it to:

 

$mimemessage->add_html($this->contentb);

 

This was an answer by user OceanRanch on this thread...read all the way to the last post...:)

 

http://www.oscommerce.com/forums/index.php?act...11&t=201368

 

 

Adam

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

I had a problem with my newsletter not showing HTML not too long ago and after I made sure that I had set newsletters to HTML format in Admin....they still didn't work....here is the solution that worked for me...

 

admin/includes/modules/newsletters/newsletter_subscribers.php (if you don't have the newsletter_subscribers.php file in there, then look at newsletter.php, that's the one I had to change.)

 

Find this text (towards the bottom of the file:

 

$mimemessage->add_text($this->contentb);

And change it to:

 

$mimemessage->add_html($this->contentb);

 

This was an answer by user OceanRanch on this thread...read all the way to the last post...:)

 

http://www.oscommerce.com/forums/index.php?act...11&t=201368

Adam

 

 

"$mimemessage->add_text($this->contentb);" was not in my newsletter.php file.

 

I did however, find "$mimemessage->add_text($this->content);" [no 'b' after 'content'].

I changed that line accordingly, and also changed the settings in my Admin section to send HTML newsletters. Apparently neither option changed anything... unless I'm not composing the newsletters properly. Do you know if you have to include the HTML and BODY tags? Perhaps I didn't change the correct line in my newsletter.php file.

 

I did, however, do CTRL-F to search for the line given in the last post, and nothing came up. :'(

Link to comment
Share on other sites

AARGH! My fault entirely!

 

**DOH!** :-"

 

I was 'testing' the newsletter module by using the "send email" tool from the admin. I drafted up a quick dummy newsletter with some simple tags, and it was displaying correctly in my browser. I'll have to give it another go.

 

Sorry for the confusion...... your tip worked beautifully!

 

THANKS! :D

Link to comment
Share on other sites

AARGH! My fault entirely!

 

**DOH!** :-"

 

I was 'testing' the newsletter module by using the "send email" tool from the admin. I drafted up a quick dummy newsletter with some simple tags, and it was displaying correctly in my browser. I'll have to give it another go.

 

Sorry for the confusion...... your tip worked beautifully!

 

THANKS! :D

 

 

Great! Glad it worked for you:)

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...