commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <>
Subject Re: [NET] adding attachment to SMTP
Date Tue, 19 Sep 2006 19:14:13 GMT

In message <>, Mark w
>can someone help me out.  I am trying to attach a file to a mail
>message using and cannot figure it out.  Where can I find
>documentation or an example?

The package provides only the means to
interact with the SMTP protocol.  It is not intended to provide
message assembly functionality.  You need to use another library that
allows you to assemble MIME messages; then you can send the message
with SMTPClient.  For especially large attachments, a library that
supports streaming the message to a (used in conjunction
with sendMessageData()) instead of buffering it all in memory first
will be the most efficient.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message