Link to home
Start Free TrialLog in
Avatar of KenMSchwartz
KenMSchwartz

asked on

looking for a way to send HTML formatted emails from a DTS package

I have DTS package that properly creates an output string that looks like:

<html>
<body>
<table>
<tr>
<th>Partner</th>
<th>PO_Number</th>
<th>PO_Control_Number</th>
<th>PO_Date</th>
<th>INV_Number</th>
<th>INV_Date</th>
<th>INV_Control_Number</th>
</tr>
<tr><td>BERGENT</td><td>044237856</td><td>044237856</td><td>04/20/2005</td><td></td><td></td><td></td></tr>
<tr><td>CARDT</td><td>Z4849410SV</td><td>000005231</td><td>04/21/2005</td><td></td><td></td><td></td></tr>
<tr><td>D&KHEALTH</td><td>2052516</td><td>6700001</td><td>04/20/2005</td><td></td><td></td><td></td></tr>
<tr><td>D&KHEALTH</td><td>2052517</td><td>6700002</td><td>04/20/2005</td><td></td><td></td><td></td></tr>
<tr><td>HDSMITH</td><td>050123456</td><td>000001211</td><td>04/21/2005</td><td></td><td></td><td></td></tr>
</table>
</body>
</html>

I am attempting to send an email using the DTS Send Mail Task, in which I want to display the information in table form.  What I get is just the text noted above.  What am I missing?  This is the last piece of the puzzle and I'm going nuts.

Any help would be greatly appreciated.  I know that for this is probably a cake walk for most of you, but since I have no hair left, I am going to assign a high point value just to get it over with.

Thanks in advance for you help.

KMS
Avatar of rafrancisco
rafrancisco

For an email to be displayed like an HTML page, you have to set the content-type to "text/html".  Unfortunately, in DTS Send Mail Task, there is no option for you to be able to change this property.  An alternative is for you to create an html file and attach that in your email.
Avatar of KenMSchwartz

ASKER

rafrancisco,

Thanks for that suggestion.  I thought about that as well, but the client would like to see it in the body of the email.  Any other suggestions.
ASKER CERTIFIED SOLUTION
Avatar of Maciej Pilecki
Maciej Pilecki
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
graft,

Outstanding solution.  Thanks