Re: Attach a file in UTL_SMTP

From: ellie <ellie_java_at_yahoo.com>
Date: 17 Jul 2003 16:06:23 -0700
Message-ID: <211b7db3.0307171506.e5f0c2_at_posting.google.com>


"Anna C. Dent" <anacedent_at_hotmail.com> wrote in message news:<BTkRa.453$Ne.16_at_fed1read03>...
> Jorge Pinto wrote:
> > Hello folks,
> >
> > I'm trying to use my send_mail procedure to attach a file and send the email
> > to the user using utl_smtp. I got the attachment file but it was my message
> > body and not my file that I wanted to. Any ideia what I'm doing wrong ?
> >
> > I tried to use the following code
> > utl_smtp.write_data(conn, 'Content-Disposition : attachment; filename="'||
> > p_filename ||'"' || utl_tcp.CRLF);
> >
> > Thanks in advance,
> >
> > JP
>
> You need to manually & properly MIME format the message.

As far as I know, UTL_SMTP package doesn't support file attachments, but you can use javamail to send emails with file attachments! Received on Fri Jul 18 2003 - 01:06:23 CEST

Original text of this message