Better way of Sending E-Mail Notifications -- Workflow or Function Module ?

Hi All,
I have an implicit enhancement written in a t-code and based on some conditions I am creating event which inturn will trigger the workflow which inturn send e-mail notification via send mail step.
My question is:
Which one of the ways is better in terms of performance or overhead to send an e-mail notification. (There are no Approval processes in the workflow.. Just One Step E-mail Notification).
1) In the Implicit Enhancement, Trigger an event which inturn will trigger the workflow and e-mail is sent via send mail step.
2) In the Implicit Enhancement, Send the e-mail notification via standard function modules available... such as
   "SO_OBJECT_SEND", "SO_DOCUMENT_SEND_API1".........
Would be grateful if someone can post the Advantages and Disadvantages in the above 2 ways of sending e-mail notifications..
Regards,
PR.

Just to throw in some additional factors, consider exception handling:
An event-based send mail step is decoupled and thus independent of your application. This means your exception handling is separate. It means you do not need to hold up the transaction if there is a failure. All this depends on how important the mail is. You could of course add validation code to ensure the mail address is valid and send it elsewhere if not.
Regarding performance, consider how often this happens. If it's an infrequent occurrence then I wouldn't worry about performance. Hundreds or thousands a day is a different story.
So the answer is:
Workflow for low-volume scenarios (low performance impact) that are important (better error handling in WF),
Direct mail for high volume and noncritical
In between these, use whatever you like
One more thing to perhaps consider the future. What are the chances of the mail being replaced by a work item in furture? Sometimes it's only by observing a process after go live that you can identify the best solution. e.g. you may decide to replace the mail with a "Please go fix this" work item because you need deadline monitoring

