PL/SQL (MOSC)

MOSC Banner

Issue with utl_mail

edited May 18, 2016 10:26AM in PL/SQL (MOSC) 8 commentsAnswered ✓

Oracle 11.2.0.4 SE-One, 64-bit  

Oracle Linux 5

Given this bit of code:

<snip>
v_msg varchar2(32000);
<snip>
-- -------------------------------------------------------------------------
--   Email the results
-- -------------------------------------------------------------------------
if v_usrcnt > 0 then
-- -- DEBUG CODE -
  dbms_output.put_line('Sending Mail');
  dbms_output.put_line('Count: '||
                       to_char(v_usrcnt)||
                       '.  Length: '||
                       to_char(length(v_msg)));
-- -- END DEBUG CODE -

   sys.utl_mail.send (sender       => v_sender,
                      recipients   => v_recipients,
                      subject      => v_subject,
                      message      => v_msg
                    );
-- -- DEBUG CODE -
  dbms_output.put_line('Sent Mail');
-- -- END DEBUG CODE -
end if;

I am getting this output:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center