Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We are CDO object to send email from our application. The email type is html, and I am passing HTML content as email body. In some scenarios, the emails are not displayed properly in outlook.
CSS
Work Request Headline:      Test
Deliverable:    RTM (DOU) (PCR) - 2
Date Requested:     2015-01-22
Target Date:  < TD> 2015-01-28

CSS
Work Request Headline:      test
Deliverable:    DOU (Req. Agreement) (PCR) - 1
Date Requested:     2015-01-23
TD NOWRAP WIDTH='14%' VALIGN='TOP'>Target Date:     2015-01-29


The HTML tags are appearing in the email body. But I am unable to replicate the issue. If I send the same email again, it is working fine. Only under some specific scenarios, I am facing this issue. How to fix this email issue?

Sorry, I not under privilege to share the code as it violates the policy. Thanks in advance.
Posted

1 solution

Is hard to help without knowin the html code for the email. But I look to a course in treehouse about html mails, and here are some advices I can give you.

Use table elements as grid. Don't use divs, since many mail clients change those divs.

Use inline CSS, don't refere to external css files.

Test your emails in tools like mailchimp

Make yourself an trial account on treehouse and search for the course html emails
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900