Test Email Notifications

Hi All,
In Version 9.3.1, inside Workspace, there is a provision in Notifications to test if emails are being sent properly through the SMTP configuration.
However, in Version 11.1.1.3, I could not find the same option in Notifications tab in Workspace.
Can someone please suggest on the same.
Thanks in advance!
Apo

My first test response for notifications

Similar Messages

  • How to test email notification is working or not without any exchange serve

    Hi,
    Please help me find a way to test email notification after user gets created in OIM and provisioned to OID. The requestro should get a mail that his request has been processed/approved.
    Thanks.

    Substituting corporate email server with something local like Argosoft is a good idea but not a 100% test since most problems occur when you talk to corporate email server.

  • Testing email notifications

    Will I get email notifications for this topic?

    If you started a thread in testing you are
    signed in to be notified . You have to unsubscribe
    to the forum and the thread. while in thread look to right in  little box  click on the receive email notications should toggle, if it looks like this before clicking.
    You unsubscribed from Forum in general by at top of screen and click on topic (in this example it would be Forum Comments)
    You should see a similar window Toggle there and you will be unsubcribed from the  Forum:
    Now you will unsubscribed to the Forum.
    Its done this was so that if you post in a particular forum you can set to stay subscribed to give thread without getting any other notifactions if you don't wish.

  • Testing email notification in workspace 11.1.1.3

    Hi All,
    I have been trying to test e mail notification on workspace. However there is no tab similar to Hyperion 9.3.1 which allowed testing e mail notifications. Please guide us.
    Thanks in advance.

    Hi,
    yeah have configured the alerter service already during the installation itself but even then we are facing the problem. Actually after configuring the alerter service, the alerter reports is showing that the mail has been trigerred and sent to the receipient mail id. But the receipient is not getting any such mails.Unable to figure out wer lies the exact problem.
    Thanks in advance

  • Email notifications not being received

    Email notifications are not being received every time a customers submits data. We stopped receiving notifications after the email came about shutting down the service. We have a half dozen forms live on the web and none of them are sending out notifications. One example is located at Online Complaint | ORCAA. Nothing has changed from the backend and both email addresses that should receive notifications are verified.
    I submitted data to the form and received a notification, but not the 2 email addresses that are listed on the FormsCentral backend. The Adobe domain is whitelisted with GApps.
    Thoughts?

    I've tested your form a bit and it seems that email receipts are working. For me to test email notifications I would need to be a co-author. If you can add me to one of the problem forms I will investigate further and let you know what I find.
    Andrew Yarborough
    [email protected]

  • Stopping email notifications post cloning

    Hi,
    I have a situation here. I have already cloned the Production and cloned instance is ready and running. For testing some notifications, i did the following so that all users doesn't get the notifications.
    a) Disabled all the alerts defined using Oracle Alerts
    b) update WF_NOTIFICATIONS set mail_status = 'SENT' where mail_status = 'MAIL';
    c) Used email overriding options and put my email id there.
    After doing all these I started the smtp service on the server. In spite of this, many users got mail from the TEST server. Did I miss something? How to prevent it completely and still retaining the capabilities of testing email notifications.
    Regards,
    qARS

    Please confirm that you have completed all the steps in these docs.
    Stop Workflow Notification Emails During Clone [ID 847889.1]
    How To Stop Old Outbound Workflow Notification Email Messages During Clone Activity [ID 828812.1]
    Also, please see old threads for similar topic/discussion.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Stop+AND+Notifications&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can resend email notification

    Hi experts,
    Yesterday night, we have an issue with the server so that email did not go out last night. Today we fixed it. It's working now. However, I found out there are so many emails still in WF_NOTIFICATION table with MAIL_STATUS = 'MAIL', and STATUS = 'OPEN', and they also exist in WF_ERROR. How do I resend them?
    Apps version: 11.5.10.2
    DB: 9.2.0.8
    Os: Solaris 8
    Thanks in advance.
    Hieu
    Edited by: user122479 on Feb 20, 2013 4:37 PM

    Hi,
    First confirm that the notification mailer is sending mails by sending a test mail using "Test Mailer".
    Please see "How to send a test email notification?" in
    Workflow Java Mailer & Notifications FAQ [ID 562551.1]
    If it is working, then please bounce the concurrent managers and notification mailer to clear the black list users.
    Even then if it is not working then, you will have to look for log files in $APPLCSF/$APPLLOG/FNDCPGSC* and check the error.
    You might also see step 12 in
    A Guide For Troubleshooting Workflow Notification Emails - Inbound and Outbound [ID 831982.1].
    If the error cannot be seen, then enable the logging. Please see "How to increase the log level for the Workflow Components?" in
    Workflow Java Mailer & Notifications FAQ [ID 562551.1]
    Thanks

  • DAC email notification

    Hi ,
    I have configured the DAC smtp server properly, the email notification TEST is working and im getting the TEST email notification
    But i dont get any email notification when the ETL finished to run.
    sould i configure the ETL execution plan or somthing?
    any one has an idea?
    BR
    David

    Step 1) Go to Tools-->then DAC Server management-->then DAC Server setup. There is a tab for email. make sure your email configurations is done(port-25; email server; email address). Then send test email. If config is successful. Do step 2
    Step 2) Register your email in DAC setup-->Email tab. Ours is default to Setup level #10 . I tried 1 and 5 ours didnt work.
    Thanks
    Farai

  • DAC email notification not working.even if we get test mail.

    DAC clients are installed in Windows machine (Remote) and DAC servers are installed on UNIX platform.
    I have set up the smtp configuration in DAC client.i am also getting test mail.
    But after my schedule load completion i am not getting email notification.
    my question to be specific:
    1)can we getting email notification if we r having DAC server and client on 2 seperate platform.
    any help on this issue will be very helpful.if yes then how can it be done.
    Thanks in advance.hope a prompt answer and solution 4m the OBIEE gurus here.

    You need to set this config at unix box using file serverSetupPrompt.
    For your Q: YES
    If it is helpful, please mark as correct or helpful

  • Test an Oracle Event Alert in a Dev instance - email notification disabled

    Hi All,
    My client is on Oracle 11.5.10.2 and I have a requirement to develop an Event Alert. Problem is, in our development instance, client has disabled the email notification functionality, so I am really not able to check if the alert is sent/received and the format of the alert being sent. I checked the trigger on the table on which the event alert is created and confirmed that the trigger is created and also confirmed that on updating on the table from the form - a concurrent program '<table_name> (Check Event Alert)' is getting called by passing the table name and the ROWID of the row that got updated. Now, is there anyway I can check if the alert is working correctly?
    Please let me know.
    thanks.

    Vasu,
    The reason that the email notification is disabled is, the dev instance is a copy of prod and there are a bunch of notifications being sent to multilple people in PROD, so enabling email notification in DEV would create problems as it would sent notifications to people which is not intended.The work around would be little tricky but if you think you can give a try.
    Step 1. Disable all the workflow related email notifications
    [How to Disable all Workflow related Email Notifications Except for the Ones Sent from Oracle Alerts?|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=463777.1]
    Step 2. Disable all the alerts
    Step 3. Test your Alert
    Thanks,
    Anchorage :)

  • Test my Email notifications  give a response so I can see if I am notified

    Hello,  I do not believe I am getting the proper email notifications for my Apple G4 power Mac and Quicksilver.  Please just do a test reponse so I can see if it works. 
    Thanks

    My first test response for notifications

  • SharePoint Foundation 2013 installed on Windows Server 2012 not sending out email notification

    I have a server where i installed SP Foundation 2013 on top of Windows Server 2012. I have configured the SMTP as well as the outgoing SMTP in Central Administration
    of SharePoint. When i create an alert on a document library, its did not sent any email notification on the changes made to the document in the document library. So, i created a workflow to send out email using SPD2013. The workflow run, but it cannot sent
    out email with error saying that outgoing email is not configured correctly. I have checked with another server which i installed SP foundation 2013 on top of Windows Server 2008 R2 - its sending out email just fine using same configuration and outgoing SMTP.
    I need help to resolve this issue or at least the cause of the problem.
    Any help is greatly appreciated.

         
    Try below:
    http://social.technet.microsoft.com/wiki/contents/articles/13771.troubleshooting-steps-for-sharepoint-alert-email-does-not-go-out.aspx
    Go to Central Admin ---->Operations----->outgoing email settings and verify that SMTP server is mentioned correctly 
    2) Test the connectivity with the SMTP server.
    In order to do that follow these steps:
      Open  cmd
      telnet <SMTP server name> 25 ( We connect smtp server to the port 25)  
                     you should see a response  like this 220 <servername> Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at date and time
                     Beware that different servers will come up with different settings but you will get something
                     If you dont get anything then there could be 2 possible reasons, either port 25 is blocked or 
                     the smtp server is not responding.
      For testing response from your server
                       For testing response say ehlo to it.
                            Type :
                                        ehlo <servername>
                            output:
                                        250 <servername> Hello [IP Address]
      Now a test mail can be sent from that SharePoint server. 
                          Now we need to enter the From address of the mail.
                          Type :
                           mail from: [email protected]
                           output:
                           250 2.1.0 [email protected]….Sender OK
     It's time to enter the recepient email address.
    Type : rcpt to: [email protected]
    output:
    250 2.1.5 [email protected]
     Now we are left with the data of the email. i.e. subject and body.
    Type : data
    output:
    354 Start mail input; end with <CRLF>.<CRLF>
    Type:
    subject: this is a test mail
    Hi
    This is test mail body
    I am testing SMTP server.
    Hit Enter, then . and then Enter.
    output:
    250 2.6.0 <<servername>C8wSA00000006@<servername>> Queued mail for delivery
    Type: quit
    output:
    221 2.0.0 <servername> Service closing transmission channe
    3)  Check alerts are enabled for your web application
          verify if the windows timer service is running or not.
          Run this stsadm command to check that
          Stsadm.exe -o getproperty -url http://SharePoint-web-App-URL -pn alerts-enabled
         This should return <Property Exist="Yes" Value="yes" />
         If you don’t get this, Enable alerts by:
         stsadm.exe -o setproperty -pn alerts-enabled -pv "true" -url http://SharePoint-web-App-URL
          If its already enabled, try turn off and turn on it back.
    4)  Check the Timer job and Properties
           Go to
           MOSS 2007:  Central Administration > Operations > Timer Job Definitions (under Global Configuration)
           In SharePoint 2010: Central Administration > Monitoring > Review Job Definitions 
           Check whether the "Immediate Alerts" job is enabled for your web application. check these properties:
                       job-immediate-alerts
                       job-daily-alerts 
                       job-weekly-alerts
           stsadm.exe -o getproperty -url "http://Your-SharePoint-web-App-URL" -pn job-immediate-alerts
           The expected output is:
           <Property Exist="Yes" Value="every 5 minutes between 0 and 59"/>.  
           If you don’t get this, run the following command to set its value.
           stsadm.exe -o setproperty -pn job-immediate-alerts -pv “every 5 minutes between 0 and 59" -url http://Your-SharePoint-web-App-URL
    5)  Check whether the account is subscribed for alerts and it has a valid email account. This should be the first thing to check if the problem persists for some users not for      all.
    6)  Then check if at all those users have at least read permission for the list. Because the first mail should go out for every user without security validation but the next ones       won't be delivered unless the user has at least read
    permission.
    7)  If it is happening for one user, can also try to delete and re add the user in the site.
    8)  Most importantly , you should try this one.
          Run this SQL query to the content db < Select * from Timerlock>
          This will give you the name of the server which is locking the content database and since when.
          In order to get rid of that lock 
          Go to that server which is locking the content db and then restart the windows timer service.
          within some time it should release the lock from content db, if not then at the most stop the timer job for some time
          Once the lock will be released then try to send some alerts
          You will surely get the email alert.
    I found this is the most probable reason for alert not working most of the time. We should start troubleshooting with above steps before coming to this step for any alert email issue but from step 1 to step 7 are best for new environments or new servers.
    If the issue is like this ,alert was working before and suddenly stopped working without any environmental change then above conditions in step 1-7 should be ideally fine.
    Even after this if it is not working, then you can try these few more steps too
    9)  Try re-registering the alert template:
    stsadm -o updatealerttemplates -url http://Your-SharePoint-Web-App-URL -f  "c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\alerttemplates.xml" -LCID 1033
    10)  Try to clear the configuration cache
    If this helped you resolve your issue, please mark it Answered

  • Cannot Send Email Notification Using Stored Procedure.

    Hi Friends,
    I tried to execute this job scheduler...
    begin
    dbms_scheduler.create_job(
    job_name => 'ILMS_JOB_SCHEDULE'
    ,job_type => 'PLSQL_BLOCK'
    ,job_action => 'begin ilms.check_reminder(); end; '
    ,start_date => SYSTIMESTAMP
    ,repeat_interval => 'FREQ=DAILY'
    ,enabled => TRUE
         ,end_date => NULL
    ,comments => 'Ilms job schedule for notification.');
    end;
    However, since the effect is too long I rescheduled the frequency to be every one minute in this set attribute...
    BEGIN
    DBMS_SCHEDULER.SET_ATTRIBUTE(
              name => 'ILMS_JOB_SCHEDULE'
              ,attribute => 'repeat_interval'
              ,value => 'FREQ=MINUTELY;INTERVAL=1'
    DBMS_SCHEDULER.DISABLE('ILMS_JOB_SCHEDULE');
    DBMS_SCHEDULER.ENABLE('ILMS_JOB_SCHEDULE');
    END;
    Check Reminder is the stored procedure invoked by job scheduler to check values in database columns before sending email notification to the respective recipients' email address and also the format of the email notification to be sent to the recipients...
    CREATE OR REPLACE PROCEDURE check_reminder AS
    NO number;
    CURSOR emp_cur is
    select * from pergerakan_ks where TASK_FLAG=7 and TASK_STATUS='InProgress';
    emp_rec emp_cur%rowtype;
    email_to varchar2(200);
    default_email varchar2(200);
    mesg varchar2(4000);
    no_kes varchar2(100);
    subj varchar2(4000);
    kpi number;
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    BEGIN
    default_email:='@abc.com.my';
    FOR emp_rec in emp_cur
    LOOP
    if emp_rec.PKS_TKH_TERIMA is null then
    dbms_output.put_line('count day ' || round(sysdate - to_date(emp_rec.pks_tkh_hantar)) || crlf || crlf);
    if round(sysdate - to_date(emp_rec.pks_tkh_hantar)) >3 then
    email_to:=emp_rec.pks_penghantar_id||default_email;
    select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    dbms_output.put_line('update old pergerakan pks_id : '||emp_rec.pks_id);
    update pergerakan_ks set task_status='Done' where pks_id=emp_rec.pks_id;
    dbms_output.put_line('insert new pergerakan ks : ');
    insert into pergerakan_ks(pks_id,pks_ks_id,pks_km_id,pks_penghantar_id,pks_tkh_hantar,
    pks_penerima_id,pks_tkh_terima,task_name,task_owner,task_status,task_flag,fb_id)
    values(pks_id_seq.nextval,emp_rec.pks_ks_id,emp_rec.pks_km_id,
    emp_rec.pks_penghantar_id,sysdate,
    null,
    null,emp_rec.task_name,
    emp_rec.pks_penghantar_id,
    'InProgress',6,emp_rec.fb_id);
    commit;
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    end if;
    if emp_rec.PKS_TKH_TERIMA is not null then
    dbms_output.put_line('emp_rec.pks_km_id ' || emp_rec.pks_km_id || crlf);
    select c.KM_KPI into kpi from keluar_masuk_ks c where c.KM_ID = emp_rec.pks_km_id;
    no := round(sysdate - to_date(emp_rec.pks_tkh_terima))-kpi;
    dbms_output.put_line('count day - kpi' || no || crlf);
    dbms_output.put_line('kpi ' || kpi || crlf);
    if no = 1 then
    email_to:=emp_rec.pks_penghantar_id||default_email;
    select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    email_to:=emp_rec.task_owner||default_email;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    e_mail_message(email_to,email_to,subj,mesg);
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    if no = 3 then
    select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
    email_to:=emp_rec.task_owner||default_email;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    end if;
    END LOOP;
    END;
    E_mail_message is the stored procedure invoked by the check_reminder to tell scheduler information of the connection and the email address of the recipients...
    CREATE OR REPLACE procedure
    e_mail_message
    from_name in varchar2,
    to_name in varchar2,
    subject in varchar2,
    message in varchar2
    is
    l_mailhost VARCHAR2(64);
    l_from VARCHAR2(64);
    l_to VARCHAR2(64);
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    l_mail_conn UTL_SMTP.connection;
    mesg VARCHAR2( 4000 );
    BEGIN
    select a.SERVER into l_mailhost from email_setting a where a.SERVER is not null;
    select a.USERNAME into l_from from email_setting a where a.SERVER is not null;
    --UTL_SMTP.open_data(l_mail_conn);
    mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
    'From: <'||l_from||'>' || crlf ||
    'Subject: ' ||subject|| crlf ||
    'To: '||to_name || crlf || '' || crlf ;
    mesg:=mesg||message;
    l_mail_conn := UTL_SMTP.open_connection(l_mailhost, 25);
    UTL_SMTP.helo(l_mail_conn, l_mailhost);
    UTL_SMTP.mail(l_mail_conn, l_from);
    UTL_SMTP.rcpt(l_mail_conn, to_name);
    UTL_SMTP.data(l_mail_conn, mesg);
    UTL_SMTP.quit(l_mail_conn);
    END;
    I tried to execute to execute the e_mail_message procedure but received this error. Also, no notification sent to the email address...
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 241
    ORA-06512: at "ILMS.E_MAIL_MESSAGE", line 33
    ORA-06512: at line 13
    Please help so that I can receive the email notification into my email...thanks in advance for your time..

    user13281540 wrote:
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 241
    ORA-06512: at "ILMS.E_MAIL_MESSAGE", line 33
    ORA-06512: at line 13This is not an Oracle error - this is the mail server saying "+hey, I don't like that e-mail address you are supplying, I'm not accepting it!+".
    If you look at RFC821 (Request For Comments memo 821 describes the SMTP specifications), you'll see that the sender and recipient needs to be supplied in the format +<[email protected]>+, e.g. +<[email protected]>+.
    I have found that not all SMTP servers are equal in this regard. Some may insist on the brackets around the address, some may not.
    You need to confirm the format of the addresses you use in the "+MAIL FROM+" and "+RCPT TO+" commands.. and ensure that these formats are accepted by your SMTP server - and if not, change your code to use an acceptable format.
    The easiest way to do this is using telnet - and interacting directly and manually with the server. SMTP is a clear text protocol and easy to use manually. Try it. It is the best way to test SMTP interaction and validate the approach and SMTP commands and arguments used by your code.

  • Cannot send email notification to more than one people

    Hi everyone,
    Hope anyone could help me to solve this. I want to send email notification to two people. First to the staff to alert him that his claim is ready. And also to his supervisor that the claim has been disbursed. Below is the PL/SQL procedure, check_claim being used..
    CREATE OR REPLACE PROCEDURE TEST.check_claim AS
    NO number;
    CURSOR emp_cur is
    select * from emp where dept=7 and status='active';
    emp_rec emp_cur%rowtype;
    email_to varchar2(200);
    default_email varchar2(200);
    mesg varchar2(4000);
    subj varchar2(4000);
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    BEGIN
    default_email:='@phantom.com';
    FOR emp_rec in emp_cur
    LOOP
    if emp_rec.claim_status ='Y' then
    email_to:=emp_rec.staff_id||default_email;
    subj:='Claim No'||emp_rec.claim_id;
    mesg:='Your claim has been disbursed. Please check.';
    email_to:=emp_rec.staff_hod||default_email;
    subj:='Claim'||emp_rec.claim_id;
    mesg:='Claim No'||emp_rec.claim_id||' has been disbursed';
    e_mail_message(email_to,email_to,subj,mesg);
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    END LOOP;
    END;
    The first email_to is to be sent to staff_id and the second email_to is to be sent to staff_hod.
    The PL/SQL procedure then called the e_mail_message procedure shown below for the connection information..
    CREATE OR REPLACE procedure
    TEST.e_mail_message
    from_name in varchar2,
    to_name in varchar2,
    subject in varchar2,
    message in varchar2
    is
    l_mailhost VARCHAR2(64);
    l_from VARCHAR2(64);
    l_to VARCHAR2(64);
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    l_mail_conn UTL_SMTP.connection;
    mesg VARCHAR2( 4000 );
    BEGIN
    select a.SERVER into l_mailhost from email_setting a where a.SERVER is not null;
    select a.USERNAME into l_from from email_setting a where a.SERVER is not null;
    --UTL_SMTP.open_data(l_mail_conn);
    mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
    'From: <'||l_from||'>' || crlf ||
    'Subject: ' ||subject|| crlf ||
    'To: '||to_name || crlf || '' || crlf ;
    mesg:=mesg||message;
    l_mail_conn := UTL_SMTP.open_connection(l_mailhost, 25);
    UTL_SMTP.helo(l_mail_conn, l_mailhost);
    UTL_SMTP.mail(l_mail_conn, l_from);
    UTL_SMTP.rcpt(l_mail_conn, to_name);
    UTL_SMTP.data(l_mail_conn, mesg);
    UTL_SMTP.quit(l_mail_conn);
    END;
    However, the email notification only being sent to the supervisor / head of department. The staff concerned does not receive any email notification. Please help. Thank you for your time...

    from wht i see
    email_to:=emp_rec.staff_id||default_email;
    subj:='Claim No'||emp_rec.claim_id;
    mesg:='Your claim has been disbursed. Please check.';
    email_to:=emp_rec.staff_hod||default_email;  -- wrongit should be
    email_to:=emp_rec.staff_id||default_email;
    subj:='Claim No'||emp_rec.claim_id;
    mesg:='Your claim has been disbursed. Please check.';
    email_to:= email_to || ' , ' ||  emp_rec.staff_hod||default_email;

  • Email notification error...

    Hi All,
    I have created new procedure for email notification. When i execute the procedure email is triggered but in the email body it gives error message as mentioned below. Actually its not error message it outputs the code.
    CREATE OR REPLACE Procedure PROC_STATUS_MAIL_TEST
    IS
          l_ana_report  VARCHAR2(32767); --empty_clob; --clob :=
          l_header VARCHAR2(1000);
          l_footer VARCHAR2(200);
          cnxn UTL_SMTP.connection;
    BEGIN
               l_ana_report := '<style type="text/css">
        <!--.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; color: #FF0000}-->
        <!--.sidebar1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px}-->
        <!--.text { font-family: Arial, Helvetica, sans-serif; font-size: 12px}-->
        </style>
        <center><b><font face="Arial">Ana Run Summary Report '
                    || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH:MI AM') || '<br><br></font></b></center>'
                    || ' <div align="center"><table width="95%" border="1" cellspacing="0" cellpadding="1" </div>'
                    || '<span style="font-size: 10pt; font-family: Arial"> </span> '
                    || '<tr bgcolor=b4b4b4><td align="center"> <font size="3"> <b>'
                    || 'Ana</b></td><td align="center"><font size="3"> <b>'
                    || 'Start Time</b></td><td align="center"><font size="3"> <b>'
                    || 'End Time</b></td><td align="center"><font size="3"> <b>'
                    || 'Run Duration (mins)</b></td><td align="center"><font size="3"> <b>'        
                    || 'Status</b></font></td></tr> ' || UTL_TCP.CRLF;
                    FOR curr_refresh IN (SELECT AN.ANA_ID,AN.NAME ANA_NAME,ARH.RUN_START_TIME START_TIME,ARH.RUN_END_TIME END_TIME,
                                         ROUND(((ARH.RUN_END_TIME-ARH.RUN_START_TIME)*24*60),2) RUN_TIME_SECS,ARH.JOB_STATUS STATUS
                                         FROM
                                         RUN_HISTORY ARH,ANA AN,
                                              (SELECT ANA_ID FROM ANA_SELECTED_DATA_TYPES
                                               WHERE DATA_TYPE_ID IN (SELECT DATA_TYPE_ID FROM DATA_TYPE_LU
                                               WHERE IND IN ('P','L'))) ADT
                                          WHERE
                                         ARH.ANA_ID=ADT.ANA_ID
                                         AND AN.ANA_ID=ARH.ANA_ID
                                         AND ARH.RUN_START_TIME>TO_DATE(SYSDATE-20)
                                         ORDER BY ARH.RUN_START_TIME DESC)  LOOP  
               l_ana_report  := l_ana_report ||
               '<tr><td align="center">'|| curr_refresh.ana_name                 
                  || '</td><td align="center">' || curr_refresh.start_time || '</td><td align="center">'
                  || curr_refresh.end_time || '</td><td align="center">'|| curr_refresh.RUN_TIME_SECS ||
                  '</td><td align="center">'|| curr_refresh.STATUS ||
                  '</td> </tr>' || UTL_TCP.CRLF;
                   exit when length (l_ana_report) > 32500;  
          END LOOP;
           l_ana_report := l_ana_report || '</table><br><br>';
        --   l_body := UTL_TCP.CRLF ||
        --   UTL_TCP.CRLF || l_ana_report;
        --   l_footer := UTL_TCP.CRLF || '--' || K_BOUNDARY || '--' || UTL_TCP.CRLF;
         l_footer := UTL_TCP.CRLF ||
         '<b> Note: This is an auto generated email. Please do not reply to it. Contact the IT team for any further information.</b>'||  UTL_TCP.CRLF;
                FOR curr_email IN (SELECT global_name instance_name,
                REU.EMAIL_USER_LAST_NAME last_name,
                REU.EMAIL_USER_FIRST_NAME first_name,
                REU.EMAIL_USER_EMAIL_ID,
                '[email protected]' mail_from
                                 FROM EMAIL_USER REU,EMAIL_GROUP REG,GLOBAL_NAME
                                             WHERE REU.EMAIL_GROUP_ID = REG.EMAIL_GROUP_ID
                                                   AND REG.EMAIL_GROUP_NAME = 'Business'                                           
                                  ) LOOP
                cnxn := UTL_SMTP.open_connection('smtprelay.aceins.com', 25);
                UTL_SMTP.helo(cnxn, 'smtprelay.aceins.com');
                UTL_SMTP.mail(cnxn, '[email protected]');
                UTL_SMTP.rcpt(cnxn, curr_email.EMAIL_USER_EMAIL_ID);
            l_header := 'MIME-Version: 1.0'||'
            To: ' || curr_email.last_name || ' <' || curr_email.EMAIL_USER_EMAIL_ID || '>
            From: ' || curr_email.mail_from || '
            Subject: Ana Run Status Report for ' || curr_email.instance_name || ' on ' || to_char(sysdate, 'DD-MON-YYYY') || '
            Reply-To: [email protected]
            Content-Type: text/html;' || UTL_TCP.CRLF || UTL_TCP.CRLF;
          -- l_email := UTL_TCP.CRLF || l_header || l_ana_report || l_footer;
                UTL_SMTP.data(cnxn, l_header || l_ana_report || l_footer);                   
                UTL_SMTP.quit(cnxn);
                DBMS_OUTPUT.put_line('mail sent to ' || curr_email.EMAIL_USER_EMAIL_ID);
          END LOOP;
    END PROC_STATUS_MAIL_TEST;Email body:-
    <style type="text/css">
    <!--.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; color: #FF0000}-->
    <!--.sidebar1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px}-->
    <!--.text { font-family: Arial, Helvetica, sans-serif; font-size: 12px}-->
    </style>
    <center><b><font face="Arial">Ana Run Summary Report 29-JUL-2011 01:22 PM<br><br></font></b></center> <div align="center"><table width="95%" border="1" cellspacing="0" cellpadding="1" </div><span style="font-size: 10pt; font-family: Arial"> </span> <tr bgcolor=b4b4b4><td align="center"> <font size="3"> <b>Analysis</b></td><td align="center"><font size="3"> <b>Start Time</b></td><td align="center"><font size="3"> <b>End Time</b></td><td align="center"><font size="3"> <b>Run Duration (mins)</b></td><td align="center"><font size="3"> <b>Status</b></font></td></tr> <tr><td align="center">PCSUM CE US</td><td align="center">28-JUL-11</td><td align="cente ...... and so on
    Can anyone please guide me if anything wrong with syntax or code. I checked on google but couldnt get, still googling out.
    Regards,
    Sunny
    Edited by: k_17 on Aug 1, 2011 2:41 PM

    The below is mesage it displays in the body where as it should appear as html page. Three days back it had worked proper but off sudden it changed. The code is same.
    <style type="text/css">
        <!--.style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; color: #FF0000}-->
        <!--.sidebar1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px}-->
        <!--.text { font-family: Arial, Helvetica, sans-serif; font-size: 12px}-->
        </style>
        <center><b><font face="Arial">Analysis Run Summary Report 29-JUL-2011 01:22 PM<br><br></font></b></center> <div align="center"><table width="95%" border="1" cellspacing="0" cellpadding="1" </div><span style="font-size: 10pt; font-family: Arial"> </span> <tr bgcolor=b4b4b4><td align="center"> <font size="3"> <b>Analysis</b></td><td align="center"><font size="3"> <b>Start Time</b></td><td align="center"><font size="3"> <b>End Time</b></td><td align="center"><font size="3"> <b>Run Duration (mins)</b></td><td align="center"><font size="3"> <b>Status</b></font></td></tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">28-JUL-11</td><td align="center">28-JUL-11</td><td align="center">11.62</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">28-JUL-11</td><td align="center">28-JUL-11</td><td align="center">11.62</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">28-JUL-11</td><td align="center">28-JUL-11</td><td align="center">11.62</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">9.1</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">9.1</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">9.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">Australia Ledger LG (EP,IL&ALAE,PL&ALAE)</td><td align="center">22-JUL-11</td><td align="center">22-JUL-11</td><td align="center">13.1</td><td align="center">Completed</td> </tr> <tr><td align="center">xAdhoc LM - Energy Sweden AY NoF LL</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">2.42</td><td align="center">Completed</td> </tr> <tr><td align="center">xAdhoc LM - Energy Sweden AY NoF LL</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">2.42</td><td align="center">Completed</td> </tr> <tr><td align="center">xAdhoc LM - Energy Sweden AY NoF LL</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">2.42</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">22.17</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">22.17</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">22.17</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">10.97</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">10.97</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">10.97</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">10.53</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">10.53</td><td align="center">Completed</td> </tr> <tr><td align="center">1PCSUMM1 CE LG PreCat US$-TEST</td><td align="center">19-JUL-11</td><td align="center">19-JUL-11</td><td align="center">10.53</td><td align="center">Completed</td> </tr> <tr><td align="center">xAdhoc LM - Energy Sweden AY NoF LL</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">.9</td><td align="center">Completed</td> </tr> <tr><td align="center">xAdhoc LM - Energy Sweden AY NoF LL</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">.9</td><td align="center">Completed</td> </tr> <tr><td align="center">xAdhoc LM - Energy Sweden AY NoF LL</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">.9</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">18.7</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">18.7</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">18.7</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">28.78</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">28.78</td><td align="center">Completed</td> </tr> <tr><td align="center">PCSUMM4 CE PreXL A&H Total US$ - Viewer</td><td align="center">12-JUL-11</td><td align="center">12-JUL-11</td><td align="center">28.78</td><td align="center">Completed</td> </tr> </table><br><br> <b> Note: This is an auto generated email. Please do not reply to it. Contact the IT team for any further information.</b>Regards,
    Sunny

Maybe you are looking for

  • Can no longer log in with ZSH as default shell

    After the last few updates, I'm unable to log in with zsh in ANY terminal. Nothing in my configuration has changed since the problem started occuring. In fact, even removing my zsh configuration files has no effect and still won't log in properly. An

  • Ipad not being recognized on my Mac laptop

    My Ipad Mini, (just purchased today) is not being recognized on my Mac computer under Devices in the Finder.  We also bought a IPod Shuffle and it is recognized.  I followed another person's advice from this forum and reloaded the Ipad, but it is sti

  • All newly installed CC apps crash on launch, CS6 are fine

    I installed the new CC versions of Illustrator, Photoshop, and InDesign, and they all crash immediately after launching (no splash graphic). Unfortunately I uninstalled Illustrator CS6 before noticing that none of the newly installed versions will la

  • SSL configuration for ABAP engine

    Hi Experts, Can you please tell me how to configure SSL on ABAP engine? Can you please guide me in details of the first part i.e. installation of SAPCRYPTOLIB for ABAP part? I am not getting the document properly. I am telling you what I have done. 1

  • View settings: how to preserve

    How do I preserve the zoom settings and placement so when I open the file later, each sheet is at the location and zoom rate where I left off last time?