Email facility in Oracle 9i?

Is there an email facility in Oracle 9i..
If so, how can this be done.. very new to this package
Thanks
Shameen

First, technical questions need to be addressed to a technical forum. Products | Database | SQL & PL/SQL would be appropriate for this question.
There is a database package utl_smtp that can be used to send email from an Oracle database.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • How to implement email facility in PL/SQL programs.

    Is there any Oracle package which supports email facility?
    I have some dbms automatic jobs fires every half hour, in case there is any failure in the process I would like to send an email to user or the person who is running the job.
    Can some body tell me how to implement it in PL/SQL?????????????

    You might find this article useful..
    visit..
    http://www.oracle.com/oramag/code/tips2000/090400.html

  • How do I use my Email facility

    I am a new Blackberry user and being of advanced years find some of the new technology difficult to understand.  I have now posted 3 questions on this forum and have been delighted with the help I have received.
    My 4th question is as follows:
    I have now updated the phone from my service provider (Orange) and now have an "Orange World" browser which gives me access to the internet and with this I have no problems.
    From the same source I also have an Email facility and would appreciate some help. 
    I have 2 email addresses one is @demon.co.uk and the other is @virgin.net.  I do not want any more.  When I am away from home I would like to be able to redirect my incoming Emails to my Blackberry and be able to reply to them by Blackberry but when I am back home receive them on my desktop as normal.
    Is this possible and if so how do I set it up?
    oldwulf
    Solved!
    Go to Solution.

    You don't need to worry about BB fetching all emails and leaving none on the server for you to download via your regular email client on the computer. The way BB's mail service is (normally) working is to push a copy of the email to your handheld device, while leaving a copy on the server. Now, if this wold prove to be untrue, there's bound to be a setting for always leaving a copy. Log in to your email settings page via a web browser on the computer, to familiarize yourself with the options. To get there, you might need to have a word with your operator. In my case, they didn't know, but using the url: operatorname.blackberry.com did the trick. You can also do this from the bb phone, and you need to set up a user login.
    The second part of your question is about syncronizing your email box on the computer with the inbox on the phone. I don't have a straight answer but there are ways to do it. For example, when you download email to your computer it is usually done via a protocol called POP. If you can change this to another protocol, called IMAP, it will synch the inbox folders on every client you are using with the email server so that you never have to read an email twice. But that is if your ISP / email provider can enable this. And having said that, I'm pretty sure there is a smarter way, let's leave room for someone else to provide a better answer.

  • Corrupt email facility

    My Nokia 6230 was sending and receiving email from my ISP Wanadoo with no problems until last weekend when, apparently, Orange undertook changes to its servers. I now get "Invalid File" when I key Messages/Email. Orange have checked my settings and I have downloaded new Nokia settings with no avail. Any ideas anyone?

    First, technical questions need to be addressed to a technical forum. Products | Database | SQL & PL/SQL would be appropriate for this question.
    There is a database package utl_smtp that can be used to send email from an Oracle database.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Error on Workflow email notification in oracle 11.5.10.2

    Anyone seen similiar error on Workflow email notification in oracle 11.5.10.2
    UNEXPECTED:[fnd.wf.bes.server.SystemLoader.getLocalSystem]:Caching disabled due to JTF exception: oracle.apps.jtf.base.resources.FrameworkException: CacheComponent not registered (KEY=FND_BES_SYSTEM_CACHE) (APP=FND)
    UNEXPECTED:[fnd.wf.bes.server.AgentLoader.getAgent]:Caching disabled due to JTF exception: oracle.apps.jtf.base.resources.FrameworkException: CacheComponent not registered (KEY=FND_BES_AGENT_CACHE) (APP=FND)

    I do not see any similar issues reported in MOS website that could be relevant to Workflow.
    Can you find any errors in the database log file?
    Please run the diagnostics scripts in these docs and see if it helps.
    Troubleshooting Oracle Workflow in Applications 11i [ID 262011.1]
    11i: Oracle Workflow Cartridge (WF): Workflow Java Mailer Diagnostic Test [VIDEO] [ID 1148948.1]
    11i: Oracle Workflow Cartridge (WF): Workflow Health Check Diagnostic Test [VIDEO] [ID 1148953.1]
    11i : Oracle Workflow Cartridge Workflow Java Mailer Setup Test [ID 274764.1]
    If the diagnostics scripts did not help then I would suggest you log a SR.
    Thanks,
    Hussein

  • IMPORT EMAILS BODY INTO ORACLE TABLE ;;; PLS HELP ME

    Hi Every Body,
    I would like to import the body of some Emails into one Oracle table in PLSQL Language,
    Can Someone help me and tell me how to do it?
    Thank you very much
    W

    Where is the email stored? If on the file system, you can use UTL_FILE to open the file.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#ARPLS069

  • Help sending out long email message from ORACLE PL/SQL

    Hello,
    I need help sending out long email message from ORACLE PL/SQL.
    My message(email body) contains about 4000 characters and comes out truncated somewhere on the middle.
    My business requirements do not allow me to send it as attachment.
    I am using oracle utl_smtp package and on oracle 10gR2.
    Is it possible to send out long text message from Oracle?
    Thanks!
    Ia

    Thank you very much for your responses.
    Even if I use email procedure below my message is getting truncated.
    Here is how I am trying to execute the procedure from sql plus:
    DECLARE
    P_SENDER VARCHAR2(32767);
    P_RECIPIENT VARCHAR2(32767);
    P_SUBJECT VARCHAR2(32767);
    P_BODY VARCHAR2(32767);
    BEGIN
    P_SENDER := 'xxxx@yyy';
    P_RECIPIENT := 'xxxx@yyy';
    P_SUBJECT := 'long text message';
    P_BODY :=
    '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    9 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    10 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    11 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    12 34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    21 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789';
    EMAIL ( P_SENDER, P_RECIPIENT, P_SUBJECT, P_BODY );
    COMMIT;
    END;
    SQL> @long_sp;
    PL/SQL procedure successfully completed.
    The email message is:
    long text message
    xxx@yyyy
    Sent:     Tuesday, May 25, 2010 6:52 AM
    To:     
    xxx@yyyy
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 9 12345678901234567890123456789012345678901234567890123456789012345678901234
    Message is getting truncated around 1000 characters.
    What am I doing wrong?
    Please help!
    Thanks!!

  • Regarding Email facility in webshop

    Hi
    We have implemented a B2B webshop and want to enable the email facility. What we do is we click on the "email" facility in the customer support in the "Help" section of the webshop. When we click on the send button, it gives an acknowledge ment that "email could Not be sent". We have done the necessary configuration in lwcconfig component in XCM. We are using CRM 4.0.
    Help would be appreciated.
    Regards

    Hi
    Can you please forward me that solution, I am also facing the same issue in my company
    Thanks
    Abhi

  • SENDING MASSIVE EMAILS FROM AN  ORACLE FORM

    Has anybody been able to send large amounts of email from an Oracle form,
    say 9,000 or more eamil addresses?
    I have been able to go in access MICROSOFT OUTLOOK, open up a new email
    message and have the recipient line preformatted with less than two thousand
    email addresses but I get an error when I try to preformat the the recipient line
    with more than four thousand email addresses.
    The error that I get is ORA-06502 AND FRM-40735.
    Does anybody have any ideas?

    Mail transport protocols may well be capable of handling an email message having nine thousand recipients, but your mail client, mail server, or organizational policies will likely introduce limits of their own, never mind the artificial constraints imposed by Oracle datatypes. If your requirements permit the approach of sending multiple messages of, say, one thousand recipients each, I would suggest that. If not, I would suggest re-evaluating your requirements -- refusing to define some reasonable threshold is asking for trouble.

  • CALLING  EMAIL FROM AN ORACLE FORM

    HOW CAN YOU BRING UP EMAIL IN AN ORACLE FORM? I WANT THE USER TO SEE THEIR EMAIL MESSAGE. WHAT TYPE OF CODE DO I NEED TO USE TO DO THIS? CAN THIS CODE BE PUT IN A WHEN BUTTON PRESSED TRIGGER.

    Please post your question to the FOrms page - and click on the forums link
    otn.oracle.com/products/forms
    Regards
    Grant Ronald

  • Facility into Oracle report 9i for Calendar

    Is there any facility into Oracle report builder 9i for Calendar object?

    Hi,
    there is no any opition in oracle report 9i for Calendar if u wanna add Calandar object in ur report 9i then make report parameter form in form9i then add calandar object in forem 9i then call ur report from that parameter form bcoze in form 9i u have opition to add calendar object
    Rizwan

  • Need to add extra lines in email generating from oracle

    Hi!
    I am using Oracle 9i Enterprise Edition 9.2.0.6
    I am facing a problem while generating the email from Oracle
    Problem is that I want to display the data in following format
    Terminal Statistics From: 30-MAR-2008 15:39:00 To: 06-JUN-2008 16:59:00
    Containers Examined
    Export: 2
    Import: 30
    but email shows data in following format
    Terminal Statistics From: 30-MAR-2008 15:39:00 To: 06-JUN-2008 16:59:00 Containers Examined Export: 2 Import: 30
    System combines the all the data in one line, while I have used following function to add new line when and where needed, but unable to get my desired result.
    1. utl_tcp.CRLF
    2. chr(130) || chr(10)
    3. chr(10)
    I have used following procedure to generate the email.
    PROCEDURE send_html_email(
    p_module_name in varchar2,
    p_subject in varchar2,
    p_text in varchar2 default null,
    p_html in varchar2 default null
    IS
    l_boundary varchar2(32767) default 'a1b2c3d4e3f2g1';
    l_connection utl_smtp.connection;
    l_body_html clob := empty_clob; --This LOB will be the email message
    l_offset number;
    l_ammount number;
    l_temp varchar2(32767) default null;
    l_to varchar2(100);
    l_cc varchar2(100);
    l_bcc varchar2(100);
    t_v_stpt Number:=0;
    t_v_endpt Number:=0;
    c_v_stpt Number:=0;
    c_v_endpt Number:=0;
    b_v_stpt Number:=0;
    b_v_endpt Number:=0;
    l_subject varchar2(255);
    BEGIN
    /*Function to retrieve the E-mail recipients list according to the Module/application*/
    mail_recipient(p_module_name,l_to,l_cc,l_bcc);
    l_connection := utl_smtp.open_connection( pk_parameter.setting('MAILSVR'), 25 );
    utl_smtp.helo( l_connection, pk_parameter.setting('MAILSVR') );
    utl_smtp.mail( l_connection, pk_parameter.setting('MAILFROM') );
    l_temp := l_temp || 'MIME-Version: 1.0' || chr(13) || chr(10);
    LOOP
    t_v_stpt := t_v_stpt + 1;
    t_v_endpt := INSTR (l_to, ',', t_v_stpt, 1);
    IF l_to is null then
    EXIT;
    ELSIF t_v_endpt = 0 THEN
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_to, t_v_stpt));
    EXIT;
    ELSE
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_to, t_v_stpt, t_v_endpt -t_v_stpt));
    END IF;
    t_v_stpt := t_v_endpt;
    END LOOP;
    LOOP
    c_v_stpt := c_v_stpt + 1;
    c_v_endpt := INSTR (l_cc, ',', c_v_stpt, 1);
    IF l_cc is null then
    EXIT;
    ELSIF c_v_endpt = 0 THEN
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_cc, c_v_stpt));
    EXIT;
    ELSE
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_cc, c_v_stpt, c_v_endpt -c_v_stpt));
    END IF;
    c_v_stpt := c_v_endpt;
    END LOOP;
    LOOP
    b_v_stpt := b_v_stpt + 1;
    b_v_endpt := INSTR (l_bcc, ',', b_v_stpt, 1);
    IF l_bcc is null then
    EXIT;
    ELSIF b_v_endpt = 0 THEN
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_bcc, b_v_stpt));
    EXIT;
    ELSE
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_bcc, b_v_stpt, b_v_endpt -b_v_stpt));
    END IF;
    b_v_stpt := b_v_endpt;
    END LOOP;
    /*Header creation for email.*/
    IF l_to is not null or l_cc is not null or l_bcc is not null THEN
    l_temp := l_temp || 'To: ' || l_to || chr(13) || chr(10);
    l_temp := l_temp || 'CC: ' || l_cc || chr(13) || chr(10);
    l_temp := l_temp || 'BCC: ' || l_bcc || chr(13) || chr(10);
    l_temp := l_temp || 'From: ' || pk_parameter.setting('MAILFROM') || chr(13) || chr(10);
    l_temp := l_temp || 'Subject: ' || p_subject || chr(13) || chr(10);
    l_temp := l_temp || 'Reply-To: ' || pk_parameter.setting('MAILFROM') || chr(13) || chr(10);
    l_temp := l_temp || 'Content-Type: multipart/alternative; boundary=' ||
    chr(34) || l_boundary || chr(34) || chr(13) ||
    chr(10);
    -- Write the headers
    dbms_lob.createtemporary( l_body_html, false, 10 );
    dbms_lob.write(l_body_html,length(l_temp),1,l_temp);
    -- Write the text boundary
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    l_temp := '--' || l_boundary || chr(13)||chr(10);
    l_temp := l_temp || 'content-type: text/plain; charset=us-ascii' ||
    chr(13) || chr(10) || chr(13) || chr(10);
    dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
    -- Write the plain text portion of the email
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(p_text),l_offset,p_text);
    -- Write the HTML boundary
    l_temp := chr(13)||chr(10)||chr(13)||chr(10)||'--' || l_boundary ||
    chr(13) || chr(10);
    l_temp := l_temp || 'content-type: text/html;' ||
    chr(13) || chr(10) || chr(13) || chr(10);
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
    -- Write the HTML portion of the message
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(p_html),l_offset,p_html);
    -- Write the final html boundary
    l_temp := chr(13) || chr(10) || '--' || l_boundary || '--' || chr(13);
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
    -- Send the email in 1900 byte chunks to UTL_SMTP
    l_offset := 1;
    l_ammount := 32767;
    utl_smtp.open_data(l_connection);
    while l_offset < dbms_lob.getlength(l_body_html) loop
    utl_smtp.write_data(l_connection, dbms_lob.substr(l_body_html,l_ammount,l_offset));
    l_offset := l_offset + l_ammount ;
    l_ammount := least(32767,dbms_lob.getlength(l_body_html) - l_ammount);
    end loop;
    utl_smtp.close_data(l_connection);
    utl_smtp.quit( l_connection );
    dbms_lob.freetemporary(l_body_html);
    END IF;
    END;
    Following procedure calls the above function and generate the email
    PROCEDURE generate_statistics
    IS
    l_minutes NUMBER:=0;
    l_sub_type cg_ref_codes.rv_meaning%type;
    l_gate_text VARCHAR2(5000);
    l_ves_text VARCHAR2(5000);
    l_exm_text VARCHAR2(5000);
    l_email_text VARCHAR2(5000);
    l_gate_tot NUMBER:=0;
    l_load_tot NUMBER:=0;
    l_discharge NUMBER:=0;
    l_exm_tot NUMBER:=0;
    /*Declare Cursor to get Examined Containers Summary*/
    CURSOR cur_examined_ctrs IS
    SELECT decode(eu.category,'I','Import','E','Export') Category, count(*) Total
    FROM service_events se, equipment_uses eu
    WHERE se.performed BETWEEN round(sysdate-l_minutes/1440,'mi')
    AND round(sysdate,'mi')
    AND se.tserv_id IN ('EXM')
    AND eu.gkey = se.equse_gkey
    AND eu.category IN ('I','E')
    GROUP BY eu.category;
    BEGIN
    /*Retrieve parameterized minutes*/
    l_minutes := nvl(pk_parameter.setting('STATSGMI'),0);
    /*Assign Values to generate email*/
    l_email_text := 'Terminal Statistics From: '||
    to_char(round(sysdate-l_minutes/1440,'mi'),'DD-MON-RRRR HH24:MI:SS')||
    ' To: '||to_char(round(sysdate,'mi'),'DD-MON-RRRR HH24:MI:SS')||
    chr(13) || chr(10)||chr(13) || chr(10);
    l_exm_text := 'Containers Examined'||utl_tcp.CRLF;
    FOR rec_examined_ctrs IN cur_examined_ctrs LOOP
    /*Generate Text for email - Vessel Activity Crane Wise Starts*/
    l_exm_text := l_exm_text ||rec_examined_ctrs.category ||': '||
    rec_examined_ctrs.total||utl_tcp.CRLF;
    l_exm_tot := l_exm_tot + rec_examined_ctrs.total;
    END LOOP;
    l_email_text := l_email_text||l_exm_text;
    pk_kictl_email.send_html_email('TERM STATISTICS',
    'Terminal Statistics Report',
    l_email_text,
    l_email_text
    END;
    I have been searching the reason and solution on net since last 2 days but hasn't find it yet.
    would anybody plz help me regarding this.
    Thanks
    Hassan

    I checked your suggestions after week end today and found that
    the suggestion of Nalla did not provide the result in my required format
    rewrite it as l_email_text := l_email_text||CHR(10)||l_exm_text;
    Peter & Krithika:
    I used html tag <BR> when and where needed and its gave me result in my required format
    e.g.: l_exm_text := l_exm_text ||'<br>'||rec_examined_ctrs.category ||': '||
    rec_examined_ctrs.total;
    Now I want to know if there any html tag thru which I can define the column number so that my text will start from there.
    means any html tag replacement of lpad (oracle funtion):
    Thanks
    Hassan

  • Setting Message-ID email header from Oracle B2B backend in 11g

    Hi,
    Is it possible to set the Message-ID from the backend application via JMS header? Is there a JMS header exposed to set this message id in case of email transport? Will the email server able to honor this value that we set and send to Oracle B2B in 11g and send it as the email header (Message-ID)? Is this possible?
    The idea here is if my backend application can set this Message-ID value of the request message, then the response message which would be a reply to the initial message will have the value of the Message-ID in the property in-reply-to. Now if this in-reply-to is also exposed an a JMS header to the backend application, then i will be able to co-relate the request and the response messages.
    Please let me know at the earliest if this would be possible.
    Regards
    Kavitha

    Kavitha,
    Is it possible to set the Message-ID from the backend application via JMS header? Yes, please set the MSG_ID header (jca.jms.JMSProperty.MSG_ID). It will be used as Message-ID in Wire Message.
    , then i will be able to co-relate the request and the response messages.Generic Mail does not support correlation as of now. You may consider logging an enhancement request with support. If you are exchanging XML messages then you may consider using content based correlation at B2B.
    Regards,
    Anuj

  • One Time Password (OTP) on mobile/email required in Oracle Apps R12

    Dear All,
    Good Day! Hope you all are doing well.
    My management needs OTP on mobile/email for log-in into Oracle APPs R12 for some key users in our Organization.
    Let me explain the requirement is detail, When user log-in to oracle apps by entering his/her user name and password then system send an email or send sms on mobile for One time password. When user provide this OTP then he is able to log-in to the Oracle Apps.
    Any body have some idea then please guide.
    Regards,
    Saquib.

    Hi,
    Based on our experience, if the NTLM error occurs, please check the password.
    Regards,
    Mike
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • What is use of Rewind facility in Oracle workflow ?

    Hi Guys I am new to Oracle Workflow ... I have few doubts on Rewind facility in Workflow as follows ...
    Please spare some time to respond back ... Thanks in advance
    1. What is the Use of Rewind option ?
    2. Whats scenario we shoudl use it ?
    3. What are advantages of it ?
    4. What are the drawbacks of it ?
    5. Any other details to know more it ?
    Raghu

    1) it will 're-start' a Workflow at any Function in the Flow, even all the way back to the first Start.
    2) At one point certain of our SSHR changes would error on Event Alert triggers. Rewinding would successfully save the data. Another use is when a change errors because of termed Supervisors. After the Supervisor has been corrected, rewinding will allow the change to progress.
    3) it means there may be a way to recover a FLow
    4) Doesn't always recover the Flow
    5) not really; try it out in test environment

Maybe you are looking for