html-email

Media query in responsive email template

混江龙づ霸主 提交于 2019-12-01 18:43:16
问题 I need to build a responsive email template. I did my research and learnt that media queries are not widely supported by the email clients. So, I tried not to use media query and stacked the columns using display: inline-block; max-width:290px; . But what if I want to change the font size for mobile version? Also I have a case where client wants few blocks to be visible in mobile but not on desktop. How can I achieve these without media query? Also, in my case when I add style rules and media

Media query in responsive email template

别来无恙 提交于 2019-12-01 18:21:08
I need to build a responsive email template. I did my research and learnt that media queries are not widely supported by the email clients. So, I tried not to use media query and stacked the columns using display: inline-block; max-width:290px; . But what if I want to change the font size for mobile version? Also I have a case where client wants few blocks to be visible in mobile but not on desktop. How can I achieve these without media query? Also, in my case when I add style rules and media queries, I guess iOS supports media queries. But rues under media queries are not appearing but the

mailto link is blocked as insecure content in Chrome Gmail

折月煮酒 提交于 2019-12-01 17:53:38
I've got a link in an encrypted HTML email that goes to mailto:blahblah, but it's being blocked in Chrome Gmail. Anything I can do about this? Example: 1) I open an encrypted HTML email message inside of my encrypted GMail web client ( https://gmail.com - notice the s in https). 2) The email contains a link in the folloiwng format: <a href="mailto:user@example.com">Email the user.</a> 3) I click on the link, but it is blocked because GMail and/or Chrome is treating the mailto link as insecure content. 4) I add target="_blank" to the aforementioned link and the problem goes away. The rest of

Email signature

落爺英雄遲暮 提交于 2019-12-01 13:47:59
So I have made a email signature and it works fine in desktop Gmail. The problem is that when I open an email in desktop Outlook links turn blue and underline . How can I fix this? This is my HTML <td style="font-family:'Open Sans', sans-serif;color:#000000;font-size:9px;line-height: 14px;font-weight: 400;"> <a style="color:#000000!important;text-decoration:none!important;" href="" target="_blank" data-saferedirecturl=""> Av.Infante Santo, 69 a-c | 1350-177 Lisboa - Portugal </a> </td> When Gmail spots an address or phone number in an email, it automatically adds an extra style declaration,

Table Gap Issue in Gmail App

左心房为你撑大大i 提交于 2019-12-01 12:31:32
After days of of trying to find a solution(unsuccessfully), I've decided to turn to the collective wisdom and experience of the community for help. I I have a email template that displays correctly across all desktop, web and mobile clients, except for the Gmail App for Android. I have a nested navigation table (which consists of a top image, the navigation itself and bottom image). For some reason the Gmail App for Android displays a horizontal and vertical gap around the nested navigation table. The nested table should span the width(380px) and height(85px) of the containing cell, but doesn

How to send a form without refreshing the page?

这一生的挚爱 提交于 2019-12-01 12:09:35
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" autofocus="autofocus" required="required" ></textarea> <button type="submit" id="feedback-button-send">send<

How to make an email template for gmail using HTML and CSS

只谈情不闲聊 提交于 2019-12-01 10:56:24
I was wondering how I could design an email template using HTML and CSS and then incorporate that into an email. I want to do it as other companies do when they send confirmation emails and newsletters. Whether you prefer to code an email by hand, or use a pre-existing template, there are a few rules to keep in mind in creating an HTML email: Utilize Tables in your Layouts Fixed-Width Positioning (for non-responsive emails) Pixel Units The Possibilities with CSS (check Ultimate Guide to CSS link below) Inline CSS Anchor Links Best Practices Test in All Major Clients Always Offer Web-Based

Images don't appear in emails

五迷三道 提交于 2019-12-01 10:37:06
I have a HTML email template in the App_Data folder of my MVC application. In my code, I use this template to send HTML emails to users. This template references a few images in a folder in my project. The issue is that these images don't appear at all when the user receives the email. I have tried to reference the images using ~/path to image/image.gif . I have tried using ../../path to image/image.gif and I have copied the images to the App_Data folder and just referenced the images thus image.gif . Nothing is working. Does anyone have any suggestions? the images either need to be stored in

Table Gap Issue in Gmail App

最后都变了- 提交于 2019-12-01 09:46:07
问题 After days of of trying to find a solution(unsuccessfully), I've decided to turn to the collective wisdom and experience of the community for help. I I have a email template that displays correctly across all desktop, web and mobile clients, except for the Gmail App for Android. I have a nested navigation table (which consists of a top image, the navigation itself and bottom image). For some reason the Gmail App for Android displays a horizontal and vertical gap around the nested navigation

How to make an email template for gmail using HTML and CSS

风流意气都作罢 提交于 2019-12-01 08:27:44
问题 I was wondering how I could design an email template using HTML and CSS and then incorporate that into an email. I want to do it as other companies do when they send confirmation emails and newsletters. 回答1: Whether you prefer to code an email by hand, or use a pre-existing template, there are a few rules to keep in mind in creating an HTML email: Utilize Tables in your Layouts Fixed-Width Positioning (for non-responsive emails) Pixel Units The Possibilities with CSS (check Ultimate Guide to