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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ali GGL6 reputationPosted Sep 18, 2007, 1:02 AM EDT
for details visit.
http://www.globalguideline.com/db
ramesh p66 reputationPosted Apr 21, 2009, 12:05 AM EDT
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;
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 22, 2009, 11:57 AM EDT
Hi Ali,
Didn't quite understand!!! You only posted the answer also!!