I am sending emails using utl_mail.send(), and it is possible that some of the people that come through my cursor will not have email address's or will have invalid emails. I am having trouble finding out what exceptions I can use to make sure that my procedure doesnt bomb when it encounters one of these null emails. Example:
.....
procedure sendEmail --subroutine of my procedure
BEGIN
utl_mail.send(sender => email_from,
recipients => email_adr,
subject => email_subject,
mime_type => 'text/html',
message => email_body);
--EXCEPTION SHOULD GO HERE
END;
....
WHILE CURSOR%FOUND THEN
LOOP
IF ..... THEN
sendEmail;
END IF;
....
END LOOP;
This might be confusing, but please ask questions if you have any. Thanks for the help.