Sending mail in Oracle 8i

Hi,
I am trying to send an email in Oracle 8i Personnel edition, but have encountered problems with the UTL_SMTP package. I have a stored procedure to send mail, but when I run this procedure, I get the following error messages:
ORA-20001: 421 Service not available
ORA-06512: at "SYSTEM.UTL_SMTP", line 83
ORA-06512: at "SYSTEM.UTL_SMTP", line 121
ORA-06512: at "SYSTEM.DEMO_MAIL", line 257
ORA-06512: at "SYSTEM.DEMO_MAIL", line 118
ORA-06512: at "SYSTEM.DEMO_MAIL", line 104
ORA-06512: at line 2.
Can anyone help??

If you can't access the utl_smtp package (you can also look from Oracle Developper by opening the Database node followed by the SYS node which will list the database packages), here is a quick example using OLE2:
DECLARE
objOutlook OLE2.OBJ_TYPE;
objArg OLE2.LIST_TYPE;
objMail OLE2.OBJ_TYPE;
BEGIN
objOutlook := OLE2.CREATE_OBJ('Outlook.Application');
objarg := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(objarg,0);
objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem',objarg);
OLE2.DESTROY_ARGLIST(objarg);
OLE2.SET_PROPERTY(objmail,'To','<emailaddress>');
OLE2.SET_PROPERTY(objmail,'Subject','Test email from Oracle Forms');
OLE2.SET_PROPERTY(objmail,'Body','This is a test sending mail from Oracle forms');
OLE2.INVOKE(objmail,'Display');  to display before sending
OLE2.INVOKE(objmail,'Send');
OLE2.RELEASE_OBJ(objmail);
OLE2.RELEASE_OBJ(objOutlook);
END;

