Send email notification in latest start and latest end

Hi all,
My requirement is to send email notification on latest start and latest end. For latest start, a notification needs to be sent to the manager asking him to start processing the Leave request.
Am not too concerned about the latest end, since the latest end takes the workitem(MODELED ACtion)  to the next manager, where I can insert a email step in the workflow.
My concern is how can i send an email to the manager if he has not started processing the lave request within say 3 days
thanks a ton.
regards

Hi,
  If you are looking to send notification ASA work item reaches a latest end then follow the below steps.
1. Open the step for which you have set the latest end and click latest end tab.
2. Under the same tab you will find a Drop down box you will find two entries 1 Display Text 2 Modeled  choose the 1 option. and define the text in the task description by choosing Latest End description.
3. Choose the container element you might have populated the email address.
Now the configuration that you need to make sure to send a mail to external email id is SCOT settings if SMTP node is configured  then this node would be sending mails to the
Regards
Pavan

Similar Messages

  • Capture Latest start and latest end - date and time  through PI category.

    Hi Guys,
    I want to capture latest start and latest date and time of each of the individual phases through PI categories. i.e these values should flow from process order.What characteristic do i have to include? I know PPPI_EVENT_DATE and time will not work for this.

    Thanks for your response Avinash.
    Btw, I have viewed all these notes 368289.1, 603233.1, 399056.1, 329692.1, 1146414.1 already, but these don't seem to solve my problem because in each of these are under assumption that the initial Joining Date of the employee (i.e. Effective Start Date and Latest Start Date) is entered correctly without an issue, and these notes talk about dealing with 'Updating or Correcting' the data.
    But In my case the pre-conditions are different, although those are making the system to respond in the same way (i.e. showing same error) some how.
    As far as deleting the employees is concerned, yes that could be one option, but I am not really sure about adapting this solution as the dates I used in my case were just example dates, and in actual these employees are created almost 1 month back and they are already used in Projects module, CRM module and others.

  • Send email notification including file name and description, when users upload files to particular sub-folders?

    In my site collection i have a document library and document library has customer folder, each Customer folder has 4 sub-folders. i want to send email notification with file name and description to group and users, if they upload any files to Particular
    folder name "Final" not others 3 folders. would it possible to accomplish this solution? if yes please suggest which way i can do that. 
    Note: we have different groups of people, for example Team A and Team B. if files uploaded by any member of Team A, notification should sent to only Team A and specific people not Team B.
    Thanks in advanced for any help!

    Hey Rakib,
    You can add your group and those other people in To field of send mail activity. Have below snapshot for your reference.
    If Current Item URL Contains FolderName (i.e. Final) & Is Current User a member of of Team A
    Send Email to Team A; People1; People2;
    Thanks. Please mark as an answer if it helps.

  • Send email notification when the baseline and actual values are different in project

    Hi
    I am working with MS Project 2013 and Project Server 2013.
    I need to the send email notification to the program manager (or to a user) whenever the project manager changes the task finish date for a task. Comparison should happen with the baseline finish and the difference needs to be updated to the Program Manager
    over mail.
    How to configure/customize email notification for changes in MPP.
    Please suggest.
    Regards,
    Sudhir

    If you are not having developer skills it will be complicated for you.
    You need to create event handler by code, as in the below link:
    http://msdn.microsoft.com/en-us/library/office/gg615466%28v=office.14%29.aspx
    Then compare your values and finally send email by code.
    Twitter : @MShoubaki | http://jo.linkedin.com/in/mshoubaki

  • Latest Start and Requested Edn

    Hi,
    I know clearly about latest end and requested start.
    Why again we need latest start and requested end ?

    You don't need them, they are there if you want them.
    Latest start = time that you want work on the workitem started by
    Requested end = a "soft" latest end

  • BPMOn: Is it possible to send email notification to different groups based on filter value for IDOC?

    Hi there,
                  I have setup the monitoring for idoc through interface monitoring and I am getting the alerts for the same. The alert is generated for different status values for the same idoc. Now my question is, is it possible to send email notification to two different groups based on the status values?? I mean for example , for a single idoc for some status values I want to send email notification to group1 only and for other status values I want to send notification to group2.Any help will be apperitiated.
    Thanks and regards,
    Rutvik Upadhyay

    We currently do not support that level of control for sending email notifications. If you think others are interested in this you should add an idea here: http://forums.adobe.com/community/formscentral?view=idea
    We use that to help us prioritize our work.
    Thanks,
    Randy

  • ICal keeps sending email notifications from all agenda items from the last 2 years. After laptop start up this action is repeated every hour. How can I stop these 300 emails coming in every hour?

    iCal keeps sending email notifications of all agenda items from the last 2 years (then I bought my laptop). After laptop start up this action is repeated every hour. How can I stop these >300 emails coming in every hour?

    Hi,
    We have rolled out a fix for this issue.
    Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
    For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
    Please let us know if you still face any issues.
    Thanks,
    Ashu Mittal

  • TS3276 I can receive emails, but I cannot send emails. This just started happening. I have an iPhone and I can send emails from my phone fine. It's just not working on my Macbook. Every time I try to send an email it goes straight to my outbox. Can anyone

    I can receive emails, but I cannot send emails. This just started happening. I have an iPhone and I can send emails from my phone fine. It's just not working on my Macbook. Every time I try to send an email it goes straight to my outbox. Can anyone help?

    Thank you for heading me in the right direction.  I reset my Mail account for Outgoing Mail Server to outbound.att.net:(customer ID)@att.net (instead of smtp.att.yahoo.com, per Apple's online troubleshooting information).   I'm not sure what "(Offline)" means when it appears at the end of my Outgoing Mail Server (SMTP)??  In the Advanced box I clicked on "Use custom port:  465" and checked "Use Secure Sockets Layer."  Authentication:  Password; I have correct User Name and Password put in.  After doing all this, when I try to send emails again today, they go directly to the Outbox and sit there. 
    What's curious is that my first sent email this morning did go out using the Outgoing Mail Server, smtp.att.yahoo.com: (customer ID)@att.net(Offline) but subsequent emails I tried to send with this server were rejected with the message:  "Cannot send message using the server smtp.att.yahoo.com (etc.).  The SMTP server doesn't support TLS(SSL) on port 587.  Verify your account settings and try again."  That's when I tried resetting my Outgoing Mail Server to outbound.att.net (etc.), as mentioned above, and was unsuccessful in sending out any further emails.  I guess my next step is to contact my email service provider, AT&T, and see if they can help me.  Thanks, again, for taking the time to respond and for giving me your input!  Much appreciated!

  • Schedule webi report to destination to Inbox AND send email notification

    I'm writing a new process that will schedule a webi report.  The output of the report needs to be delivered to multiple user's BO Inboxes AND an email notification (without the report attached) needs to be sent telling them that they have a new report to view in their Inbox.  Trying to mimic how this is done via CMC Schedule - Notification and Destination tabs.
    I can get it to deliver the report to the Inbox and I can get it to send an email seperately, but the problem I'm running into is that I can't get it to do both in the same process.  Here is the code snippet that I've written.  Any assistance would be appreciated.
    // Retrieve the managed plugin
    IInfoObjects managedInfoObjects = infoStore.query("Select SI_DEST_SCHEDULEOPTIONS, SI_PROGID From CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.Managed'");
    IInfoObject infoObject = (IInfoObject)managedInfoObjects.get(0);
    IDestinationPlugin destinationPlugin = (IDestinationPlugin)infoObject;
    IManaged managed = (IManaged)destinationPlugin;
    // Set the destination to inbox
    IManagedOptions managedOptions = (IManagedOptions)managed.getScheduleOptions();
    managedOptions.setDestinationOption(IManagedOptions.CeDestinationOption.ceInbox);
    managedOptions.setSendOption(IManagedOptions.CeManagedSendOption.ceCopy);
    managedOptions.setIncludeInstance(true);
    managedOptions.getDestinations().add(new Integer(ditUserID1));
    managedOptions.getDestinations().add(new Integer(ditUserID2));
    managedOptions.getDestinations().add(new Integer(ditUserID3));
    scheduleInfo.getDestination().setFromPlugin(managed);
    // Retrieve the smtp plugin. to send email notification
    IInfoObjects smtpInfoObjects = infoStore.query("Select SI_DEST_SCHEDULEOPTIONS, SI_PROGID From CI_SYSTEMOBJECTS Where SI_PARENTID = 29 AND SI_NAME = 'CrystalEnterprise.Smtp'");
    IInfoObject smtpInfoObject = (IInfoObject)smtpInfoObjects.get(0);
    IDestinationPlugin smtpDestinationPlugin = (IDestinationPlugin)smtpInfoObject;
    // Set to email notification on success
    ISMTP smtp = (ISMTP)smtpDestinationPlugin;
    ISMTPOptions smtpOptions = (ISMTPOptions)smtp.getScheduleOptions();
    smtpOptions.setServerName("mailhost.XXXXX.net");
    smtpOptions.setPort(25);
    smtpOptions.setDomainName("XXXXX.com");
    smtpOptions.setSenderAddress("XXXXX.com");
    smtpOptions.setSubject("Indicative Data Update Reports");
    smtpOptions.getToAddresses().add("XXXXX.com");
    smtpOptions.setMessage("Test Message");
    smtpOptions.setSMTPAuthenticationType(CeSMTPAuthentication.NONE);
    scheduleInfo.getNotifications().getDestinationsOnFailure().add("New");
    scheduleInfo.getDestination().setFromPlugin(smtp);
    Edited by: Shannon Maret on Apr 21, 2009 7:02 PM

    One thing to keep in mind is that "scheduling to SMTP" is different from "scheduling with email notification", and it looks like you're conflating the two.  The ISchedulingInfo.getDestinations() is the access point for scheduling to SMTP and ISchedulingINfo.getNotifications() is the access point for scheduling with Notification.
    > scheduleInfo.getNotifications().getDestinationsOnFailure().add("New");
    You'd add the SI_PROGID of the SMTP Destination here, and work with the returned IDestination to set the destination parameters.
    Sincerely,
    Ted Ueda

  • I chose an option which eliminated the word Bookmarks from my start page menu, and of course all of the rest. i wish ti return to the original default, but see no option to do this. currently i see: most visited,getting started and latest headlines, which

    i chose an option which replaced 'bookmarks' in the menu with most visited, getting started and latest headlines. I want to go back to the default, simply 'Bookmarks' How do I do this?

    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History...Help)? Hold down the key ( key in OSX) and press the following letters in this exact order: V T M
    The Menu Bar should now be displayed permanently, unless you turn it off again (View > Toolbars). Turning the Menu Bar on and off is a new feature in version 3.6.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''See other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''

  • I'm unable to delete an existing email account, using iPhone 4 and latest OS. Anyone resolve this problem?

    i'm unable to delete an existing email account, using iPhone 4 and latest OS. Anyone resolve this problem?

    I thought maybe you had a restriction set to Accounts but if you can get to the final screen that's not it. I'd try resetting the phone. First do a hard reset. Turn the phone off then press the Home button an Power button at the same time and hold for 10 seconds or so until the logo appears. If that doesn't work go to Settings > General > Reset > Reset All Settings. That will basically restore the phone to a like new condition but keep your data, music, photos, etc. intact. Do a back up first though.

  • Updating a SharePoint Calendar and sending email notifications based on information from an Access Web App

    Hi MSDN Forum,
    I have created an Access Web App that I am hoping to add some functionality to. I am looking to provide email notification to different users from my organization (a field within the Access Table) when the current date approaches the renewal date (another
    field within the Access Table). I would also like to display all renewal dates on a SharePoint Calendar for users to see. Any advice on how to do this would be much appreciated.
    Thanks!

    I'm not familiar with how Access Web Apps work. However, on the SharePoint side of things, it looks like a workflow will be your best bet. Are you using Visual Studio? I've created a few tutorials on sending email notifications in Visual Studio 2012. https://youtu.be/JFdiQEyDkEk

  • EM sending Email Notifications to late

    Hello at all,
    On a test instance with Oracle 11gR2 with Enterprise Manager Database Control I try to activate the Email Notifications in Enterprise Manager, so that I can use them for monitoring.
    So i configured following settings:
    Under Setup -> Notification method I gave him a valid mail address with a vaild SMTP server. The test mail was send successfully.
    Under Preferences -> General i gave SYS a valid mail address to receive. The execution plan i let in standard configuration, so everytime at everyday i will get an email, when something happenes. the test mail was send successfully too.
    Now i created an own rule to test the configuration:
    I went to Preferences -> Rules an add an rule. Name and description I named "test" and set "database instance". At availabillity I activated all checkboxed, so i should be informed when the instance goes down, comes up, getting an error, when the error is fixed, when agent is not available, when agebt is available again, when there is a metric error, when the metic error is fixed, when a blackout starts and when it ends.
    Metrics, policies and jobs ther wasn't defined anythind in standard, so i let it so and set nothing here.
    I activate the checkbox for sending emails to sys and sending repeat emails every 15 minutes 3 times at all.
    Now, to test this notification i logged into my testserver and killed the listener process, to see, what will happened. After 1 Hour waiting i didn't get any email, so i restartet the listener. after the listener was startet my outlook was fluted by emails from the server, that the listener was down. But why i didn't get them earlier.
    I checked the procedure with the database to, here i get it down by "shutdown abort" and "shutdown immediate". But i get the mails, that the database is down, when its up already. And thats to late!
    When I want to use such email notifications for productive servers and someting is going wrong, for that a notifications is configured of course, I want to get the mail directly, when that happened and not, hen the problem is fixed!
    For example, here an email from testing, where the listener was down, that i've get at 13:01 :
    Target Name=LISTENER_<hostname>
    Target Type=Listener
    Host=<hostname>
    Metric=Status
    Metric Value=0
    Timestamp=Feb 18, 2013 12:01:58 PM CET
    Severity=Critical
    Message=The listener is down: TNS-12541: TNS:no listener .
    Notification Rule Name=Listener Availability
    Notification Rule Owner=SYSMAN
    Notification Count=1
    What can i do here? Does anybody knows a tip or the solution?
    Thanks a lot for help.
    Best regards!
    David
    Edited by: 985104 on 18.02.2013 04:24

    Thanks for the link.
    In the document i read much about directories like: $ORACLE_HOME/oes/admin. My problem here is, that i haven't such directories so i think i'm not using oesmon.
    Should i have to use this?
    Do you need some log output?

  • 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;

Maybe you are looking for

  • Using invoke tag in UIX

    I need an example of how to use the invoke tag in an event on a UIX page. I tried to modify the example in the ADF UIX tutorial, but the event doesn't fire the method.

  • The hexa decimal to decimal is not working propoerly

    I'am attaching one VI where , read string after the VISA serial which is put to the hexadecimal conversion  . This should give the converted decimal number at the number label. But it's not providing that. So can you send me  a solution for this.  So

  • Two copies of most emails on my iPhone

    I have seen topics that have addressed duplicate contacts and duplicate calendar events, but I can't find one that addresses duplicate emails. On my iPhone 3GS, I almost always am receiving the same email twice. They are identical. How can I correct

  • JNDI on a Sun Application Server 9.0 from a Java SE Client

    Where do I go to find a listing of property pairs I have to set to allow my Java SE application to make use of JNDI (to find Session and Entity beans)? This is my approach from what I have read so far:       Context context;       Properties properti

  • IO_ERROR check for File/FileStream

    Dear all, Does IO_ERROR events works in this case? var file:File = File.applicationDirectory; file = file.resolvePath("settings.cfg"); file.addEventListener(IOErrorEvent.IO_ERROR, ioErrorFileHandler); stream = new FileStream(); stream.open(file, File