juacochero Posted March 24, 2006 Posted March 24, 2006 I've built an HTML Newsletter with Macromedia's Dreamweaver, and it looks great. When I try to send it from the "Send Email to Customers" section, i paste de HTML code in the content, and hit send. Then the preview shows up perfect, but when i hit send it gets to the customers with all the format wrong! there's huge empty spaces between lines, the newsletter itself starts waaaay down the bottom of the page, etc. PLEASE HELP ME! Thank you
grant101 Posted March 24, 2006 Posted March 24, 2006 I've built an HTML Newsletter with Macromedia's Dreamweaver, and it looks great.When I try to send it from the "Send Email to Customers" section, i paste de HTML code in the content, and hit send. Then the preview shows up perfect, but when i hit send it gets to the customers with all the format wrong! there's huge empty spaces between lines, the newsletter itself starts waaaay down the bottom of the page, etc. PLEASE HELP ME! Thank you sounds like you got errors in your actual codes.. i'm not 100% sure, but thats where i'd be lookin first.. make sure your codes aren't mixed up.. Are you useing tables?? that could have something to do with it.
Guest Posted March 24, 2006 Posted March 24, 2006 No that's not it. Use an html optimizer. I almost went nuts trying to solve this.
OceanRanch Posted March 24, 2006 Posted March 24, 2006 admin/includes/modules/newsletters/newsletter_subscribers.php Find this text (towards the bottom of the file: $mimemessage->add_text($this->contentb); And change it to: $mimemessage->add_html($this->contentb); HTH Tom
CLRH2O Posted January 15, 2007 Posted January 15, 2007 admin/includes/modules/newsletters/newsletter_subscribers.php What do you do when there are only two php files in that folder (OSC ms 2.2) and neither one of them is named "newsletter_subscribers.php". I've got newsletter.php and product_notification.php I'm guessing product_notification.php is the one to edit as it has the line in it too. Btw - this never fixed anything for me - and I've still got the huge blank space at the top of the preview page and broken apart graphics with spaces between every line. Any other thread of interest to scout out that might be slipping through my searches? I found this thread (and bout 5 others with search) and they all suggest the same fix which doesn't change anything that I have seen. On the hunt!
awarner20 Posted January 18, 2007 Posted January 18, 2007 What do you do when there are only two php files in that folder (OSC ms 2.2) and neither one of them is named "newsletter_subscribers.php". I've got newsletter.php and product_notification.php I'm guessing product_notification.php is the one to edit as it has the line in it too. Btw - this never fixed anything for me - and I've still got the huge blank space at the top of the preview page and broken apart graphics with spaces between every line. Any other thread of interest to scout out that might be slipping through my searches? I found this thread (and bout 5 others with search) and they all suggest the same fix which doesn't change anything that I have seen. On the hunt! Hey there, I was searching the forums for my newsletter trouble and saw your post. I'm afraid I can't be of any real help, but I wanted to let you know that I'm now following this post to see what the solution is as I am having the same trouble. I've used Golive. My original search was for instruction on how to correctly send an html newsletter as the test one I've done just shows up with raw code even though the preview shows the correctly renedered html. I've found many posts on this, but no real answers....I'll be starting a new thread;) 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
awarner20 Posted January 22, 2007 Posted January 22, 2007 Hey there, I was searching the forums for my newsletter trouble and saw your post. I'm afraid I can't be of any real help, but I wanted to let you know that I'm now following this post to see what the solution is as I am having the same trouble. I've used Golive. My original search was for instruction on how to correctly send an html newsletter as the test one I've done just shows up with raw code even though the preview shows the correctly renedered html. I've found many posts on this, but no real answers....I'll be starting a new thread;) Update: I too only had the two files you have...I made the above mentioned change to the code toward the bottom of the newsletter.php file and was successful in sending an html newsletter! Yay! I wonder why we have to change this code manually? Isn't the newsletter area in the Admin area enough to specify that the newsletter be sent in html? I guess not... Anyway, thanks OceanRanch for the easy fix! 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
krislyn5559 Posted December 18, 2007 Posted December 18, 2007 Update: I too only had the two files you have...I made the above mentioned change to the code toward the bottom of the newsletter.php file and was successful in sending an html newsletter! Yay! I wonder why we have to change this code manually? Isn't the newsletter area in the Admin area enough to specify that the newsletter be sent in html? I guess not... Anyway, thanks OceanRanch for the easy fix! Does anyone know why when I create an html page newsletter it shows up fine online but when I paste it in the newsletter manager and preview the pictures don't show anyone have any idea why ?
Guest Posted January 7, 2008 Posted January 7, 2008 admin/includes/modules/newsletters/newsletter_subscribers.php Find this text (towards the bottom of the file: $mimemessage->add_text($this->contentb); And change it to: $mimemessage->add_html($this->contentb); HTH Tom Just used Tom's fix and it worked a treat. I was at the end of my teather trying to figure it out. Thanks Tom! One other hint, make sure you have no spaces in your html code (ie: just a block of code) or you can end up with bits of your html page all over the place. David
chipshot Posted January 7, 2008 Posted January 7, 2008 stock OSc Newsletters only send out in text format there are contributions for HTML Newsletters
Guest Posted January 7, 2008 Posted January 7, 2008 stock OSc Newsletters only send out in text formatthere are contributions for HTML Newsletters I think you mean OSC Newsletters are created only in text format and there are contributions for OSC to create and send out HTML Newsletters, but I understand where you are coming from.
celshader Posted January 14, 2008 Posted January 14, 2008 Does anyone know why when I create an html page newsletter it shows up fine online but when I paste it in the newsletter manager and preview the pictures don't show anyone have any idea why ? Sure you are using absolute urls for your images.
celshader Posted January 14, 2008 Posted January 14, 2008 I have found a solution to this. The problem stems from <br>'s being injected into the html of the newsletter by a function called. nl2br() e.g. nl2br($this->content); I am using newsletter a contribution called MS2 HTML WYSIWYG Editor, Product Desc, Email + http://addons.oscommerce.com/info/1347 I fixed the issue by; 1.) Removing the function from admin/includes/modules/newsletters/newsletter.php i.e. nl2br($this->content); becomes $this->content; 2.) Also find and remove it from admin/includes/newsletters.php 3.) also find the function add_html in admin/includes/classes/email.php and remove the <br> from the line $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); and replace it with a spacebar. Step (1) and (2) fix the previews. Step (3) fixes the newsletter emails. For those of you using other newsletter contributions. Just look for the function nl2br() and you are on the right track. Hope this helps you guys. :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.