html-email

outlook.com how to target css at a specific class

痴心易碎 提交于 2019-12-24 12:19:15
问题 I am designing an HTML email and I've made it look as good as I can in the email clients I have tested. I'm checking it now it Outlook.com and it has some issues (probably because they don't support margins) so I want to add some conditional styles for that client. I know that Outlook.com wraps the email in a .ExternalClass class and prepends any custom classes with ecx so I tried something like * {color:black;} .ExternalClass * {color:red;} .ExternalClass .ecxMyClass {color:blue;}

HTML email - white space between table rows

别等时光非礼了梦想. 提交于 2019-12-24 10:55:38
问题 I am building a set of email postcards and have run into trouble with some versions of Outlook and Gmail creating unwanted spaces between certain (but not all) table rows. I am fairly new to coding HTML email and need help troubleshooting - can anyone tell me what needs to be changed in my code to resolve this issue? Here is my test page: http://www.kristi.net/holidaycards/card_test.html And here is a screen cap showing the problem in Outlook: http://i43.tinypic.com/34ezrc3.gif These clients

sending html mail with images not displaying in gmail

江枫思渺然 提交于 2019-12-24 08:00:32
问题 I am sending html emails through php . the email has a background image that is not showing when i test it with gmail, hotmail or yahoo mail. I have tried to use an image tag but that doesnt work either. the image works perfectly fine if using an email client like OSX Mail or Mozilla or outlook. Any ideas? sorry about not adding any code. here is how i tried to implement it : <div style="border-bottom:1px solid #CCCCCC; padding:0 20px; background-color:#EDEDED; background-image:url(http://www

Google sheets script to email when form response received

微笑、不失礼 提交于 2019-12-24 07:17:47
问题 I have a sheet https://docs.google.com/spreadsheets/d/1NcCZ5Y7YrL63e2i6osQC28MOG3_Mq4fLPUANFrxxYNE/edit#gid=725463476 with multiple forms feeding it. I need a script that when a new response is received it will pull the data from a different sheet and email it. I will need a script that I can modify for each different form response. So if possible have a sheet to watch and sheet where the data is pulled form called out in the script so I can just change the sheet name in the script for each

Keycloak's FreeMarker email template

大憨熊 提交于 2019-12-24 05:11:51
问题 I'm using Keycloak to send a forgot password email, and from what I've read on their docs and the FreeMarker docs, it seems like I should be able to use HTML tags just fine. However, when I use them in the password-rest.ftl file, it renders the whole tag like so: <p>Some Text</p> instead of just showing: Some Text I found this (https://issues.jboss.org/browse/KEYCLOAK-681) saying that Keycloak can only send plain text emails, and I just wanted to see if anyone knew for sure since I have found

Keycloak's FreeMarker email template

强颜欢笑 提交于 2019-12-24 05:11:03
问题 I'm using Keycloak to send a forgot password email, and from what I've read on their docs and the FreeMarker docs, it seems like I should be able to use HTML tags just fine. However, when I use them in the password-rest.ftl file, it renders the whole tag like so: <p>Some Text</p> instead of just showing: Some Text I found this (https://issues.jboss.org/browse/KEYCLOAK-681) saying that Keycloak can only send plain text emails, and I just wanted to see if anyone knew for sure since I have found

Links does not work in <a href> tag when content has .com inside

浪子不回头ぞ 提交于 2019-12-24 04:49:06
问题 in my code I generate a body of a html email message. Part of it is following: <a href="mylink.pl">SomeName.com</a> When I receive this email in my Mail client or in Gmail and when I click the link I'm directed to the SomeName.com and not to the mylink.pl which is in the href part of the <a> tag. And it looks that this situation occurs only for the .com domains. Any ideas how I could deal with this? 回答1: Use absolute URIs in emails. They start with (usually) http:// What you have is a

Send errors message via email using error_log()

徘徊边缘 提交于 2019-12-24 03:32:08
问题 The php function error_log() let you send logs to email setting the second param to 1. I do that, but i want to dispay message in html. The code looks like this: error_log($this->_errorMsg, 1, ADMIN_MAIL, "Content-Type: text/html; charset=utf8\r\nFrom: ".MAIL_ERR_FROM."\r\nTo: ".ADMIN_MAIL); Probably i mess something declaring the content type, because i get msg in plain text: <h1>Website Error</h1> <b>ERRNO:</b><font color='red'>1</font> ... 回答1: Try to set up your headers like so: $headers

PHP Mail() Function with headers

梦想与她 提交于 2019-12-23 21:29:58
问题 I always struggle when using headers along with the PHP mail() function. The problem is always the same, last year, this time, as long as I remember, it drives me mad. The problem is that the headers are simply displayed in the email message. Example received mail : http://nl.tinypic.com/view.php?pic=63va5z&s=8#.U8PmeED8rbw Source : $onderwerp = "Bedankt voor uw bestelling met order nummer # ".$row['id']; $ontvanger = "customer@customer.be"; $reply = "reply@reply.be"; //$reply =

styling tr or td in emails?

只愿长相守 提交于 2019-12-23 21:27:01
问题 I want to change whole row cells background-color and font-size. (with inline-styles , because I can't use stylesheets or <style> tag) Which element should I add these styles? I should add them on each <td> in one row or once for <tr> tag? which way is better? <tr> <td style="background-color:red;font-size:12px">blah blah</td> <td style="background-color:red;font-size:12px">blah blah</td> </tr> or <tr style="background-color:red;font-size:12px"> <td>blah blah</td> <td>blah blah</td> </tr> 回答1