Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to send HTML Newsletters


pafranklin

Recommended Posts

Posted

Hi everyone,

 

I have been struggling with this for some time. All of my previous attempts at sending HTML Newsletters failed as the recipient just received the html code and not the images.

 

With great thanks to monika who has provided so much help (as I have only been working with php and OSC for three weeks) and has helped me to understand the workings of OSC.

 

So here are my settings in the "EMAIL OPTIONS" part of the admin section.

 

 

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails true

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

Then I amended the catalog/admin/includes/modules/newsletter.php and simply changed

 

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

 

to

 

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

 

I hope that this helps someone and for the more experienced user perhaps someone could test it out and let me know if they can see any problems.

 

 

:rolleyes:

You will never learn if you don't try. And boy am I trying....!

Posted

Big thumbs up :thumbsup:

 

this worked just fine for me.

Posted

:thumbsup: Big thumbs up from me too.

This has been bugging me for ages and this seems to have sorted it out for me. Thanks alot. :)

  • 2 months later...
Posted

Worked great! I don't have any of the WYSIWYG editors installed, but this allows me to type simple straight html code in the newslettter and have it render correctly on the recipients end.

 

Barb

Posted

I can get it to work either way :( if i set "send emails as html" it sends them but they never are received at the other end?

 

If i set it to non html they are received but are just html code!! :(

Posted

Did you modify the atalog/admin/includes/modules/newsletter.php file?

 

Have you fillled in the email address and email from under "My Store" in the admin panel? I had some trouble, but once I enter actual email addreses everything worked ok.

 

Barb

  • 4 weeks later...
Posted

Changing

 

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

 

to

 

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

 

worked fine for me to.

 

But I have another problem.

All the attached images have the url e.g:

 

/images/logo.gif

 

instead of the complete url: http://www.mydomain.com/images/logo.gif

 

Anyone knows how to change this?

 

King

  • 2 weeks later...
Posted

I changed my line from add_text to add_html. Using the e-mail option it arrives at the receipent in text html. Using the Newsletter it sends nothing, no text, no images, no frames.

 

Appreciate any help!!

Archived

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

×
×
  • Create New...