html-email

Break long words in html email in outlook 2010

落爺英雄遲暮 提交于 2019-11-30 17:35:26
I'm taking end user input and inserting it into an HTML email. But if the end user enters a long URL or really long word, it breaks my HTML layout in Outlook 2010 by extending the column or div beyond the width specified. In Chrome, Firefox, IE7+, and Safari, I can use style="table-layout:fixed" in order to force the table columns to certain widths. But Outlook 2010 ignores this, and the long word pushes the table width out beyond the fixed width. With Divs, In Chrome, Firefox, IE7+, and Safari, I can use style="word-wrap:break-word; overflow:hidden; width:100px", to fix the div width. But in

Make elements overlap in cross-client HTML emails?

北慕城南 提交于 2019-11-30 16:50:15
问题 In normal HTML for browsers, making elements overlap is easy. But in the dark world of HTML email, where the motto is "code like it's 1996" because Outlook uses the rendering engine from MS Word and Gmail removes almost everything, every method for making two elements overlap that I can think of is unsuitable due to poor client support: Position isn't supported in many clients, so no position: absolute; or position: relative; and no top , left , right ... Negative margins get removed by Gmail

Reliable solution for conditional comments in Outlook.com HTML emails

荒凉一梦 提交于 2019-11-30 16:04:01
I've seen here and elsewhere that a recommended way to set up conditional comments to work with Outlook.com, but because of another known issue detailed below I'm getting blank emails. Referencing the two code examples below I wanted to see if anyone had a reliable way around this issue. First example: <!--[if mso]><!-- --> <style type="text/css"> #learn-left { width: 350px; max-width: 350px; } #learn-right { width: 165px; max-width: 165px; } </style> <!--<![endif]--> The above code causes a blank screen in Outlook.com even though other posts here have cited that <!--[if mso]><!-- --> works

CSS Images in Email With Rails 3

大城市里の小女人 提交于 2019-11-30 15:33:12
I'm trying to send out an email with Rails 3 and Action Mailer. The email goes out fine, but I want it to be HTML formatted with some basic styling which includes background images. I understand that the images might get blocked until the user allows them to be shown, but I still think it would be best to link to the images on my web server. The email template called registration_confirmation.html.erb starts out like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>

CSS font stack substitution issues in Outlook when using Google Webfonts

▼魔方 西西 提交于 2019-11-30 14:57:01
问题 Using Google Webfonts in an HTML email I ran into font substitution issues in Outlook (2007,2010, etc.) that didn't occur prior to incorporating webfonts.It ignores the font stacks and goes right to Times. This happens despite using inline fallback font stacks. I've noticed similar issues that have been posted here before, but only as a general question, not tied to the use of webfonts. Previously all of the font fallbacks worked correctly. I'm using Litmus to conduct the email testing. Does

CSS font stack substitution issues in Outlook when using Google Webfonts

拜拜、爱过 提交于 2019-11-30 12:47:09
Using Google Webfonts in an HTML email I ran into font substitution issues in Outlook (2007,2010, etc.) that didn't occur prior to incorporating webfonts.It ignores the font stacks and goes right to Times. This happens despite using inline fallback font stacks. I've noticed similar issues that have been posted here before, but only as a general question, not tied to the use of webfonts. Previously all of the font fallbacks worked correctly. I'm using Litmus to conduct the email testing. Does anyone know why this might be happening? Link to Litmus: https://litmus.com/pub/53a33c7/screenshots

How to pass dynamic data to email template desgined on sendgrid webapp ? :-| Sendgrid

旧巷老猫 提交于 2019-11-30 12:25:27
问题 I integrated sendgrid email service with my sample application. & also able to send email to user. But how to pass dynamic data to Email template design on sendGrid webapp? is there any way to send dynamic data to email template designed on sendgrid? for ex. I designed Welcome email template on sendgrid. & I want to pass dynamic data to this template i.e UserName , emailId, City etc.. using java code ? when any user registered with my application then I want to send welcome email to that user

How to force min-height on table

空扰寡人 提交于 2019-11-30 07:56:08
I have this code : <table cellspacing="0" cellpadding="0" border="0" style="width:415px"> <tbody> <tr valign="top"> <td style="font-family:Arial;min-height:60px;font-size:12px;line-height:14px;"> This is my text that I need in 2 lines </td> </tr> <tr valign="top"> <td style="font-size:12px;line-height:14px"> Second Line </td> </tr> </tbody> </table> As you can see, the first tr/td should be height 60px ( min-height:60px ) but in fact it isn't. For many reasons, I can't use height directly (this code is formatted trought back office system, in a newsletter). So, how can I take the whole height

How to embed an image into an Outlook HTML email message?

一笑奈何 提交于 2019-11-30 07:30:25
问题 We have a Winforms application which supports dragging and dropping chunks of HTML into Outlook (HTML) mail messages. Chunks of text are fine. But how do we proceed with images? Let's assume we don't want to host the images online but instead we want to send them with the email message. Assume also that we do want to see the image inline, not as an attachment (where the recipient's email client supports that, of course). If you look at the HTML source of an Outlook message there are "cid"

Google DFP ads in email behaving strangely

本小妞迷上赌 提交于 2019-11-30 07:10:32
I am trying out serving DFP ads in email. I'm following the guidelines here . I have an ad unit set up just for email I have a line item targeting that ad unit with just an image creative The line item doesn't have any targeting restrictions or anything like that The ad will show up in the email, at least the first time. The strange thing that I'm seeing is, after the first click, clicking on the ad again will often bring me to a blank page rather than the click-through page of the creative. Also, when I reopen the message, occasionally the image will not load. The code in the email looks like