Jump to content

Bulk email inline styles on <body>


Recommended Posts

We're trying to send a bulk email. We have an issue on iOS's Mail app where a margin on the <body> is being added (it seems to ignore all <style> tags). However, I cannot seem to inline the styles because the bulk email editor strips it, even when I try to escape it. I realize that it says "Mail Body" but I'm using the "No Wrapper" setting so I'd expect it to allow me to post in a whole HTML email, not just the body's content.

When I check the database for previous emails, I see that they have !DOCTYPE and other things like that (not sure how those worked) so I know it's somehow possible. When I try to set the email's content via SQL with this code:

update core_bulk_mail 
set mail_content='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html...'
where mail_id=31;

I get the following error:

Quote

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/' at line 2

Any idea how I can set inline styles on the body tag?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...