-
Sending an Attachment using SMTP
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
-
Re: Sending an Attachment using SMTP
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
-
Re: Sending an Attachment using SMTP
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|