Hi all,
I am trying to send mails in my PL SQL batch using UTL_MAIL.

Here is the structure of my code:
Code:
 create procedure xyz is
cursor definition
begin
for 1..cursor_count loop
mail_content:= '  .....  '; -- mail content for managers
UTL_MAIL.SEND(SENDER      =>						         RECIPIENTS =>					         SUBJECT     =>						         MESSAGE    => mail_content,
                      MIME_TYPE => 'text/html; charset=us-ascii');

mail_content:= ' ';  -- setting mail_content to blank.
mail_content:= ' ...';  -- for employees
UTL_MAIL.SEND(SENDER     => 						         RECIPIENTS =>					         SUBJECT    => 						         MESSAGE    => mail_content,
                      MIME_TYPE  => 'text/html; charset=us-ascii');
end loop;
end;

This seems fine, but when I tested it, I got some rare outputs.
Some mails were having recepient and subject of manager mail and mail content of employee mail..
But I am clearing the mail_content before sending mail to employees.
Is this a problem with my code or a bug in smtp ?
Please help.