Jump to content
Sign in to follow this  
Antonimous

Newletter HTML, appearance ...etc.

Recommended Posts

Is anyone aware of a simple fix so that we can edit the newsletter the same way we can edit the product info. I use Dreamweaver to make my product descriptions and simply paste the info in the descriptions.... looks great. If I do this in the newsletter box I get the html text for my newsletter.

 

I tried the contribution regarding WYSIWYG and it doesn't work for folks who have other modifications.

 

I just want to create a nice newsletter. Shame on OSC for leaving that option to the rest of us to try and fix! That should be standard....what's the point!


Good things take time..... Great things happen all at once!

Share this post


Link to post
Share on other sites

HTML WYSIWYG does work for folks with other mods installed. You should mention the specific problem you have and ask for help.


"If you rundown your shadow, you will never catch it"

Bob Marley

Share this post


Link to post
Share on other sites

If you are talking about the email you recieve when you send newsletters.

 

edit the newsletters.php file in catalog/admin/includes/modules/newsletters/

 

around line 65. look for $mimemessage->send.

 

I use

$mimemessage->send($mail['customers_firstname'] . ' ' . $mail['cus

       tomers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this

       ->title, "MIME-Version: 1.0n" .  "Content-type: text/html; charset=iso-88

       59-1");

 

to make mine send out in HTML format.

 

I tried everything to change the $mimemessage - new (line 62) to use the MIME-Version: 1.0 n portion of my fix, but no luck.

Share this post


Link to post
Share on other sites

I used your code and it helped to get rid of the html code appearing in the email, but it doesn't retain the spacing and other formatting that is there in the newsletter preview screen. Any thing else I should be doing?

Share this post


Link to post
Share on other sites

If you are formatting using HTML code it should work.

 

For instance you use a <br> for a line break.

 

A <p> with a </p> surroounding the paragraphs.

 

But I am sure you know this.

Share this post


Link to post
Share on other sites

Thanks for the quick response. I have all the appropriate HTML formatting and when I send the newsletter it shows up fine in the email I open up in Outlook Express, but in the one that I open up in my free Yahoo mail account all the html tags are visible. Yahoo says that's because the sender did not properly indicate that the message should be treated as html. Do you know where in the newsletter module I would make that indication?

Share this post


Link to post
Share on other sites

Not sure but take a look at line 62.

 

I think you might replace:

$mimemessage = new email(array('X-Mailer: osCommerce bulk mailer'));

with

$mimemessage = new email(array('Content-type: text/html'));

 

No way for me to test this, so it is just a guess.

Share this post


Link to post
Share on other sites

or

$mimemessage->add_text($message);

 

and change it to

 

$mimemessage->add_html($message);

 

this may be all you really need, taking out the other I gave you earlier.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×