Similar Messages

  • How to send E-Mail Notification executing through workflow?

    hi All
    I want to send E-Mail Notification executing through workflow in MDM Data Manager?
    I have tried it, But still i am unable to send E-Mail Notification?
    i will explain, how i have tried?
    1) I have created the simple workflow with the following components
        they are in sequence
          start--> process-> notify--->stop
    2)  owner of the workflow is Admin and launcher of the workflow is Admin and i have given email id to the Default Admin user in the console.
    3) i have created another user (i.e. User2) with default roles as like as Admin and i have assigned User2 to the process component in workflow and I have created e-mail address for the User2 in the console.
    4) i have created another user(i.e.User1) with default roles as like as Admin. and give e-mail address,under the notify component User1 is selected in To Field.
    5) stop component as usual
    coming to configuration part about the SMPT server in MDS.ini file
    1) in mds.ini file for the MailServer=, I have given SMTP Server name once and restarted the server and executed the workflow, but not worked
    2)in mds.ini file for the MailServer=, i have given SMTP Server IP Address and checked the port,and we have configured the host file also and restarted the server and executed the worflow , but not worked
    In all the ways i have executed and tried to send E-Mail Notifications through workflow, But I didn't
    can any one help where i have went wrong, so i can rectify  it
    what actually we have to give in mds.ini file? is any other cofiguration required for it?
    if any one have any solution for it , can you please explain me in step by step
    Thanks in Advance
    bharat.chinthapatla

    Hi Bharat,
    your steps seems to be correct. Just try to ping your mail server, to verify if your mail server is running up, besides note that mdm go throw port 25 for sending emails, so please check if you are able to send emails using port 25 in your network.
    Regards,
    Vito

  • Send Custom Mail Notifications to Author/Creator when workflow ends

    Hello All,
    I am working on workflows and I want to send a mail notification to the "Author/Creator" when the workflow finishes.
    Currently, UCM workflows do not provide this functionality Out-Of-The-Box.
    For this I implemented a filter and hooked it to the event +"advanceDocumentStateMarkWorkflowFinished"+ event.
    Now I am able to send mail using the following code:
    InternetFunctions.sendMailTo(email, "DynamicPrefixTemplate","Workflow Notifications", cxt);
    However, I am not able to retrieve the author name to whom I have to send the notification. I found that "databinder" object (passed as param) in method signature below doesn't contain the author name attribute.
    public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt)
    I can see other attributes such as dId, dName etc. but not the "dAuthor". Can someone please suggest how can I retrieve the author name for the document for which workflow has just finished and notify the author..
    I know there are services like getDocumentByName, but I do not know can I call these services from my filter code in Java. Please guide me.
    Thanks in Advance,
    Aakash

    Hi,
    If what you need is to send a notification to the original author, you do not need to write custom code, you can follow these steps:
    1) on the first step, assign the dDocAuthor to a workflow variable. As an example, on the Entry event if the first step add this code:
    <$wfSet("originalAuthor",dDocAuthor)$>
    Note that you need the previous step only if you allow revisions during your workflow. If you don't, then dDocAuthor would not change and you can skip that step
    2) on the last step, send a notification using the variable we saved on the first step as the addresee. As an example, on the on Exit event add this code:
    <$wfNotify(originalAuthor,"user")$>
    (if you do not allow revisions, substitute originalAuthor by dDocAuthor)
    Another thing, a lot of people run into the need to override the standard email templates when they start sending custom notifications. The workflow administration guide has a very nice and detailed section that explains how to do this. Also, the idocscript reference guide is always a good point to check the correct syntax for idocscript functions. There is a section of workflow related functions/variables in that guide that always comes in handy.
    Hope this helps.
    Regards,
    Jorge

  • Send e-mail notification if "Assigned to" field is empty

    SCSM 2012 SP1.
    I need to send e-mail notification to a distribution list if somebody creates an incident with empty "Assigned to" field. It could happen when an user sends new service request using self-service portal, incoming e-mail is processed,
    or a support team member forget or cannot fill that field.
    E-mail subscriptions do not work. I can create a rule with "User name is empty" condition, but it is never triggered.
    I can use template with "Primary owner" and "Source" fields filled in advance to create SSP incidents. After that I can create workflow which sends notification to that person when an incident is created with "Portal"
    specified as source. It works, but I can send notification to a single person only, not to a distribution list. What if that person is absent?.. In addition, I cannot use a workflow if "Assigned to" field is not filled during manual creation of the
    incident.
    Is it possible to send such notifications at all?

    Check if this helps you
    http://blogs.technet.com/b/babulalghule/archive/2013/05/05/how-to-configure-notification-to-notify-if-assigned-to-user-is-empty-or-incident-is-not-assigned.aspx
    Thanks,
    Babulal Ghule
    http://blogs.technet.com/b/babulalghule

  • Sending e-mail notifications.

    Hi Experts,
    When I perform any operation in ContentDB(like file upload or delete)...is there any provision in ContentDB that provides sending e-mail notifications to the users of that document/folder.
    we have followed the below link..for creating the custom workflow that does some what similar job.
    http://www.oracle.com/technology/products/contentdb/dev/viewlet/index.html
    I wanted to know if there is any built-in feature available in content DB for doing this prorramatically...
    Thanks
    peter.

    Hi Parker,
    There is no in-built email notification - however, you could leverage a custom event handler in conjunction with the java mailer to achieve such a requirement (by monitoring and responding to certain events occurring in the repository).
    See the CDB devkit for details on custom event handlers.
    cheers
    Matt.

  • How to send a mail in workflow keeping 1 receiver in CC and the other in TO

    Hi,
    Can anybody tell me how to send a mail in workflow keeping 1 receiver in CC and the other in TO.
    I need to send a mail to an employee keeping his/her manager in CC through workflow.
    Regards,
    Lavanya

    Hi Lavanya,
    I dont think its possible using Send mail step type.
    But it can be done by using the FM SO_NEW_DOCUMENT_SEND_API1. Just create a method and Call this FM accordingly.
    Thanks,
    Viji.

  • How to send e-mail notification automatically when a record is inserted?

    Dear All,
    Could anyone kindly tell me how to send e-mail notification automatically when a record is inserted through a form in Oracle Portal Release 2?
    Regards,
    Ridwan.

    Hi,
    If you are writing a form on a table then you can call the mail API from a database trigger on the table. If it is a form on a procedure, you can make the email call from the procedure. To know more about sending mails from plsql go to
    http://www.quest-pipelines.com/newsletter-v2/smtp.htm
    Thanks,
    Sharmila

  • Unable to send E-mail notification. [10054]

    Opening a report in the Backup History and scrolling to the bottom, has anyone ever seen this message: - Test - Unable to send E-mail notification. [10054]? I am wondering what caused this problem as other backup sets on the same Source PC had completed and sent the email with the comment "E-mail notification sent."

    I just had this happen again.  I tried the following: Hold CTRL + Shift and click Preferences (to the left, under Settings)Click the button "Stop all LMIB processes"Wait.  Then open console and try the backup set again.Now it is sending the emails.

  • Is there a way to send the email notification as a PDF attachment and the email receipt as an email

    Has anyone found a way to send the email notification as a PDF attachment rather than email? I would still like to send the receipt as an email though? Any thoughts or experiences out there?

    Thanks for prompt response. Does this mean that there are future plans to do this?
    The forms received are used as part of a registration process into aonther system and aren't that User friendly in an email form. They have to be processed as received, so not efficiet to go in through the back end.

  • Cancelling notification from Mailer notification workflow

    Hi,
    can a notification be cancelled from Mailer notification workflow based on item_key or notification_id?
    thanks,
    Durga

    can a notification be cancelled from Mailer notification workflow based on item_key or notification_id?yes,
    Workflow Adminstrator --> Status Monitor --> Provide 'Internal Name'(check wf_notification table to get it against nid) and Item Key
    Click workflow Detail tab and if workflow is active then you will see cancel workflow tab at bottom left.
    Thanks,
    JD

  • HT4865 How do I stop the system from sending e-mail notification every time i update icloud?

    How do I stop the system from sending e-mail notification every time i update icloud?

    Pages.  Every time I add new information to the program I get an e-mail asking me if I was the one logging on.  It is an annoyance.

  • Sending email and alert notifcation using function module

    Hi All,
    I am trying to send email and alert notification messages using function modules in CRM. I am unable to send mail using 'SO_DOCUMENT_SEND_API1'. Getting a short dump message "dictionary mismatch". If anyone knows any FM which can be used for sending mails, please let me know. I also want to send alert messages using some FM. Please let me know any FM in this case as well.
    All help appreciated. This is urgent and please get back to me soon.
    Thanks
    Deno

    Hi Ranjit,
    Thanks a lot for the reply. I already tried these FMs and getting the error message
    Trigger Location of Runtime Error
        Program                                 SAPLBUPA_INTERFACE_TDTRANS
        Include                                 LBUPA_INTERFACE_TDTRANSTOP
        Row                                     4
    I dont know the reason behind the error. The SO_document_send FM is used inside all these FMs. So It wont work.
    Thanks
    Deno

  • Sending OUTLOOK mail from Workflows

    HI ,
    Please help me in getting out of this error encountered during a sample workflow thing.
    Here is the requirement I need to send a OUTLOOK mail from SAP.If the user accepts the workflow task then mail  need to send a recipient ,stating that he accepthed the request.
    Below I designed  that task.
    In send Mail step I added the recipent thing as stated below.But I was unable to send mail to OUTLOOK .In this I am not even  getting notification in my SBWP  in SAP INBOX.
    How should i send the mail to OUTLOOK from SAP.

    Hi Ranjith,
    Here's some friendly advice for you:
    - don't post the same question twice
    - if you get a specific error message ('wait for communications service'), try investigating it yourself by googling it.
    In this case, your issue is almost certainly with your mail setup - you can confirm this by trying to send a mail from SBWP to an external address. If so, it's a Basis issue, not workflow. You can safely hand it off to your Basis team.
    cheers
    Paul

  • Problem encountered while sending a mail notification from BPEL process

    Hi All,
    I am fresher in BPEL world, I am trying to send a notification mail to user using BPEL process. I had done all the configuration needed for mail notification process given in the developer guide.
    I am able send a notification mail to intended recipent and also able to receive response activity from the BPEL process.
    but, I am getting the following error in the server console.
    <2006-10-10 16:58:00,642> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,144> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email account does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email Account atikam@localhost does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification for task 4506.
    The email account that will receive this actionable message is atikam@localhost.
    This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31
    a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification for task 4506. The email account that will receive this actionable message is atikam@localhost. This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    - If anyone encountered the same situation, please let me know why above error message is coming.
    Thanks in advance.
    Sagar.

    Hi All,
    I am fresher in BPEL world, I am trying to send a notification mail to user using BPEL process. I had done all the configuration needed for mail notification process given in the developer guide.
    I am able send a notification mail to intended recipent and also able to receive response activity from the BPEL process.
    but, I am getting the following error in the server console.
    <2006-10-10 16:58:00,642> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,144> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email account does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email Account atikam@localhost does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification for task 4506.
    The email account that will receive this actionable message is atikam@localhost.
    This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31
    a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification for task 4506. The email account that will receive this actionable message is atikam@localhost. This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    - If anyone encountered the same situation, please let me know why above error message is coming.
    Thanks in advance.
    Sagar.

  • Error while sending E-Mail Notification

    hi,
    when i tried to send mail from BPEL i faced error, where i configured the outlook with gmail server its working fine,here i paste the ns-emails.xml and the error code is server.
    ns_emails.xml
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="ALL">
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>my name</FromName>
    <FromAddress>my email address</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>587</SMTPPort>
         <AuthenticationRequired>true</AuthenticationRequired>
    <UseTLS>true</UseTLS>
    </OutgoingServerSettings>
    <IncomingServerSettings>
    <Server>pop.gmail.com</Server>
    <Port>995</Port>
    <Protocol>pop3</Protocol>
    <UserName>my email address</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">my password</Password>
    <UseSSL>true</UseSSL>
    <Folder>Inbox</Folder>
    <PollingFrequency>1</PollingFrequency>
    <PostReadOperation>
    <MarkAsRead/>
    </PostReadOperation>
    </IncomingServerSettings>
    </EmailAccount>
    </EmailAccounts>
    Error in server:
    javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS
    command first. a4sm326251tib.11
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTran
    sport.java:1020)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTranspor
    t.java:716)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTrans
    port.java:388)
    at oracle.tip.pc.services.notification.email.EmailDriver
    .sendMessage(EmailDriver.java:215)
    at oracle.tip.pc.services.notification.email.EmailDriver
    .send(EmailDriver.java:185)
    at oracle.tip.pc.services.notification.DefaultNotificati
    onServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:251)
    at oracle.tip.pc.services.notification.NotificationServi
    ceImpl.sendEmailNotification(NotificationServiceImpl.java:271)
    at oracle.bpel.services.notification.queue.sender.MDBCon
    sumer.deliverNotification(MDBConsumer.java:256)
    at oracle.bpel.services.notification.queue.sender.MDBCon
    sumer.onMessage(MDBConsumer.java:137)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
    hodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
    atingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoin
    PointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterce
    ptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContext
    ActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(
    InvocationContextPool.java:55)
    at com.evermind.server.ejb.MessageDrivenConsumer.onMessa
    ge(MessageDrivenConsumer.java:347)
    at com.evermind.server.ejb.MessageDrivenConsumer.process
    Messages(MessageDrivenConsumer.java:233)
    at com.evermind.server.ejb.MessageDrivenConsumer.run(Mes
    sageDrivenConsumer.java:169)
    at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    please help me out to resolve the issue.
    thanks in Advance
    Aswath Thaniga

    hello Anirudh Pucha,
    thanks for your message,
    i'm downloading all the files you advised and one more doubt regarding SOA installation,
    i'm using BPEL Process manager 10.1.3.1.0 installed on my machine and not installed SOA Suite (problem in installing AS Middle tier), i send voice,sms through BPEL PM which works fine, and faced problem in e-mail notification only, according to me with out installing SOA suite we can use BPEL PM or please let me know the procedure to install the downloading files.
    if possible please send me a details in word documents to my mail "[email protected]".
    Thanks again

