|
| View All Microsoft Scripting Visual Basicscript Posts Ask A New Question |
|
VBscript embed images in HTML email body |
sumit.halde posted on Wednesday, March 21, 2007 1:12 AM
|
Hi
Im sending email's using the "script task" of SQL Server 2005
Integraton Services. The email body is an HTML string . Now i want to
embed image in that body.I tried to do that by downloading the CDO
library ( CDOEX.dll ) but could not add it to the script task ( was
not able to add the cdoex.dll file to the refference of that script) .
Can anybody help me on the same ( either how to add a .dll file in
SSIS script task or any other way to embed image using vbscript to an
html email body) |
 |
|
| |
|
|
I don't know anything about "SQL Server 2005Integraton Services" so I don't |
mayayana posted on Wednesday, March 21, 2007 9:52 AM
|
I don't know anything about "SQL Server 2005
Integraton Services" so I don't know how you're doing
it. I assume that you want a simple solution like
OtherComponent.AddFileToThisEmail
I can't offer any help in that case.
If you actually want to do it "by hand" you can.
It requires converting your binary file to Base64 and
then adding that text to the end of the email. The format
varies slightly depending on whether you actually want a
displayed image or an attachment. That approach
can be done without needing any extra component, but it
requires getting into the details of email structure. |
 |
|
|
|
|
| Previous Microsoft Scripting Visual Basicscript conversation. |