Doubts in Email notification

Hi,
I have configured a email notification for user status : in process. mail to be sent to msg processor
condition i hve given as
&CRM Service Process.User Status&  = E0002SLFN0001  ie when the msg goes to in process mail shd be triggered to msg processor.
Problem:
Now when L1 takes ticket in process, mail is triggered to L1 msg processor, but I wanted mail to be triggered when L1 assigns msg to L2 keeping the status as in process.
any suggestion on what condition do i need to give, so that mail is sent to msg processor, each time processor is changed irrespective of the status of msg.
Regards,
Shyam.

You can do it.
- Determine what action profile your service desk message is using
- Determine the action that triggers your email
Then go to transaction SPPFCADM
For the application CRM_ORDER, go to the 'define action profile and actions'.
Find the action definition above, then the action (from above)
In the action merging, select the max . 1 unprocessed action for each definition.
Read more about it in my post here ;[http://www.renet-web.net/2009/07/23/automated-emails-in-sap-solution-manager-made-easy/|http://www.renet-web.net/2009/07/23/automated-emails-in-sap-solution-manager-made-easy/]
Rgds

Similar Messages

  • Users unable to get email notifications on followed sites, or documents: System.IO.FileNotFoundException and Microsoft.SharePoint.SPSite.InitUserToken(SPRequest request) errors

    Hi Community
    I have an issue on a live SP2013 farm that is really causing me grief.  Although  I ( Farm Admin)  and my other users can follow items which are subsequently  confirmed in our respective News Feeds - 
    none of my users are are actually getting emails notifications . 
    Alerts ( did) work fine.
    I have written some PS to vew and set  the SPS-EmailOptin for each user
    $up[$upManagerAttribute].Value = $managerNTName
    # check if the email check boxes are unchecked '1' then if so check all
    write-host -fore white "User Profile for user"$NTName "Now has email opt in currently set to" $up[$upEmailOptin].Value
    if ($up[$upEmailOptin].Value -gt 0)
    $up[$upEmailOptin].Value = 0
    write-host -fore white "User Profile for user"$NTName "Now has email opt in all checked."
    Very few are unchecked. $up["SPS-PrivacyActivity"].Value = 4095  is set for all users as in
    the the privacy settings on the newsfeed are all checked
    For my currrent client I  set up a development intranet which had the seperate web apps for the main portal and mysites. Test users were able to follow documents, sites without any problems.  Before go live I was asked to accomodate a requirement
    where there is only one web application (don't ask!)  effectivley http://myintranet 
    so mysites sits under http://myintranet/mysites .   I  made the appropriate changes to my AutoSPInstaller scritpt and al appearedd l good : services , Service appplications, mysites are all started.  I am using
    the two app pool accounts  one for the portal and one for mysites.
    A quick look at the the releated threads on this forum indicated permssions could be DB permissions  related tho I  am not seeing anything in ULS to strongly point to this
    $webApp = Get-SPWebApplication http://myintranet
    $webApp.GrantAccessToProcessIdentity("mydomain\SP_ProfilesAppPool")
    - checked and SPAcess Data is given to the mysites app pool accout to the portal web app .
    I am seeing some odd errors in ULS
    Ignoring the space ' critical' warning which I have flagged up to Ops and  I doubt is my real problem.  The errors I see that are related are :
    System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
    at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
    at Microsoft.Office.Server.Microfeed.MBUtilities.GetPublishedFeedListPrivate(SPWeb web, String relativeUrl)
    at Microsoft.Office.Server.UserProfiles.FollowedItem.CreateFollowedSite(SPWeb site, FollowedItemData data)
    at Microsoft.Office.Server.UserProfiles.FollowedItem.Create(SPSite site, SPWeb existingWeb, Uri url, FollowedItemData data)
    at Microsoft.Office.Server.UserProfiles.FollowedItem.RecreateByReferencedItem(SPSite site, SPWeb web)
    at Microsoft.Office.Server.UserProfiles.FollowedContent.RefreshFollowedItem(FollowedItem item, SPS2SAppExecutionPolicy policy)
    at Microsoft.Office.Server.UserProfiles.FollowedContent.Follow(Uri url, FollowedItemData data)
    at Microsoft.Office.Server.UserProfiles.FollowedContentServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)
    at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid)
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(XmlElement xe)
    and
    5b93b0ef-b1ff-437d-b674-5285be9b9395 Stack trace:
    at Microsoft.SharePoint.SPSite.InitUserToken(SPRequest request)
    at Microsoft.SharePoint.SPSite.SPSiteConstructor(SPFarm farm, Guid applicationId, Guid contentDatabaseId, Guid siteId, Guid siteSubscriptionId, SPUrlZone zone, Uri requestUri, String serverRelativeUrl, Boolean hostHeaderIsSiteName, SPUserToken userToken, Boolean appWebRequest, String appHostHeaderRedirectDomain, String appSiteDomainPrefix, String subscriptionName, String appSiteDomainId, Uri primaryUri)
    at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
    at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
    at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
    at Microsoft.Office.Server.UserProfiles.SPS2SAppUtility.TryOpenWeb(Uri url, SPSite& site, SPWeb& web, Boolean& inSPContext)
    at Microsoft.Office.Server.UserProfiles.SPS2SAppExecutionContext.InitializeForSite()
    at Microsoft.Office.Server.UserProfiles.SPS2SAppExecutionContext.EnsureInitialized()
    Also, I am testing with my account which does have all the mysites newsfeed options checked in the CA -> UPA ->"Manage User Profile"
    Anybody seen this whilist I follow the where those exceptions take me.
    Freelance consultant

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Workflow in MDM  with email notification

    Hi All,
                I am using the workflow for the first time,and doing a scenario where workflow should be automatic and ,
                 1. as one user finishes the processing it should go to the next user automaticallyan an so on.
                  2. As on user add new records and field values a email notification should also go to the next user available as the processing of first user finishes.
    Please provide me someo helpfull links or suggetions ASAP,all the efforts will be appriciated.
    Thanks & Regards

    Hi,
    Process Flow Overview
    1.     Launch MDM Data Manager
    2.     Create the Validation.
    3.     Select the workflow Table
    4.     Design the workflow in Microsoft Visio Professional.
    5.     Run the work Flow in the Data Manager.
    6.    Verify Result
    Pre-Requisite:   Before You Launch the MDM Data Manager, Check whether the Repository is up and running      (Status Must be Loaded Running in MDM console) and Microsoft Visio Professional has been installed and the Repository has been configured with the Mail Server.
    Example : Start  ProcessValidateApprove Notify  Stop
    Notify button
    In the Step Properties pane, click on the To field and select a User from the Available Users list as u Required.
    In the Step Properties pane, click on the Subject field and type in “      ”
    In the Step Properties pane, click on the E-Mail body field.
    In the E-Mail body field, click on the    button and type the Message
    If u had any doubts regarding Workflow Please let me know i will clarify.
    Regards
    Hari

  • Automatic Email notification of ST03N data

    Hi everyone,
    Currently, I provide <b>dialog steps data from ST03N</b> to my client on a daily basis using a spreadsheet that I send via email.  I want to somehow <u>automate the data extraction process and the email notification sent to my client</u>.  How can I do this?  What do I need to setup in the system to achieve this? 
    Below are information about the SAP system:
    Component version:    SCM 4.10
    Operating system:     SunOS
    Database system:      ORACLE
    SAP_ABA     640     SAPKA64017
    SAP_BASIS     SAPKB64017
    PI_BASIS     2005_1_640     SAPKIPYJ67
    ST-PI     2005_1_640     SAPKITLQH5
    SAP_BW     350     SAPKW35017
    EA-IPPE     300     SAPKGPIC11
    SCM     410     SAPKY41011
    SCM_BASIS     410     SAPK-41011INSCMBASIS
    BI_CONT     353     SAPKIBIFQ0
    ST-A/PI     01I_SCM410
    Any inputs will be highly appreciated.  Thank you!
    Best regards,
    Kris

    Hi,
    you can setup automated alert monitoring via CCMS, however I doubt there is automatic reporting of excel sheets.
    Please check the link below:
    http://help.sap.com/saphelp_nw70/helpdata/en/ac/825f18c02e454dac8da51f4eb22265/frameset.htm
    Regards,
    Siddhesh

  • Email notification configuration

    I am new to email notification,Now I want to the owner of a process to send email notification to someone,what should I set up or configurate to archive this,and I have a mail server that can send and receive email,can anyone tell me how to user the workflow builder to do so?
    Any help is much appreciated.

    Hi,
    This post could help you:
    http://erp.ittoolbox.com/groups/groups.asp?v=oracle-apps-l&i=230278&request=wfmail
    You don´t use workflow builder to set up email notifications.
    You need to start a mailer script/process and configure an archive to set your email account. The post above will help you.
    Any doubts, just help.
    Luiz

  • Approval workflow - email notification

    Hi,
    I was run out of idea how to complete my assigned job, need oracle expert to help on email notification workflow.
    Currently I am working on workflow enhancement with oracle application E-Business Suite for our company.
    My job is to add in new approval process to approve Bank Details transaction through AME.
    For this Bank Details transaction, the existing approval process is will only route to HR.
    Now my job is to add Admin & Manager approval, which mean once the transaction is submitted and the approval processes are as below:
    Admin --> Manager --> HR
    But this approval process will fall into 2 scenarios as below criteria.
    Scenario1: If the selected Bank Name from List Of View (LOV) not "Other Bank" then the approval process is Manager --> HR
    Scenario2: If the selected Bank Name from LOV is "Other Bank" (once Other Bank selected, user will need to enter the new Bank Name) then the approval process is Admin --> Manager --> HR
    Once Admin approve, Admin will add the new Bank Name into LOV.
    Both scenarios will auto trigger email notification to the approver once there is pending for Admin and Manager approval.
    For scenario1, our email process package able to send out email notification to the manager.
    But for scenario2, email notification not send to Admin. FYI, our Admin is a group of persons assigned to Admin group.
    My doubt here is how to let this email notification able to send out to Admin group?
    Hopefully anyone of oracle workflow expert could help me as soon as possible.
    Thanks.

    Hi Mike,
    According to your post, my understanding is that you wanted to use workflow to send emails to the approvers when a task process completed in SharePoint Designer 2010.
    First, when you add the “Start Approval Process” action to create the workflow in SharePoint Designer 2010, you can click on “these users” to set the task process participants and you can choose “One at
    a time (serial)” or “All at once (parallel)” to set how the tasks will
    be created.
    Then, if you want to send an email to the approver when a single task process completed, you can click on “Approval” in the
    “Start Approval Process” step to edit the task process and click on “Change the behavior of a single task” in the “Customization”
    to add the “Send a Task Notification Email” action in “When a Task Completes” section as below:
    And if you want to send emails to the all approvers when all tasks are completed, you can click on “Approval” in
    the “Start Approval Process” step to edit the task process and click on “Change the behavior of the overall task process” in
    the “Customization” to add the “Send an Email” action in “When the Task Process Completes” section as below:
    If you want to use the approval workflow to update the content approval status, then you can add the “Set Workflow Variable” action to set “Variable: EnableContentApproval” to “Yes” after you add the “Start
    Approval Process” action in the workflow, and it should be added above the step “Start Approval Process”.
    Please refer to the link below to add the “Set Workflow Variable” step in the workflow:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b5bebacf-4bb9-4e43-84d7-6eb2714f071d/is-there-an-option-to-set-content-approval-status-according-to-approval-process-workflow?forum=sharepointcustomizationprevious
    Best Regards,
    Victoria
    Victoria Xia
    TechNet Community Support

  • Email notification with SP 10

    Hi all,
    We are using Solution Manager 7.1 SP 10 and would like to use the "new" email notification with the new standard actions. Nevertheless, it seems that is doesn't work.
    Based on what we read, we should not need to create anything anymore as described here Pep Up Your ChaRM - Part 1: HowTo Create a Smart e-Mail Action as we have now 2 actions already created in standard :
    But when we try the SEND_MAIL_CHANGE_MANAGER one with the following action definition :
    with schedule condition :
    and start condition :
    SCOT / SO16 / BP are properly configured based on the following thread ChaRM: Approval Settings - Email Functionality in Change Request
    No email are triggered when for instance the status is in "validation". Are we missing something ?
    Thank you in advance.
    Kind Regards.

    Hi Vivek,
    Thanks for the answer.
    Of course, I have the corresponding YMCR actions created.
    As it is "scheduled automatically", don't I have some kind of WF or jobs to plan ?
    I assume that is not activated by  default once you are in SP 10, isn't it ?
    Based on the TJ30 table, my manager should received an email once the RfC is on "To be approved" or "Being implemented" status....which is not the case today...
    As I am using the same user for testing the flow, I am wondering if it doesn't come from that but I doubt it.
    And again, I wonder if there is not configuration to activate for these 2 actions, don't you think ?
    Thank you in advance for your answer.

  • Dynamic Email Notification Configuration

    Hi,
    I am using BPM 11g & trying to configure email notification within human task flows and not using any active directory as of now.
    I've configured email driver in enterprise console & provided the email host names, outgoing source email id, port through which outgoing mails delivers etc. & to deliver the mails, I've mapped my project's role with the other participants to whom the emails will be sent.
    however, I want to send the mail from a id which will be picked dynamically. Can this be configurable using human tasks.
    Please suggest !!!!

    Hi,
    This post could help you:
    http://erp.ittoolbox.com/groups/groups.asp?v=oracle-apps-l&i=230278&request=wfmail
    You don´t use workflow builder to set up email notifications.
    You need to start a mailer script/process and configure an archive to set your email account. The post above will help you.
    Any doubts, just help.
    Luiz

  • 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

  • Facebook Notifications and email notifications on ...

    Hi
    Is that possible Facebook Notifications and email notifications on sleeping screen nokia 808 like it had on N9..
    On my 808 it shows only msgs and miscalls....any fix??
    Thanks

    not possible unless the app supports that behaviour. but email notifications and on notification lights has been broken on Symbian for a while, and as Symbian is in maintenance mode, is unlikely to see a fix, possibly ever.

  • Procedures and Email Notifications

    boldEN*bold*
    Hi everyone!!
    In my BPM development, i'm trying to automatize the email notifications, based on due process periods. Also, I need to inform, based on the delay, some other participants that escalates the alarm message.
    Is it possible to do it using an "E-Mail Notification" component that can be reused during all the process, even that the interval conditions and informed users varies upon each activity.
    Is there another way to solve it?
    Thanks
    boldSP:*bold*
    Saludos a todos!
    En mi desarrollo BPM requiero automatizar el proceso de envio de email, al caducar ciertas actividades. Basado en ello, el tiempo de caducidad varia de acuerdo a cada actividad y al usuario, ya que varian tanto los intervalos de aviso, como los correos y su escalamiento en caso de demoras mayores a lo solicitado.
    Pienso que es posible tomar un procedimiento especializado que permita ser reutilizado en este y otros proyectos, a pesar de que requiera parametrizar tanto los usuarios "base" y "escalados", como los intervalos de alarmas, durante el proceso.
    ¿ Existe otra forma de realizarlo?
    Gracias,

    I think I understand what you're after. I think you want to use the same escalation logic for all of your processes and instead of embedding this in every process you want something reusable. If this is not the case, read no further.
    While you can do this, there are still going to be 5 things each process would still need to have inside of them:
    <li> your process would need to set the "deadline" predefined variable to the intial timeout (2 hours in the future in your example)
    <li> your process would need an Exeption Handler needs to be added with an Exception transition set to "Instance Expiration"
    <li> your process would need an Integer instance variable "alertLevel" to keep track of the current level
    <li> your process would need a String instance variable "currentlyAssignedTo" to keep track of who's supervisor you want to notify
    <li> your process would need an Automatic activity with one line of logic inside it.
    You could have the Exception transition leaving the Exception Handler activity go to a subprocess using a Subflow activity. This subprocess would send the emails, determine the new deadline interval, determine the new priority of the instance, look up the currently assigned user, manager and supervisor's email addresses and send the email(s). The subflow would have two input argument variables (alertLevelArg and currentlyAssignedToArg). In the Begin activity, these arguments would be mapped to corresponding instance variables. Inside this subprocess there would be an automatic with the logic to send the email to the user / manager / supervisor based on the alertLevel instance variable. This subprocess would pass back out through its output argument variables the new alertLevelArg, and new deadline (a time argument variable set to some time in the future based on the new alert's level).
    Once the instance in the called subprocess completes, the output arguments need to be mapped to the original process's "alertLevel" and "deadline" variable. From the Subflow activity, you'd have an unconditional activity that flows into an Automatic activity via an unconditional transition. This automatic activity would have the single line of logic "action = BACK" so the instance is sent back from the Exception Hanldler's flow back to the activity inside the process it was in when the Instance Expiration exception occurred.
    Avoid hard coding the values of "2" and "5" and "8" for the number of hours to have elapse inside your logic. Instead make them business parameters capable of being edited by an business owner.
    Dan

  • How to cancel email notifications in ical?

    Please help.
    I share a work calendar with a colleague via ical and syncing via mobile me.
    When I as the "owner" of the calendar send or update an event in ical my colleague recieves an email notification.
    I update the calendar many times each day and each time an email notification is recieved by my colleague in mac mail....this is proving very boring and unnecessary and meaning he is getting more than 50 emails a day referring to our shared calendar .
    Is there any way to cancel these email notifications as we always have our calendars open and can see the updates  / changes?
    Many thanks

    I have the exact same problem. No one out there with a solution??
    thanx

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

  • Auto-included link to list item not working in Workflow or email notification

    I made a workflow straight from my SharePoint site--NOT from SharePoint Designer. (My computer is still running on Windows XP, so I can't download Designer until my boss upgrades me to a newer system.) When creating the workflow, you have the option to include
    a link to the list item by clicking a checkbox. The links don't work in either the email notification or in the workflow properties. Extra characters are being added for some weird reason. (For example, the correct link looks like "https://www.w14b.comcast.net/sites/<yada
    yada>.docx" and the links in the workflow and email look like "http://www.w14spw-po-b1.com/sites/<yada yada>.docx")  I see no place to edit the URL. How do I fix the links???

    Hi,
    Please check if the http://www.w14spw-po-b1.com/sites/ is the url of default zone of the web application where this site resides.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/d17ad498-0b6f-4b12-9885-b8057fa04d88/sharepoint-2010-workflow-inserting-link-to-list-item?forum=sharepointgeneralprevious
    In addition, Windows XP SP3 is supported for SharePoint designer 2010:
    http://www.microsoft.com/en-in/download/details.aspx?id=16573
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • I can't uninstall and reinstall itunes?

    Hey, For the past few months I have had several problems with Itunes. 1. I can't use the itunes store because the screen in itunes store is completely white 2. I can't install the updated version of itunes and quicktime, I get error messages 3. I can

  • "There's a problem with a previous billing purchase"?????

    If I try to update an app it'll say that. What can I do? I have a feeling it's slacker radio be use I used them for like 3 months without paying. I've tried to see if I could pay hem directly but I can't. I have 26 apps that need to be updated but I

  • Can i install iwork on a macbook twice?

    hi, i just got my macbook and an iwork 09 package for single user. i would like to know if i install the iwork now, will i be able to install it again if i were to change the os to the snow leopard in the near future.

  • Using custom numbered lists

    I want to create section headings that looks like this: 1.0  PROJECT SCOPE    1.1 Introduction      1.1.1 Work By Others By default Pages starts numbered lists like: 1. PROJECT SCOPE How do I get pages to formatt numbered lists like I want above?  Th

  • IPhoto 09  version 8.02

    I downloaded the 8.02 update and could not crop photos. I went back to 8.0 backup and crop works just fine. What's up Apple?