Maybe you are looking for

  • ITunes doesn't launch automatically when iPhone is connected

    This used to work fine...I'd attached my iPhone 3GS to my MacBook via USB, iTunes would automatically launch and begin synching my iPhone. Then (I'm not exactly sure what happened...perhaps it was an update, or a spate of time when I was travelling a

  • SetMask works in movieclip but not in scene

    I am using the tutorial code: maskee.cacheAsBitmap = true; maskMC.cacheAsBitmap = true; maskee.setMask("maskMC"); and when I put the elements in a fla file by itself, or if I test the movie clip (not the entire scene) it works fine. But if I test the

  • Buy gift(product) scenario in loyalty management

    Hi exports, we'd like to implement the buy gift scenario with loyalty management in our CRM system. for example, member can buy one product as gift with his earned points. For this scenario, i have following question: 1. how to define product "price"

  • Re: Sync problems with Tour on PC

    I'm having the same problem and don't understand the reply.  I'm switching from a PalmPilot where I could sync and print my calendar on Outlook to the BlackBerry and I can't get a hard copy.  Frustrated!  Please help.

  • Controlling array elements

    HI - I have a mc that plays an FLV. When the video ends AS moves the timeline to another frame where other stuff happens. At that point I want all the video controls to fade and be disabled. I made an array of all the video controls but I can't seem