Hi all I wrote a procedure to send email via plsql procedure, It was compiled successfully but not working ....
here is the code (actuly i added the dbms output like step1 ,step 2 to see in which step the control is going on )
Code
mailhost
VARCHAR2(64) := 'mail.cmcltd.com';
sender
VARCHAR2(64) := 'akash.sharma@cmcltd.com';
recipient
VARCHAR2(64) := 'lalit.mohan@cmcltd.com';
mail_conn
:= UTL_SMTP.open_connection
(mailhost
, 25);
-- If we had the message in a single string, we could collapse
-- open_data(), write_data(), and close_data() into a single call to data().
UTL_SMTP.write_data
(mail_conn
, 'This is a test message.' || CHR(13));
UTL_SMTP.write_data
(mail_conn
, 'This is line 2.' || CHR(13));
/
Copyright GeekInterview.com
SQL> exec send_test_message
Step:1
Step:2
Step:3
Step:4
not executed i m in exeption
please advise
thanks
PL/SQL Procedure Send mail problem
here is the code (actuly i added the dbms output like step1 ,step 2 to see in which step the control is going on )
SQL> exec send_test_message
Step:1
Step:2
Step:3
Step:4
not executed i m in exeption
please advise
thanks
Questions by lalit4untl answers by lalit4untl
Related Answered Questions
Related Open Questions