dcsimg
Adding a File as Message Body
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jonathan_Downey
Posted On:   Tuesday, November 13, 2001 08:18 AM

Hi.How do I send a File as the body of a Mail message (not an Attachment)? I have a HTML file on the disk and I want to send that as the message body. At the moment the file is being attached and the body is empty.

Jonathan.

Re: Adding a File as Message Body

Posted By:   John_Zukowski  
Posted On:   Thursday, November 15, 2001 08:13 AM

I thought the example in the FAQ already did what you are after. Just setContent("html string", "text/html") did this already.

Re: Adding a File as Message Body

Posted By:   Anonymous  
Posted On:   Tuesday, November 13, 2001 04:14 PM

I hope others will correct me if I'm wrong, but I think you need to have a MultiplePart message and set the Mime type to "alternative", adding a simple text message as the alternate...

-w
About | Sitemap | Contact