Ok,

U must be having a program that sends the mail. In that program, U can read the
text attachment file/s, and append the message body with the contents..






G S Sundar <[EMAIL PROTECTED]> on 03/28/2001 02:16:06 PM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Amol Athavale/LTITLPUN)

Subject:  Re: Javamail in servelts - Doubt.



Hi Amol,

I don't have mail client or display servlet to show the message. So i can't
program
that part. I'm using Javamail only for sending the message. User can view this
mail
in any mail client, in this case i want to send the attachment content in the
mail
itself.
This is pretty simple in CGI/Perl. Just we can write our message and open the
attachment file and write line by line. Here also i tried the same but the
attachment content is not coming in the mail.

Regards
G S Sundaram

Amol Athavale wrote:

> Hi sundaram,
>
> I think it is pretty easy. If U are following any directory / file naming
> convention for attachments,  while showing the mail-display servlet/ program
all
> U have to do is access this file, open this file using the simple file i/o api
> and flush the contents either in a text-area or may be U can display directly
in
> the HML page.
>
> Amol
>
> G S Sundar <[EMAIL PROTECTED]> on 03/28/2001 01:20:49 PM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's Java
>       Servlet API Technology." <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Amol Athavale/LTITLPUN)
>
> Subject:  Re: Javamail in servelts - Doubt.
>
> Hello all,
> While sending the mail i want send only the content of the attachments(all my
> attachments are text files). I'm able to attach/send them as a file. So, the
> user
> should download the attachment to read or he/she has to click on the
attachment
> and it will open in a new window. It's working very fine.
> But i want to send only the content of the "attachment". The content should
> follow my message(eg. we are receiving some mails with attachments(JPEG, text
> content) in this mails the JPEG or text will appear after the actual message).
> This will allow the user to see the attachment content without
> downloading/opening in a new window.
>
> Hope it's nit clear now.
>
> Regards
> G S Sundaram
>
> Amol Athavale wrote:
>
> > Can U pl elaborate the problem statement?
> >
> > Amol
> >
> > G S Sundar <[EMAIL PROTECTED]> on 03/28/2001 12:08:19 PM
> >
> > Please respond to "A mailing list for discussion about Sun Microsystem's
Java
> >       Servlet API Technology." <[EMAIL PROTECTED]>
> >
> > To:   [EMAIL PROTECTED]
> > cc:    (bcc: Amol Athavale/LTITLPUN)
> >
> > Subject:  Javamail in servelts - Doubt.
> >
> > Hello All,
> >
> > I don't want to send the attachment as a file(I'm going to send always
> > text messages) i just want to send the content. I would like to write
> > the content in the mail itself.
> > Pls send your suggestions ASAP.
> > Thanx in advance..
> > Cheerz
> > G S Sundaram
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to