Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m formatting my emails with HTML but without the head tag or HTML tag. I just dropped my formatting tags right into the body of the template in CF7.

    Are you using meta tags in the head or something that have to go out with the email? If not, I’m thinking you should try to just grab everything between the body tags (but not the body tags themselves) and paste that code into your CF7 body template.

    I’d be curious to know if that works for you.

    Thread Starter Mutant_Tractor

    (@mutant_tractor)

    The only reason Im including the head element is for the :hover CSS elements to still act like they should and include the CSS stylesheet link to help with outlook (from the premailer webpage)

    If i dont include the stylesheet link and hover links i get funky formatting on the menu on the left but no gap at the top so thats a good start!

    I guess I’ll need to find another way of formatting :hovers and the other elements that arent included..?

    What way are you guys setting up the formatting of the emails sent via CF7?
    Are you uploading a CSS file then linking to that, so that each time the email is opened it is obtaining the styles from the hosted CSS file??
    I would be greatfull if either of you could show some sort of example of the code, and how it’s used, I’ve been looking round trying to get something like this setup.

    Thanks, Mark

    Thread Starter Mutant_Tractor

    (@mutant_tractor)

    Hi Mark,
    This is what im at:
    Creating a HTML + CSS setup that looks good in a browser then port it over to email style format using Premailer:
    https://premailer.dialect.ca/

    It ports the CSS from an external file to inline styles,
    The thing is to get it to display 100% in outlook you need to include the external CSS file which needs the <head></head> section, the problem with this is that some mail clients render this as a big div tag and it fills up a 100-150px space at the top.

    Hope this helps!
    Myles

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Contact Form 7] HTML Emails not formatted correctly’ is closed to new replies.