CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail corrupts formatting of .html email or so it seems
Pages: [1]

Author Topic: CiviMail corrupts formatting of .html email or so it seems  (Read 1362 times)

zkrebs

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
CiviMail corrupts formatting of .html email or so it seems
October 03, 2010, 05:07:21 pm
I am using Civicrm 3.2 with Civimail.

Upon sending an email where I upload an .html file, and choose none for header and template, I get a corrupted looking result. What does Civimail do to the .html when sending it out?

It should look more or less like this: http://transformationarts.org/files/outreach/newsletter_template/newsletter_september_2010.html

But in gmail I get this: http://i.imgur.com/AfIuZ.png

I have sent the same .html email with other programs and it seems to deliver looking somewhat intact. Is there a major flaw in my markup? I know CSS3 isn't 100% supported everywhere, but why not?

tim g.

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 4
  • לחפש את אלוהים הראשון
    • Gott Milk
Re: CiviMail corrupts formatting of .html email or so it seems
October 04, 2010, 03:46:25 am
I hope that this link will give you some incite:
http://www.booki.cc/civicrm-3/_v/1.0/configuring-mailings/


I've copied and pasted some of the tips from there:

Tips for creating templates

HTML email is not regular HTML. There are significant restrictions, including the need use use tables and inline css and no background images. There are a lot of resources available online that can facilitate your experience with HTML email, including free templates that you can copy and work from.

Table border - The HTML element table has a border attribute available to it. Since the default value is "0" it is sometimes not used. Adding it (or editing it if it is available) and setting it to "1" will allow you to see the borders of your table and helps identify potential places to fix problems. Please note that HTML email templates usually have multiple tables and nested tables (tables inside tables). Make changes one at a time and switch to the HTML view to see the results. e.g. <table border="1"> A table will typically have more than one parameter, so make sure that there is a space between parameters.

Table cellpadding and cellspacing - these table parameters are very useful when trying to improve the readability of your email. Play with these settings in different tables and see what works for you.

Width - You do not want to send an email that is wider than 600 pixels, to ensure maximum compatibility across email clients. Make sure your outermost table does not exceed 600 pixels. Do the same for any other tables inside your main table. Also make sure that the total width of any image does not exceed 600 pixels. Images have a width parameter, but they can also have a a horizontal padding parameter, that if set can increase the width of the image.

Images - these need to be online and accessible in order for you to use them. First edit your image so that its width and height is appropriate for your email template. Next save it so that its file size is as small as possible. If you do not have image editing software, or do not know how to use it, there are free online resources that can help you resize your image.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

There was another really good post somewhere about formating email for CiviCRM but I have yet to find it. I'll post it here if I do.


* If you like any of my answers then click the little applaud link next to my picture. It kinda tickles.
“Why is it when we talk to God, we're said to be praying—but when God talks to us, we're schizophrenic?” - Lily Tomlin

zkrebs

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Re: CiviMail corrupts formatting of .html email or so it seems
October 04, 2010, 11:21:22 am
Part of my frustration is that I did design this email to be aware of these tips. I found a campaign monitor template, and modified it for sending using as many of those best practices as possible. I have sent this email before using SugarCRM and it looked more or less intact.
I do not intend to criticize, I just have a deadline. I will research your link, and I do appreciate your help and CiviMail. I dont want to pay mailchimp, i like civimail.
« Last Edit: October 04, 2010, 11:30:13 am by zkrebs »

tim g.

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 4
  • לחפש את אלוהים הראשון
    • Gott Milk
Re: CiviMail corrupts formatting of .html email or so it seems
October 05, 2010, 02:01:19 am
If you'd like you can zip up the HTML letter that you are trying to send and email it to me by clicking here http://3.ly/email2forTim

I'll try to send it through my CiviCRM mail system and see if I'm getting the same formatting problems.
* If you like any of my answers then click the little applaud link next to my picture. It kinda tickles.
“Why is it when we talk to God, we're said to be praying—but when God talks to us, we're schizophrenic?” - Lily Tomlin

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail corrupts formatting of .html email or so it seems

This forum was archived on 2017-11-26.