html-email

HTML rendering in Outlook 2010 and Gmail

孤街醉人 提交于 2020-01-04 15:13:22
问题 I am programmatically sending a full HTML message to 2 persons... 1 is a Gmail user and the other is a private host using Outlook... the message is the following: <html xmlns="http://www.w3.org/1999/xhtml\"> <body background="http://sa-tips-spint1:103/_layouts/images/corrente%20do%20bem/2010/cartao.jpg" BGCOLOR="#000000" style="background-position: center top; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;"> <div align="center"> <p> </p> </div> <p> </p> <p> </p> <p>

Large gap in table - Outlook 2010

亡梦爱人 提交于 2020-01-04 14:20:34
问题 I am working on multiple emails for a client who is using Outlook 2010 version 14 for a PC in their office. No matter how the email is created the right side of the table is blown way out. For example: Email #1: Email #2: This is the code: view-source:http://fortworth.dmplocal.com/main/index.php?action=viewsenthtml&id=95&ids=e9499cb22fd2fbaee560c877a2716fa0aab6880d I have done a lot of searching to try and figure out what I could do to fix this, below are some things: Took all CSS inline Made

email template position absolute?

血红的双手。 提交于 2020-01-03 07:20:10
问题 Is it safe to use position:absolute in a email template? 回答1: Depends on which mail clients your users are using. Outlook for example handles position: absolute well, Thunderbird on the other hand doesn't. I would try designing your mail-template as "normal" as possible. Tables help a lot for example (yuck). See the following page about styling tips on HTML mails, including some position absolute advice: Style In Email 回答2: Adding to an old question, I know - but I can confirm that neither

Email clients ignoring internal style sheet

蹲街弑〆低调 提交于 2020-01-02 10:34:05
问题 Best practices in normal web development call for putting your styles between style tags or loading a style sheet; however, I've found out that several email clients will ignore any style tags and only execute inline styles (www.campaignmonitor.com). I can deal with that, but I'm not sure if CSS supports inline media queries. I would like my email to display a little different on the desktop. Is something similar to this supported?: <div id="myDiv" style="@media screen and (max-width:480px;){

Email clients ignoring internal style sheet

冷暖自知 提交于 2020-01-02 10:33:33
问题 Best practices in normal web development call for putting your styles between style tags or loading a style sheet; however, I've found out that several email clients will ignore any style tags and only execute inline styles (www.campaignmonitor.com). I can deal with that, but I'm not sure if CSS supports inline media queries. I would like my email to display a little different on the desktop. Is something similar to this supported?: <div id="myDiv" style="@media screen and (max-width:480px;){

Email CSS template framework?

隐身守侯 提交于 2020-01-01 04:29:08
问题 Anyone know of any email template CSS framework. I am currently using bootstrap, it works, but not exactly built for email. I have looked at "zurb ink" but it just doesn't seem very developer friendly, so hard to make it work. What are others using out there? 回答1: Check out MJML. It's a framework solely designed to create responsive emails. Similar to Ink in concept I think. 回答2: Most email templates use tables and inline styling to be compatible across as many different clients as possible.

Safe markup for HTML email

99封情书 提交于 2020-01-01 02:06:06
问题 Email clients are limited in their HTML display capabilities. What HTML markup and CSS styles is it safe to use in HTML-formatted email? 回答1: In general you want to stick to 10+ years old HTML. Avoid trying to link to external stylesheets and avoid styles in the HEAD. Use inline styles. Use HTML tables for layout. Industry standard is to stick to width of 600px or less for your email content. This is a good guide: http://kb.mailchimp.com/article/how-to-code-html-emails 回答2: Some useful links

Using Content-ID and cid for embedded email images in Thunderbird

时间秒杀一切 提交于 2019-12-31 03:33:11
问题 I'm generating emails in a PHP application which attach multiple files to an HTML email. Some of the files are Excel spreadsheets, some of the files are company logos which need to be embedded in the HTML so they load by default using Content-ID and cid identifiers to refer to the attached images. As far as I can see, my syntax is correct, but the images don't ever load inline (they are attached successfully, however). From: email@example.com Reply-To: email@example.com MIME-Version: 1.0

Block element inside table exceeds it parent size

為{幸葍}努か 提交于 2019-12-31 02:43:12
问题 I am working on constructing HTML designed for Mail Clients using inline styles and a lot of <table> s. While experimenting with tables I encountered the following phenomena - Nested inside a <td> , a block element such as <p> or <div> will, as expected, take 100% of <td> parent width, unless its width attribute is declared explicitly. For example: The following code is a simple <p> element nested inside a <table> 's <td> . The <table> 's width is 700px and the <p> element with 50px padding

How to send a form without refreshing the page?

两盒软妹~` 提交于 2019-12-30 13:13:34
问题 I don't know PHP. I don't want the user to go to http://www.example.com/feedback-thanks.html after sending the form. What I want is text below the sent button or anything without refreshing the page . I removed header( "Location: http://www.example.com/feedback-thanks.html" ); but i don't receive the e-mail and the user is redirected to feedback.php... :( html <form method="post" action="feedback.php"> <input name="email" type="email"/> <textarea name="message" id="feedback-textarea"