html-email

HTML Emails | Available Tutorials on coding like it's 1999

When I started coding I skipped over tables and went directly to CSS/div based layouts, it had just started and I didn't see the need to learn something (ie tables layout) that was on it's way out. I do use tables for tabular data, so I understand the way tables work. My current company sends an amazing amount of HTML emails that I ha...

Saving data in SQL Server database and then sending the email later

I have a data entry and editing form and in every data entry or update event, I have to send an email to a dynamic list of recipients. I have been sending the email as soon as the user clicks the save or edit buttons but am thinking of first saving the data to the database, and then sending the email later. I want to do this partly to im...

small line-heights rendering incorrectly in MS Outlook

From doing a little research I've found that MS Outlook will not render line-height in an HTML email at anything less than 16px. This is a bit of a problem as I really need it a fair amount smaller. Does anyone know of a fix for this?? ...

When creating HTML emails, should we use html, head, body tags?

In my email views, I usually just do something like... <dl> <dt>Name</dt> <dd>Value</dd> </dl> Should I be doing it like this? <html> <head></head> <body> <dl> <dt>Name</dt> <dd>Value</dd> </dl> </body> </html> In other words, like I was marking up a standalone document? I guess I can safely assum...

HTML and Plaintext email messages appropriate way to include a hyperlink in both?

Emails sent with html are obviously able to easily contain hyperlinks to web resources. What I want to understand is how best to include those links in a plaintext portion of the email? Does this have any affect on spam ? For example, our IT management system sends out emails and occasionally we encounter a customer that is ending u...

SMTP ERROR: (552, '5.6.0 Submission denied Sender does not match originator <myEmailAddress>)

I've writted a Python script to send emails via a relay server. I've tested that the appropriate email address's etc are permissioned etc by sending an email using Telnet. My Python script also work when set up to send via my old relay server. Therefore i am confused as to why i am getting the following error message: (552, '5.6.0 Sub...

Send errors message via email using error_log()

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 con...

How to pull html encoding from email data using PHP

I'm working with emails and want to display the html in the browser, I'm not sure how to deal with the encoding. I want to extract the html to display it in the html browser. The way I plan on doing this is using an html parser on the entire email parsing the data inbetween the tags in the html section. Is there an easier/more effici...

Rules when creating HTML E-Mails?

Hi, Is there anything I need to be aware of when creating a HTML e-mail? Is it as simple as creating a valid HTML page then sending it via PHP? Or do I need to use tables to ensure it display's correctly. Any advice to get this right first time would be much appreciated. ...

Sending email through simple html page

I just realized that I don't have a answer to this question, when I'm talking some friends we can't find the best simple solution to do this. Can I send a dynamically body, from a form with a prefixed subject? My question is about the most simple solution. []'s ...

PEAR Mail_mime not showing appropriate version

I have some trouble with PEAR when I'm using the Mail_mime class to send out HTML/text mail with embedded images. What I need script to do, is to provide an email with both a text and HTML version of the content. The content will be somewhat different. The text version will contain some text, and an image attachment. The HTML version ...

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

Hello folks 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 ...

Do HTML email templates require the use of the style attribute?

Are there scenarios where it is (for some reason) required to place the CSS rule inside the style attribute of the HTML tag directly instead of placing the CSS rule inside a selector in the STYLE element in the HEAD of the HTML email template? (I am asking for the most common CSS selectors, like type, class, ID, descendant combination...

What's a 3D doing in this HTML?

I'm trying to duplicate a mailer I got into my gmail by taking a look at its code. I see a lot of this in multiple source viewers: <td style=3D"border-bottom: 1px dotted rgb(153,157, 147); border-top: 1px solid rgb(28, 140, 78);" width=3D"90">=A0</td> <td style=3D"border-bottom: 1px dotted rgb(153,157, 147); border-top: 1px solid rgb(...

How to stop embedded images in email being displayed as attachments by GMail?

I am sending HTML emails with embedded images (as attachments) and the images display as expected in GMail. However they also show up as attachments under the email. Does anyone know how to avoid this i.e. I want them in the email only and not listed as attachments. I have used "Content-Disposition: inline". I am using Spring and JavaMai...

email template position absolute?

Hi all, Is it safe to use position absolute in a email template? ...

place background image outside of a <table> <td> <tr> borders in embedded html mail

Hi, Looking through some html email examples, I noticed is all about tables. I wanted an image inside of one of the rows of the main table to look like half of the image is outside the table and the other half inside. I can't get the solution to do that. Any helps would be appreciated, really appreciated Here's is what I like. The o...

Text vs html emails

Our site generates several emails per day, a lot of which can contain awkward links, such as http://company/process/task?id=1234-4123-2352-1234&amp;user=xyz... Consequently I have been sending text only emails, on the suspicion that they will be treated more 'fairly' by email filters along the way. I cannot afford to lose emails to clie...