Mail me on [email protected] or post here on C-Sharpcorner.com i saw some material on this url.
http://www.globalguideline.com/db/Send_Email_From_An_Oracle_Procedure_Using_UTL_SMTP.php
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijaya KadiyalaPosted Apr 22, 2009, 3:57 PM
Hi Ali,
Didn't quite understand!!! You only posted the answer also!!
ramesh pPosted Apr 21, 2009, 4:05 AM
e_mail_message
(
from_name varchar2,
to_name varchar2,
subject varchar2,
message varchar2
) is
l_mailhost VARCHAR2(64) := 'burleson.cc'; l_from VARCHAR2(64) := '[email protected]'; l_to VARCHAR2(64) := '[email protected]'; l_mail_conn UTL_SMTP.connection; BEGIN l_mail_conn := UTL_SMTP.open_connection(l_mailhost, 25); UTL_SMTP.helo(l_mail_conn, l_mailhost); UTL_SMTP.mail(l_mail_conn, l_from); UTL_SMTP.rcpt(l_mail_conn, l_to); UTL_SMTP.open_data(l_mail_conn); UTL_SMTP.write_data(l_mail_conn, 'Date: ' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') || Chr(13)); UTL_SMTP.write_data(l_mail_conn, 'From: ' || l_from || Chr(13)); UTL_SMTP.write_data(l_mail_conn, 'Subject: ' || l_subject || Chr(13)); UTL_SMTP.write_data(l_mail_conn, 'To: ' || l_to || Chr(13)); UTL_SMTP.write_data(l_mail_conn, '' || Chr(13)); FOR i IN 1 .. 10 LOOP UTL_SMTP.write_data(l_mail_conn, 'This is a test message. Line ' || To_Char(i) || Chr(13)); END LOOP; UTL_SMTP.close_data(l_mail_conn); UTL_SMTP.quit(l_mail_conn); END;
Ali GGLPosted Sep 18, 2007, 5:02 AM
for details visit.
http://www.globalguideline.com/db