I am sending an email as part of the Java module using SMTP. I have everything
working except figuring out how to include an attachment. Does anyone have
any suggestions?
Thanks
Printable View
I am sending an email as part of the Java module using SMTP. I have everything
working except figuring out how to include an attachment. Does anyone have
any suggestions?
Thanks
If you are using the JavaMail product (which you can download from Sun's
Java Developer site) it has methods for including attachments and examples
of how to do it. If you are using raw SMTP then I don't know how.
PC2
"GeneT" <gene.thomaier@bcbsfl.com> wrote in message
news:3caaff3e$1@10.1.10.29...
>
> I am sending an email as part of the Java module using SMTP. I have
everything
> working except figuring out how to include an attachment. Does anyone
have
> any suggestions?
>
> Thanks
I am using raw SMTP.
"Paul Clapham" <pclapham@core-mark.com> wrote:
>If you are using the JavaMail product (which you can download from Sun's
>Java Developer site) it has methods for including attachments and examples
>of how to do it. If you are using raw SMTP then I don't know how.
>
>PC2
>
>"GeneT" <gene.thomaier@bcbsfl.com> wrote in message
>news:3caaff3e$1@10.1.10.29...
>>
>> I am sending an email as part of the Java module using SMTP. I have
>everything
>> working except figuring out how to include an attachment. Does anyone
>have
>> any suggestions?
>>
>> Thanks
>
>
To send an attachment you will need to create a multipart MIME message that contains the attachment as a separate part. This is well documented in RFC 1521.
For a tutorial see the following:
http://www.jscape.com/articles/sendi...sing_java.html