Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to populate SUBJECT in utl_smtp mail

Status
Not open for further replies.

Muskaan

Programmer
Oct 21, 2002
47
US
Hi,

I am trying to send mail using utl_smtp from a pl/sql block. The message comes through fine but with no subject. Does anyone know how can I populate that ?

Here is the code I am using:
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, 'from@xyz.com');

utl_smtp.rcpt(mail_conn,'abcd@xyz.com');
utl_smtp.data(mail_conn,mesg);
utl_smtp.quit(mail_conn);


Thanks in advance!

***Most problems are nothing but lack of ideas***
 
In the message text, I think you have to include the line

[tt]Subject: Your subject<cr>[/tt]

I believe this will work for To, From, CC etc. as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top