I have set up simplenews on localhost and am using the following modules;

HTML Mail
Mail System
SMTP Auth Support
Emogrifier

I have created custom templates for HTML Mail to add a header and footer and told it to use my custom newsletter theme. I have also added a text format that utilises emogrifier.

In Mailsystem I have added a simplenews module class and told it to use HTMLMailSystem

I have added smtp details in SMTP Auth Support.

Working on localhost this all works like a charm.

When I put these changes on a live production site, the html mail templates are working as my header and footer are still being added but all the CSS for the newsletter body is stripped out.

I have tried all sorts of variations on this and have also tried things like Mimemail as soon as it goes on a live site, the CSS is stripped out.

Please tell me there is something simple I have overlooked as I am going bonkers trying to get this to work.

Thanks in advance

Alex

Comments

albie001’s picture

***UPDATE***

After much testing and hair pulling I have made some progress with regards to this issue.

I have since tested the simplenews setup on a completely different server and website. It worked absolutely fine. Therefore logic would dictate that it was an issue with the main server set up.

The email that worked properly was sent via webfaction.com servers which come pre configured.

The emails are not working on the site we have set up with Rackspace. This server has been manually set up.

I therefore believe that it may be a case of something not being installed on the Rackspace server which is preventing the compressed css being sent out with the email.

Is anyone aware of a server config that may cause or resolve this issue?

Sorry I know this is not really drupal related anymore but I'm hoping someone has experienced something similar....?

Thanks

Alex