Sending mail in oracle to multiple receipients

I am using 8.1.6 oracle database and I would like to send a mail to mutiple receipients with attachement. How do i acheive this. Where can i get the sample code for this
hiswapnaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rockiroadsCommented:
I dont have examples handy but what you could make use of is UTL_STMP

Are you going to send via PL/SQL procedures I assume

here are some example sites that demonstrate use of it
http://www.oracleutilities.com/Packages/utl_smtp.html
http://www.psoug.org/reference/utl_smtp.html
http://www.quest-pipelines.com/newsletter-v2/smtp.htm
rockiroadsCommented:
urm, spelling mistake. thats UTL_SMTP

For multiple recipients, if not catered for by UTL_SMTP, I guess you can delimit names with semi colons when specifying who to send to.

An example dug up from searchtarget.oracle.com

CREATE OR REPLACE
PROCEDURE
          send_mail (sender    IN VARCHAR2,
                     recipient IN VARCHAR2,
                     message   IN VARCHAR2,
                     nStatus   OUT NUMBER)
IS
    mailhost    VARCHAR2(30) := 'email.hai.iec.co.il'; -- host mail addr
    mail_conn  utl_smtp.connection;
BEGIN
    nStatus := 0;
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
EXCEPTION
    WHEN OTHERS THEN
        nStatus := SQLCODE;
END send_mail;
/


Regarding attachments. Ive not done it but have a look at this  http://home.clara.net/dwotton/dba/oracle_smtp.htm
hiswapnaAuthor Commented:
Hello

thanks for the response but how do i send to multiple receipients
rockiroadsCommented:
for multiple recipients, have a look at this

search for Unable to send HTML to multiple recipients
rockiroadsCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.