Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why am I not able to send mail by using DBMS_SCHEDULER?

Mark1970Jul 17 2014 — edited Jul 17 2014

Hi,

I've delevoped a stored procedure that sends a mail by using HTMLDB_MAIL.SEND (I've been developing on APEX) and when I run it, it works and sends the mail to my account.

But if I try to schedulate it, it doesn't work, I mean it doesn't send the mail but I'm sure that I haven't written nothing wrong because if instead of launching the procedure I run another one which simply inserts a value on a table, it works correctly.

I try to write the job:

BEGIN

DBMS_SCHEDULER.CREATE_JOB (

   job_name           => 'SCHED_AVVISO_COMP_CONSUNTIVI',

   job_type             => 'STORED_PROCEDURE',

   job_action         => 'PRC_AVVISO_COMPILAZ_CONSUNTIVI',

   start_date  =>  to_date('17-07-2014 08:47:00','dd-mm-yyyy hh:mi:ss'),

   repeat_interval    => 'FREQ=DAILY',

   enabled              =>  TRUE,

   comments          => 'Comunica a tutti di compilare il consuntivo on line');

END;

/

Thanks in advance!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2014
Added on Jul 17 2014
7 comments
2,249 views