html-email

How to deal with long links in HTML-emails

孤街醉人 提交于 2019-11-29 09:34:54
I've searched the web on this and I can find two solutions: Use a URL-shortner. Use brackets < > to allow insertion of whitespace. This only applies to plain-text emails. I'm sending HTML emails that contains sensitive information, like password recovery links and auto-authentication links. These secure links are, by their nature, quite long. Easily longer than 70 characters or whatever arbitrary limit is imposed on e-mail bodies. Obviously I can't use any form of URL-shortning because it would circumvent any secure cryptography technique I've used for the links. I suppose the largest issue is

Send html email with embedded image and plain text with same image as attachment in C#

*爱你&永不变心* 提交于 2019-11-29 08:58:52
I wish to send an email, with a plain text and html version. The email needs an image to go with it (not one I can host somewhere else), it should be embedded if the client views it in html, and attached for the plain text view. Is this possible to do that would work in all common clients? The closest I have come is creating the image as an attachment (rather than a linked resource) then referencing it in the html with cid:filename.jpg. However this doesn't work in gmail (it doesn't display the image in the html). This code snippet works in outlook 2010 and gmail. I test the plain text email

PHP mail formatting issue - Why do CRLF header line endings break HTML email in Outlook?

江枫思渺然 提交于 2019-11-29 08:41:51
I'm using the PHP native mail() function to send HTML emails and have a formatting problem in the users most common email client - Outlook 2007 ( in addition to some other email clients ) - all the html tags are exposed so it looks like gibberish to a non-web-developer. I'm sending HTML email the same way that the PHP manual demos it. Example: $message = get_HTML_email_with_valid_formatting(); $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; $headers .= "From: example.com <info@example.com>\r\n"; $headers .= "Reply-To: donotreply@example.com\r\n";

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

倾然丶 夕夏残阳落幕 提交于 2019-11-29 04:23:20
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" tags for images (which point to the image as an attachment I guess), but how do we go about generating a

How to remove borders around broken images in webkit?

混江龙づ霸主 提交于 2019-11-29 03:47:48
Can anybody advise me on this? WebKit browsers keeps on putting a gray 1px border around disabled images. The reason I need this removed is for email optimization for when email clients have images disabled. Works fine in Firefox, but WebKit browsers keep showing the border. I have tried border:none !important everywhere including inline, but Chrome/Safari are being stubborn. Edit: Here is sample html with inline css <img style="outline:none;text-decoration:none;display:block;border:none;-webkit-border:0;" border="0" src="images/rm_bnk.gif" width="10" height="10" alt="test" /> Saeed Alipoor

Outlook 2007 / 2013 not rendering CSS font-family declarations

房东的猫 提交于 2019-11-29 01:13:50
问题 I'm testing an email design with Litmus and for the life of me I cannot get my fonts to be properly set in Outlook 2007 / 2010 / 2013. Every single HTML / CSS trick / hack continues to render in Times New Roman: ` I'm mostly using simple tables for layout, so all content is ultimately inside a TD element. Here are the various techniques I've tried to set the font. My STYLE declaration: Have tried this in both the HEAD and BODY tags & neither works. <style> @font-face { font-family: proxima

Is there a way to use Google Web Fonts in an HTML email?

倖福魔咒の 提交于 2019-11-28 23:15:30
An HTML email must (should) have its CSS inlined in order to have the expected design in most of the email clients. Is there a way to link a Google Web Font to or embed in such an email but still maintain a broad acceptance (appropriate rendering) among email clients? I know that an alternative would be to have an image with the corresponding typography, but I would first search for something else that might work. If the font is absolutely necessary, you will have to go with the text as image solution. As of December, only iOS Mail, Mail.app, Lotus Notes 8, default Mail on Android, Outlook

Is there no way to embed a Google Map into an HTML email?

◇◆丶佛笑我妖孽 提交于 2019-11-28 22:27:37
I have done a good amount of research and have found several "solutions" such as the static maps API and simply sending a link to a Gmap. However is there really no way to actually send someone a Google Map? Neil McGuigan Well your own research shows that most mail clients don't do iFrames, so what do you think can be done? This is on purpose by the way. iFrames and JavaScript are security risks that mail services don't want to deal with. Your best bet is to get a static image of the map and embed it as an image in an HTML email. Put a hyperlink on it to the "full" map on Google Maps. To do

Do we still need to use <font> tags in HTML emails?

最后都变了- 提交于 2019-11-28 17:49:12
I'm taking over from someone who builds our HTML emails and the templates are filled with font tags. Is this really necessary? I know CSS support isn't great in emails, but if I set an inline style for text on the container <td> like this... <td style="font-family:Arial, Helvetica;color:#555555;font-size:12px"> ...then surely this will work across the majority of email clients. From the tests I've performed this seems to be the case, and this article seems to confirm this. Anyone have any input as to whether <font> tags are really necessary in HTML emails? Doozer Blake Your assumption is

How to open an installed app from an email URL in Android? [duplicate]

坚强是说给别人听的谎言 提交于 2019-11-28 16:50:46
问题 This question already has an answer here: Make a link in the Android browser start up my app? 8 answers I want to open my app from an email URL, basically like the example shown below for Twitter.com. Email with link: Selection to open app or browser: After you click on the app choice, the Twitter app opens: I tried the following code, but it is not working: <intent-filter> <action android:name="android.intent.action.VIEW"></action> <category android:name="android.intent.category.DEFAULT"><