Sending Email Friendly SharePoint Designer HTML Emails

Sending HTML Emails can be frustrating when not done correctly. CSS formatting is lost when you view it inside your favorite email client. The level of support varies between email client but most of them works well with inline CSS. Now if you have finished creating you HTML Email you need to inline all your CSS. You can use Premailer for that. Premailer

  1. Go to Premailer
  2. Paste the HTML as the source. Make sure you use absolute URLs
  3. Copy the HTML result
  4. Use any text editor to replace all double quotes (“) into single quotes (‘)
  5. Minify your code. Minifying just means removing all line breaks and spaces. Minifying code is a must with SPD HTML Emails. There’s a lot of online tools, and prettydiff is one, that can you help you do this. NotePad++ has this too by Menu->Edit->Blank Operations-> Remove Unnecessary Blanks and EOL.

Minifying code is a must with SPD HTML Emails. There’s a lot of online tools, and prettydiff is one, that can you help you do this. NotePad++ has this too by Menu->Edit->Blank Operations-> Remove Unnecessary Blanks and EOL.

That’s it! Follow my blog article SharePoint 2010 Designer HTML Emails.

Advertisements

How to Find a Feature using GUID

Suppose you’re creating a site and encountered an error like this.

You want to know what feature it is missing by using the GUID. Here’s how using PowerShell.

Get-SPFeature -Identity enter_guid_without_braces.

 Get-SPFeature -Identity d5191a77-fa2d-4801-9baf-9f4205c9e9d2

And if you want just a list of all features run the command without parameters.

Get-SPFeature