Similar Messages

  • How to Send mail in oracle 10g

    I am new in oracle developer.....we are using oracle 10g developer...how to send mail through oracle 10g on a button click.pease help me.
    Thanks in advance

    This question have been asked many times on this forum, see if you get help from following:
    https://forums.oracle.com/message/5395438#5395438
    Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
    Check this out as well:
    http://nzchaudhry.wordpress.com/2013/05/31/send-report-via-email-attachment-in-oracle-forms-10g/
    You can find init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and on Windows under $ORACLE_HOME/database. Otherwise you can create it using "create pfile from spfile" command
    Aneel

  • Not able to send mail thru Oracle

    Hi all,
    I am using Oracle 9.2.0.6 on RHEL platform.....
    I am using the below procedure to send mail from oracle
    CREATE or REPLACE PROCEDURE SimpleTextMessage IS
        mailHOST    VARCHAR2(64) := '10.0.1.2';
        mailFROM    VARCHAR2(64);
        mailTO      VARCHAR2(64);
        mailCONN    utl_smtp.connection;
        mailDATE    VARCHAR2(20);
        vreply      utl_smtp.reply;
        vreplies    utl_smtp.replies;
        i           number;
    BEGIN
        mailFROM := '[email protected]';
        mailTO   := '[email protected]';
        SELECT TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS') INTO mailDATE FROM dual;
          dbms_output.put_line('open_connection');
          dbms_output.put_line('---------------');
          vreply := utl_smtp.open_connection(mailHOST, 25, mailCONN);
          dbms_output.put_line( 'code = ' || vreply.code );
          dbms_output.put_line( 'text = ' || vreply.text );
          dbms_output.put_line('help');
          dbms_output.put_line('----');
          vreplies := utl_smtp.help(mailCONN, 'HELP');
          for i in 1..vreplies.count loop
            dbms_output.put_line( 'code = ' || vreplies(i).code );
            dbms_output.put_line( 'text = ' || vreplies(i).text );
          end loop;
    vreply := utl_smtp.open_data(mailCONN);
          utl_smtp.write_data(mailCONN, 'Subject: '|| 'A subject' || chr(13));
          utl_smtp.write_data(mailCONN, 'From:    '||mailFROM     || chr(13));
          utl_smtp.write_data(mailCONN, 'Date:    '||mailDATE     || chr(13));
          utl_smtp.write_data(mailCONN, 'To:      '||mailTO       || chr(13));
          utl_smtp.write_data(mailCONN, 'CC:      '||mailFROM     || chr(13));
          utl_smtp.write_data(mailCONN, 'BCC:     '||mailFROM     || chr(13));
          utl_smtp.write_data(mailCONN,                              chr(13));
          utl_smtp.write_data(mailCONN, 'Hello Friend.'           || chr(13));
          utl_smtp.write_data(mailCONN, 'Drop me an e-mail.'      || chr(13));
          dbms_output.put_line('close_data');
          dbms_output.put_line('----------');
          vreply := utl_smtp.close_data(mailCONN);
          dbms_output.put_line( 'code = ' || vreply.code );
          dbms_output.put_line( 'text = ' || vreply.text );
          dbms_output.put_line('quit');
          dbms_output.put_line('----');
          vreply := utl_smtp.quit(mailCONN);
          dbms_output.put_line( 'code = ' || vreply.code );
          dbms_output.put_line( 'text = ' || vreply.text );
    END;
    /At the time of compilation i am not getting any error but when i call that proc i am getting the below error:
    SQL> exec cadata3.simpletextmessage();
    BEGIN cadata3.simpletextmessage(); END;
    ERROR at line 1:
    ORA-29277: invalid SMTP operation
    ORA-06512: at "SYS.UTL_SMTP", line 43
    ORA-06512: at "SYS.UTL_SMTP", line 279
    ORA-06512: at "CADATA3.SIMPLETEXTMESSAGE", line 29
    ORA-06512: at line 1can asomebody throw some light on the same....

    Still getting the same problem
    CREATE or REPLACE PROCEDURE SimpleTextMessage IS
        mailHOST    VARCHAR2(64) := '10.0.1.2:8443';
        mailFROM    VARCHAR2(64);
        mailTO      VARCHAR2(64);
        mailCONN    utl_smtp.connection;
        mailDATE    VARCHAR2(20);
        vreply      utl_smtp.reply;
        vreplies    utl_smtp.replies;
        i           number;
    BEGIN
        mailFROM := '[email protected]';
        mailTO   := '[email protected]';
        SELECT TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS') INTO mailDATE FROM dual;
          dbms_output.put_line('open_connection');
          dbms_output.put_line('---------------');
          vreply := utl_smtp.open_connection(mailHOST, 25, mailCONN);
          dbms_output.put_line( 'code = ' || vreply.code );
          dbms_output.put_line( 'text = ' || vreply.text );
          dbms_output.put_line('help');
          dbms_output.put_line('----');
          vreplies := utl_smtp.help(mailCONN, 'HELP');
          for i in 1..vreplies.count loop
            dbms_output.put_line( 'code = ' || vreplies(i).code );
            dbms_output.put_line( 'text = ' || vreplies(i).text );
          end loop;
    vreply := utl_smtp.close_data(mailCONN);
          utl_smtp.write_data(mailCONN, 'Subject: '|| 'A subject' || chr(13));
          utl_smtp.write_data(mailCONN, 'From:    '||mailFROM     || chr(13));
          utl_smtp.write_data(mailCONN, 'Date:    '||mailDATE     || chr(13));
          utl_smtp.write_data(mailCONN, 'To:      '||mailTO       || chr(13));
          utl_smtp.write_data(mailCONN, 'CC:      '||mailFROM     || chr(13));
          utl_smtp.write_data(mailCONN, 'BCC:     '||mailFROM     || chr(13));
          utl_smtp.write_data(mailCONN,                              chr(13));
          utl_smtp.write_data(mailCONN, 'Hello Friend.'           || chr(13));
          utl_smtp.write_data(mailCONN, 'Drop me an e-mail.'      || chr(13));
          dbms_output.put_line('close_data');
          dbms_output.put_line('----------');
          vreply := utl_smtp.close_data(mailCONN);
          dbms_output.put_line( 'code = ' || vreply.code );
          dbms_output.put_line( 'text = ' || vreply.text );
          dbms_output.put_line('quit');
          dbms_output.put_line('----');
          vreply := utl_smtp.quit(mailCONN);
          dbms_output.put_line( 'code = ' || vreply.code );
          dbms_output.put_line( 'text = ' || vreply.text );
    END;
    /error
    SQL> exec cadata3.simpletextmessage();
    BEGIN cadata3.simpletextmessage(); END;
    ERROR at line 1:
    ORA-29277: invalid SMTP operation
    ORA-06512: at "SYS.UTL_SMTP", line 43
    ORA-06512: at "SYS.UTL_SMTP", line 303
    ORA-06512: at "CADATA3.SIMPLETEXTMESSAGE", line 28
    ORA-06512: at line 1Edited by: user00726 on Jul 31, 2009 4:14 AM

  • Can we send mails using Oracle

    Hi Everybody,
    Can we send mails using Oracle (like java mail)?? Can I a write a procedure/stored procedure to send a mail if there is any change in the database tables
    null

    There are three Exchange portlets available for use with Portal 3.0.8.9.8 (inbox, calendar, contacts). They will be downloadable from the new Oracle9iAS Portal Partner Catalog which will be up at the end of March. If you wish to use these portlets before then, send me an email request and I will give them to you.

  • Sending mail from oracle procedure

    Hi Experts,
    I want to send mail from oracle Procedure. Anybody please help me out.
    Thanks.

    BEGIN
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected],[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'UTL_MAIL Test',
    message => 'If you get this message it worked!');END;

  • How send mail from Oracle stored procedure?

    Hi,
    I need send mail using Oracle stored procedure. Can anybody helpme with any recomendation about that, sample code or so?.
    [email protected]
    null

    Hi Raul Martinez
    utl_smtp package is available since oracle 8.1.6.
    If U have a older version then U can not.
    Thank U.
    edwin

  • ORA-29279: SMTP permanent error: To Send Mail from Oracle 10g (10.2.0.1)

    I have installed Oracle 10g (10.2.0.1) on Windows XP (SP2) machine at my home PC.There is a broadband connection on my home PC.I have installed UTL_MAIL package and then set SMTP_OUT_PARAMETER by the following SQL Statement.
    My machine IP address is 192.168.0.3
    SQl> alter system set smtp_out_server = 'smtp.bsnl.in:25' scope = 25;
    Then we run the following script.
    BEGIN
    UTL_MAIL.SEND(
    SENDER => '[email protected]',
    RECIPIENTS => '[email protected]',
    SUBJECT => 'Testing UTL_MAIL',
    MESSAGE => 'The receipt of this email means'||
    'that it works for UTL_MAIL'
    END;
    Then following error message comes.
    BEGIN
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 Authentication is required to send mail as
    <[email protected]>
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 222
    ORA-06512: at "SYS.UTL_MAIL", line 407
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    Can anybody suggest the solution of the above problem.

    Hi,
    is your smtp server configured to use anonymous connection?
    Attackwave
    Reply Code       Description
    211      System status, or system help reply
    214      Help message [Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user]
    220      <domain> Service ready
    221      <domain> Service closing transmission channel
    250      Requested mail action okay, completed
    251      User not local; will forward to <forward-path>
    252      OK, pending messages for node <node> started. Cannot VRFY user (for example, info is not local), but will take message for this user and attempt delivery.
    253      OK, <messages> pending messages for node <node> started
    354      Start mail input; end with <CRLF>.<CRLF>
    355      Octet-offset is the transaction offset
    421      <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down.)
    450      Requested mail action not taken: mailbox unavailable [for example, mailbox busy]
    451      Requested action terminated: local error in processing
    452      Requested action not taken: insufficient system storage
    453      You have no mail.
    454      TLS not available due to temporary reason. Encryption required for requested authentication mechanism.
    458      Unable to queue messages for node <node>
    459      Node <node> not allowed: reason
    500      Syntax error, command unrecognized (This may include errors such as command line too long.)
    501      Syntax error in parameters or arguments
    502      Command not implemented
    503      Bad sequence of commands
    504      Command parameter not implemented
    521      <Machine> does not accept mail.
    530      Must issue a STARTTLS command first. Encryption required for requested authentication.
    534      Authentication mechanism is too weak.
    538      Encryption required for requested authentication mechanism.
    550      Requested action not taken: mailbox unavailable [for , mailbox not found, no access]
    551      User not local; please try <forward-path>
    552      Requested mail action terminated: exceeded storage allocation
    *553      Requested action not taken: mailbox name not allowed [for example, mailbox syntax incorrect]*
    554      Transaction failed

  • Not Able to Send Mail in Oracle Apex

    Hello Apex Experts,
      I am using Amazon Cloud  with details as using Oracle Apex 4.1 and Oracle 11g as database using Glass Fish Server.
    Problem am facing is E-Mail are not working. I tried adding our company smtp address but still it is not working.
    In Oracle Apex Admin scree Under Manage Instance --> Instance Settings --> Email tryed adding ( localhost and 10.1.1.100 SMT address ) this didnt work
    I am using below code to send mail 
    Begin
    -- Send plain text email
      APEX_MAIL.SEND(
        P_TO       =>  '[email protected]',
        P_FROM     =>  '[email protected]',
        P_CC       =>  '[email protected]',
        P_BCC      =>  '[email protected]',
        P_SUBJ     => 'test',
        P_BODY     => 'test');
       apex_mail.push_queue('10.1.1.100', 25);
    End;
    SELECT * FROM APEX_MAIL_QUEUE;
    I get ORA-24247: network access denied by access control list (ACL) . I also see last_updated as SYS in the log
    Please suggest me how to fix this issue.
    Thanks
    Sudhir

    Hi Mike,
      Thanks for your reply, Let me give you a detail on where we are stuck on send mail.
       We have a Schema called PORTAL
      We are able to send mail from UTL_SMTP as mentioned below in a procedure
    create or replace PROCEDURE send_mail (p_to        IN VARCHAR2,
                                           p_from      IN VARCHAR2,
                                           p_message   IN VARCHAR2,
                                           p_smtp_host IN VARCHAR2,
                                           p_smtp_port IN NUMBER DEFAULT 25)
    AS
      l_mail_conn   UTL_SMTP.connection;
    BEGIN
      l_mail_conn := UTL_SMTP.open_connection(p_smtp_host, p_smtp_port);
      UTL_SMTP.helo(l_mail_conn, p_smtp_host);
      UTL_SMTP.mail(l_mail_conn, p_from);
      UTL_SMTP.rcpt(l_mail_conn, p_to);
      UTL_SMTP.data(l_mail_conn, p_message || UTL_TCP.crlf || UTL_TCP.crlf);
      UTL_SMTP.quit(l_mail_conn);
    END;
    Begin
    send_mail('[email protected]','[email protected]','test','10.0.0.100','25');
    End;
    The above code works i am able to send and receive mails.
    We also create ACL as mentioned below
    begin
    dbms_network_acl_admin.create_acl (
    acl => 'http_permission.xml', -- or any other name
    description => 'HTTP Access',
    principal => 'APEX_040100', -- the user name trying to access the network resource
    is_grant => TRUE,
    privilege => 'connect',
    start_date => null,
    end_date => null
    end;
    commit;
    SELECT * FROM dba_network_acl_privileges where principal='APEX_040100';
    begin
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
    principal => 'APEX_040100',
    is_grant => true,
    privilege => 'connect');
    end;
    commit;
    begin
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
    principal => 'APEX_040100',
    is_grant => true,
    privilege => 'resolve');
    end;
    commit;
    BEGIN
    dbms_network_acl_admin.assign_acl (
    acl => 'http_permission.xml',
    host => '10.1.1.100', /*can be computer name or IP , wildcards are accepted as well for example - '*.us.oracle.com'*/
    lower_port => 80,
    upper_port => 80
    END;
    But still we are getting same ACL Error Please suggest US
    ORA-24247: network access denied by access control list (ACL)
    Thanks
    Sudhir

  • Send mail from oracle database 10g

    Hi ,
    I need to send a test mail from oracle database 10g to my gmail account through a stored procedure .
    I will pass the list of recipents , subject and text of the mail through parameters .
    Can anyone give me the code of the storerd procedure please ,
    Thank you .

    hi, for example
    DECLARE
    mail_conn UTL_SMTP.connection;
    smtp_relay VARCHAR2(32) := '172.16.x.x';
    recipient_address VARCHAR2(64) := '[email protected]';
    sender_address VARCHAR2(64) := '[email protected]';
    mail_port NUMBER := 25;
    msg VARCHAR2(200);
    BEGIN
    mail_conn := UTL_SMTP.open_connection(smtp_relay,mail_port);
    UTL_SMTP.HELO(mail_conn, smtp_relay);
    UTL_SMTP.MAIL(mail_conn, sender_address);
    UTL_SMTP.RCPT(mail_conn, recipient_address);
    UTL_SMTP.DATA(mail_conn, 'Payment request iniated');
    UTL_SMTP.QUIT(mail_conn);
    end;

  • How to send mails from Oracle database

    Hi All,
    I want to send a mail from my oracle database once my store
    procedure runs successfully or fails.
    How can i do this.
    what are the preliminary modules of Oracle which need to be
    active for me to do so.
    If any once can also mention about any links that give
    information about the same it will be very helpful for me.
    Thanks and Regards
    Srinivas Chebolu

    CREATE OR REPLACE PROCEDURE SEND_MAIL_TCP(
    msg_from varchar2 := '[email protected]',
    msg_to varchar2,
    msg_subject varchar2 := 'E-Mail message from your database',
    msg_text varchar2 := '' )
    IS
    c utl_tcp.connection;
    rc integer;
    BEGIN
    c := utl_tcp.open_connection('1.17.0.218', 25); -- open the SMTP
    port 25 on local machine
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'HELO localhost');
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'MAIL FROM: '||msg_from);
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'RCPT TO: '||msg_to);
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'DATA'); -- Start message body
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'Subject: '||msg_subject);
    rc := utl_tcp.write_line(c, '');
    rc := utl_tcp.write_line(c, msg_text);
    rc := utl_tcp.write_line(c, '.'); -- End of message body
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'QUIT');
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    utl_tcp.close_connection(c); -- Close the connection
    EXCEPTION
    when others then
    raise_application_error(-20000,'Unable to send e-mail message
    from pl/sql');
    END;
    show errors
    exec send_mail(msg_to =>'[email protected]');
    exec send_mail(msg_to
    =>[email protected]',msg_text=>'Look Yaar, I can send
    mail from plsql');

  • Sending Mail from Oracle forms or reports

    Hi
    I have to send mail from forms or reports . Is there any way or builtin to do this.
    If anybody have experience in this please give the
    detailed example on this.
    Regards
    Arun

    Look at http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/maildemo_sql.txt
    It creates a package in the database for sending mail.
    If you want to send mail from the local machine using Outlook, you'll have to use OLE, but it's not something I've tried.

  • Sending mail from oracle

    Dear Expert's,
    When am executing this block, there are no any error. but mail can't received.
    So, please give me solution.
    DECLARE
    mailhost VARCHAR2 (64) := '000.000.000.000'; --SMTP Server IP (smtp port is 25)
    sender VARCHAR2 (64) := '[email protected]';
    recipient VARCHAR2 (64) := '[email protected]';
    mail_conn UTL_SMTP.connection;
    BEGIN
    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.open_data (mail_conn);
    UTL_SMTP.write_data (mail_conn, 'This is a test message.' || CHR (13));
    UTL_SMTP.write_data (mail_conn, 'This is line 2.' || CHR (13));
    UTL_SMTP.close_data (mail_conn);
    UTL_SMTP.quit (mail_conn);
    END;
    Edited by: Viveka Nand on Nov 17, 2011 2:35 AM

    Hi Vivek,
    Oracle 11g can support utl_mail package. But I don't know whether your organization is installed in server or not.
    If not please raise a request to your DBA and Installed it. Then you can use utl_mail package. While using this package, please note the following things.
    rerequisites:
    I need to execute these two scripts as sysdba;
    @$ORACLE_HOME/rdbms/admin/utlmail.sql;
    @$ORACLE_HOME/rdbms/admin/prvtmail.plb;
    Then I have to configure smtp server information in init.ora file . or spfile.
    smtp_out_server = 43.88.67.14:25
    Then execute this commond as sysdba;
    alter system set smtp_out_server = '43.88.67.14:25' scope=both;
    exec utl_mail.send(sender => '[email protected]',
    recipients => '[email protected]','[email protected]',
    subject => 'Testing Mail',
    message => 'Hi..This is a test mail');
    grant execute permission on UTL_MAIL package.
    eg: grant execute on utl_mail to <schema>;
    Note: you can't send to Gmail..yahoo..etc...This is with in your org.

  • Sending mail from oracle porcedures?

    Hi All,
    i am using personal oracle 8 is it possible to send a mail to a internet mail address?
    by using UTL SMTP packages ? if possible can anybody give me the procedures code ?
    Thanks in advance
    Reddy

    Tom Kyte has a number of rather extensive discussions on utl_smtp on his web site http://asktom.oracle.com. Here is one such thread http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:255615160805
    That should provide all the code you would want. The only wrinkle is that you need to ensure that there is an SMTP server available that your database can connect to. Free email services like Hotmail and Yahoo generally don't have SMTP servers and many companies run Exchange and don't provide internally visible SMTP servers.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How send mail when oracle instance went down

    Hi All,
    Please help me to configure email set in oracle standard edition so that it sends email whenever database /instance went down.
    Thanks in advance
    sankar

    user12994238 wrote:
    Many Thanks,
    Need a small clarification in the normal scenario it works, if shutdown the server without shutdown the database we not receiving the alert.
    is there any way i can configure alert mail for the instance shutdown (database is up and oracle instance is down) due to some unexpected reason.
    Thanks
    sankar"database is up and oracle instance is down"
    A very interesting concept. Given that a database is just the collection of files that are kept transactionally consistent, and the instance is the memory and processes that manage those files, could you explain what is meant by "database is up and oracle instance is down". If the instance is up it may (or may not, depending on its state) have the database (files) open. If the instance is not up, then the database is ???

  • How a send a mail from  Oracle   ----- urgent

    Hi,
    I am working in oracle9i and linux 2.4. i need to a send mail from oracle .Please send the procedure to me in a detail manner.
    I am having one procedure .plz check and change if possible...
    declare
    l_maicon utl_smtp.connection;
    begin
    l_maicon :=utl_smtp.open_connection('mail.com');
    utl_smtp.helo(l_maicon,'mail.com');
    utl_smtp.mail(l_maicon,'[email protected]');
    utl_smtp.rcpt(l_maicon,'[email protected]');
    utl_smtp.data(l_maicon,'From: [email protected]' || utl_tcp.crlf||
    'To: [email protected]' || utl_tcp.crlf ||
    'Subject: database e-mail option' || utl_tcp.crlf ||
    'You have received this mail from database!');
    utl_smtp.quit(l_maicon);
    end;
    Please explain me in detail
    Gobi....

    If I do a Google search on the terms "Oracle mail", this askTom thread is the second hit
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:255615160805
    Did you already find this thread? If so, did it not answer your question sufficiently?
    Additionally, it would be quite helpful if you would post the results of running the code you posted. You've given no indication whether there is an error, what error might be generated, whether you're not seeing the expected behavior, whether the code crashes your system, etc. That leaves us to guess about what problems you might have between syntax errors, permission problems, configuration problems on the database, configuration problems on the SMTP server, operating system problems, network problems (the list goes on).
    Justin

Maybe you are looking for

  • Clickwheel's not showing up in iTunes

    My wife and I both recently decided to add more music to our clickwheel ipods.  We haven't done this in at least a year.  She has a 30 GB and I have an 80 GB When we plug them into our computers, they do not appear at all in iTunes.  I have tried hoo

  • Essbase server does no appear in Shared Services

    Hi All, I've installed and set an EPM 11.1.2.2 environment under Win 2008 server with Oracle 11g database. I've installed and configurated Essbase Server, EAS, Essbase Stdudio, APS and EIS. But when I open up shared services the Analytic Server does

  • Outlook Calendar dates incorrect on icloud

    Using Outlook 2007 with icloud control panel on the PC running Windows 7.  Everything seems to sync okay, except some calendar events end up on the wrong day in the icloud and therefore propagate this wrong date to the ipad.  I do have a fairly high

  • Excel sheet download

    hi experts,    i need to shedule a report in back ground which has to download a excel sheet on my presentation server i know we cannot get it directly.   if we have done it to application layer how can we get it to presentation layer can we code it

  • A lot of CALL_FUNCTION_OPEN_ERROR in production environment

    Hello We have a lot of CALL_FUNCTION_OPEN_ERROR in our production environment. An error occurred when executing a Remote Function Call. "Protocol error when communicating with SAPGUI." Status of connection.... "RFC DRV=GUI INPUT" Internal error code.