Attaching pdf to html email using jmail.appendHTML & JMail.AddAttachment
From: Vix (vicky.clarke_at_gmail.com)
Date: 01/26/05
- Next message: Mad4U via JavaKB.com: "Re: No output for binary to decimal conversion"
- Previous message: Ryan Stewart: "Re: No output for binary to decimal conversion"
- Next in thread: Thomas Weidenfeller: "Re: Attaching pdf to html email using jmail.appendHTML & JMail.AddAttachment"
- Reply: Thomas Weidenfeller: "Re: Attaching pdf to html email using jmail.appendHTML & JMail.AddAttachment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Jan 2005 05:17:16 -0800
Hello - I'm using jmail.appendHTML to create personalised html emails
within an asp script. I am attching a pdf to the html mail using
JMail.AddAttachment. The pdf is attached to the mail but the
attachment paper clip icon doesn't show up.
>From some browsing on groups I think I have to encode the pdf or have
a contentID.
Something along the lines of:
if attachment <> "" then
'JMail.AddAttachment(attachment)
contentId3 = jmail.AddAttachment(attachment)
end if
' normal body of html email
jmail.appendHTML "<META http-equiv=Content-Type: application/pdf
name=" & contentId3 & """>"
jmail.appendHTML "<META http-equiv=Content-Transfer-Encoding: base64>"
jmail.appendHTML "<META http-equiv=Content-disposition: attachment;
filename=" & contentId3 & """>"
I'm not really sure what to search on - groups only had 4 items under
jmail.appendHTML!!!
Could anyone help point me in the right direction or perhaps have the
html to attach a file other than an image?
Thank you very much
Vicky
(There's an article re. lost paperclip in outlookXP but it happens on
all Outlook versions so I don't think that's problem
<http://www.interesting-people.org/archives/interesting-people/200201/msg00199.html>)
- Next message: Mad4U via JavaKB.com: "Re: No output for binary to decimal conversion"
- Previous message: Ryan Stewart: "Re: No output for binary to decimal conversion"
- Next in thread: Thomas Weidenfeller: "Re: Attaching pdf to html email using jmail.appendHTML & JMail.AddAttachment"
- Reply: Thomas Weidenfeller: "Re: Attaching pdf to html email using jmail.appendHTML & JMail.AddAttachment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|