add Multipart
msg.saveChanges(); // save changes
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Venu Gopal
> Sent: Saturday, November 11, 2000 3:27 AM
> To: [EMAIL PROTECTED]
> Subject
w.jsp?EID=30251
> they hav a sample code for sending a mail with an
> attach using javamail
> api's
> - Original Message -
> From: Bhuvaneswari Palanivel
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 08, 2000 4:33 AM
&g
]>
Sent: Wednesday, November 08, 2000 4:33 AM
Subject: Is there any way to send an Email with an attachment !
> Hi,
>
> I am using Java Mail API for sending mail. Is there any method or
something
> to send a email with an attachment?
> Please refer s
0 4:33 AM
Subject: Is there any way to send an Email with an attachment !
> Hi,
>
> I am using Java Mail API for sending mail. Is there any method or
something
> to send a email with an attachment?
> Please refer some
you have to make a multi-part message and set the second part of it as
the file. construct the rest of the message as normal(from, to, etc.):
MimeMessage msg = new MimeMessage(session);
MimeBodyPart mimepart1 = new MimeBodyPart();
mbp1.setText(msgText1);
MimeBodyPart mimepart2 = new MimeBody
Hi,
I am using Java Mail API for sending mail. Is there any method or something
to send a email with an attachment?
Please refer some site name.
Thanks,
Bhuvana
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signo