Pippo3000 Posted December 15, 2010 Share Posted December 15, 2010 no idea whether I am right here but let's give it a try. the task is simple: send a newsletter. the reality however shows issues as the first newsletter we sent ended up distorted and showing wrongly on many of our customers' computers. sometime the embedded pictures were not shown within the newsletter text but as separate attachments to the email; or the formatting looked completely strange and 'odd' (we had a table with basically just 2 cells, top one for header and logo and the lower one for newsletter text and pictures).how do you do / send newsletters? Only workaround so far for me would be to send the complete newsletter as 1 single picture (like create and layout everything and then take a screenshot) but then I cannot link various pictures to various pages of my site but just have 1 link to the homepage. which would be the preferred format to send the newsletter? rich text or html? last time I sent in html format an html page created with dreamweaver. did not expect a problem as the test email sent to myself showed up just fine as well as for many customers. But not all, see above. So what is the trick? Not to use outlook for sending? have all pictures on the server and then load them online when the newsletter is opened by the recipient (I guess that is the way many big companies do it nowadays)?any ideas are appreciatedphil Link to comment Share on other sites More sharing options...
tom.k Posted January 19, 2011 Share Posted January 19, 2011 hi,I had the same problem, or similar, maybe solution I've found will be useful for you.images:in file AdminNewsletter.php add line "convert_urls : false,"after initialization of tinyMCE, so code should looks like:line ~64 tinyMCE.init({ // General options mode : "textareas", theme : "advanced", convert_urls : false, pls also use all url to images.formatting:I have newsletter with multiple nested tables, after sending test newsletter everything was very ugly, like tables with additional cellpadding and cellspacing. Problem is with line ~282 in the same file AdminNewsletter.php:change: $mensagem = nl2br($html); to: $mensagem = $html; line numbers can be a little different, I made some changes myself.I hope it helps.regards/tom.k Link to comment Share on other sites More sharing options...
Laci Posted March 1, 2011 Share Posted March 1, 2011 Hi tom.k,your solution works perfectly for me, especially the replacement of nl2br($html) which caused huge problems with tables in the email.Thank you very much!Laci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now