Re: Attach a file in UTL_SMTP

From: Anna C. Dent <anacedent_at_hotmail.com>
Date: Wed, 16 Jul 2003 16:06:10 -0700
Message-ID: <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. Received on Thu Jul 17 2003 - 01:06:10 CEST

Original text of this message