Send mail notification

hi friends,
i have a problem:
We use automatic e-mail notification when we create a new EP user it works when we use standard user creation iview but it doesn't work when we create a user through web service...
i use the following code :
try {
                    IUserFactory iuf = UMFactory.getUserFactory();
                    user = iuf.newUser("francesco");
                    user.setFirstName("francesco");
                    user.setLastName("2nd name");
                    user.setEmail("[email protected]");
                    //user.setCellPhone("");
                    Locale lang = Locale.ITALIAN;
                    user.setLocale(lang);
                    user.save();
                    user.commit();
                    IUserAccountFactory uaf = UMFactory.getUserAccountFactory();
                    if (uaf != null) {
                         IUserAccount uacc =
                              uaf.newUserAccount("francesco", user.getUniqueID());
                         ISecurityPolicy ispf = UMFactory.getSecurityPolicy();
                         uacc.setPassword(ispf.generatePassword());
                         uacc.setPasswordChangeRequired(true);
                         uacc.save();
                         uacc.commit();
               } catch (UMException e) {
                    // TODO Auto-generated catch block
                    return e.getMessage();
previously tks.
Regards
Francesco

Hi,
we have the same problem and we don't think it's necessary to use the JavaMail API to send it inside the web service.
Best regards.
Angelo

Similar Messages

  • Why Grid control will mis-judge agent state and send mail notifications?

    Sometime grid control will send mail notifications while the agent is still up.No log about network problems occur.So what about the root cause for this kind of issue?Has anyone falled into the same situation?And how to resolve?
    Thanks!

    Which alert are you getting?

  • Send mail notification on creation of substitute through SBWP.

    Hi All
    We create substitution for a person through SAP Mailbox. Settings>>Workflow settings>>Maintain substitute. This maintains the table HRUS_D2.
    How can we send a notification mail to the concerned people (the person who has been created as the substitute) immediately? Is there a user exit for the same where we can call our FM which sends out the mail.
    Please help.
    Thanks in advance.
    Harsh

    Can anyone help me on this.

  • Personal data change in PORTAL (PA30) - need to send mail notification

    Hi,
    When there is any change in personal data on PORTAL need to send a mail notification to the respective agents. I was able to design the workflow in such a way that , whenever there is any change in the personal data (Ex. Marital status) it trigger an event and workflow starts, inturn it send mail to external system and sap Userid.
    The question is ?
    1. If the personal data is changed from the portal , does it trigger the same event in the backend ? does 
        it  start my workflow?
    Thanks!
    Richard A

    Hello Richard,
    In my opinion same event is triggered. You can check it in transaction SWEL.
    Please have a look at the following threads more more detailed information,
    Workflow is not trigerred from the portal
    /thread/113450 [original link is broken]
    /people/alan.rickayzen/blog/2003/10/13/workflow-in-the-enterprise-portal
    Best regards,
    Abir.

  • Sending Mail Notification From the database server

    Hi All,
    I want to send the mail notification to any email id from the database server.
    I used the in built Package UTL_SMTP(pp_to,pp_from,pp_subject,pp_hostname) but i didn't got the success. Actually i dont know how and what parameters has to pass to this package .
    It will great help if some body helps with the an example.
    Thanks in Advance

    917574 wrote:
    I want to send the mail notification to any email id from the database server.Oracle version?
    The easiest is to use UTL_MAIL - available from 10g onwards. If you're on 11g, you also need an ACL (Access Control List) entry to allow PL/SQL code to step outside the database and connect to an external server.
    UTL_MAIL uses UTL_SMTP. You can use UTL_SMTP directly, but then you need to understand the SMTP protocol and how to correctly construct Multipurpose Internet Mail Extensions (MIME) e-mail bodies. Not difficult - but something that many developers seem insistent to remain ignorant about.

  • Reg :send mail notification

    Hi all
    i have bit new scenario with me can any one please guide me how to come out of this issue .
    In the manpower requisition process on the portal, we need to make the
    following change:
    - Add a notification mail to Head HR whenever there is new requisition
    that is approved by BU head and the subsequent actions made to the
    requisition
    - Report to be generated on a periodic basis on the open positions and
    the status to the Head HR .
    Thanks & Regards
    Deepika
    Edited by: deepika_indian on Jul 14, 2011 9:13 AM
    Edited by: deepika_indian on Jul 14, 2011 9:40 AM

    Hi Deepika,
    - Add a notification mail to Head HR whenever there is new requisition
    that is approved by BU head and the subsequent actions made to the
    requisition.
    --->>>> You can achieve this from  the E-recruitment  Workflow,
    ask your workflow team ,they will help you in this.
    - Report to be generated on a periodic basis on the open positions and
    the status to the Head HR .
    ------->>> This you can not do from E-recruitment package you will have to go to
    the Custom Development.
      If you have implemented MSS then there we have such kinds of reports.
    Regards,
    Piyush

  • How to send mail notification with envrionment details

    Hi,
    I set up email notifications once the ODI task completed. Its working fine, but I want notifies email with environment details, i.e. master rep name, work rep name, and host name details.
    Is it possible? If yes please tell me how to do?
    Thanks in advance.

    Hi Mani,
    You can check out the ODIref functions in the Expression editor (in refresh tab of variable ).
    Please search there, it will be usefull to you.
    Thanks
    Madha

  • Sending a mail/notification after INITIAL LOAD

    Hi All,
      I have requirement to send mail/notification after the initial load of equipment from ECC to CRM.
    Every time monitoring and refreshing is taking over nights efforts. Rather than checking that mail makes us simple.
    Please provide me relavant methods and setting to implement and configure for the same.
    Thank,
    Shyam K Gangisetti

    My reply was supposed to be for some other post. Sorry that it got posted for this question.
    Anyhow, for your query - you can create a Ztable with respective fields relevant for email sending
    Then lets assume that load is for business partners..so you can create a implicit enhancement in FM CRM_BUPA_MAIN_VAL and control mail sending from there using entries of above Ztable.

  • Mail not received sent through SMTP Send Mail Task

    Hi,
    I have a SSIS package which will send mail notifications. This package is deployed on Integration Services Catalogues as Project deployment. This package having a list of notifications regarding the task status.The receiver end got few
    notifications but missed of the notifications. This issue is not frequent. Sometimes we are getting all notifications. Sotimes missing some notification. All these using SMTP tasks with same SMTP connection. 
    I checked the task status in Standard Reports for all Executions. The task status for all these notification tasks are Success.
    What are the possible reasons for this?
    Thanks and regards,
    Muhammed Shakeer
    Muhammed Shakeer

    Hi Muhammed,
    If the issue happens sometime only and all executions was run successfully, then the issue should be caused by the SMTP server. The SMTP server may refuse the connections.
    To verify the cause, please:
    Check SMTP server log
    Enable logging for the SMTP task. Check the log after execution
    To understand how to enable Logging, please see:
    http://technet.microsoft.com/en-us/library/ms181205(v=sql.110).aspx
    Thanks,
    Jinchun Chen

  • Send mail not working in MINISAP

    Hi experts,
    I did automatic workflow customizing in SWU3, then created a test workflow to send mail notification to  workflow initiator. After running WF, the mail is not received in user workplace. In workflow log it shows Mail has send.
    Did any additional configuration has to be done in SWU3....

    Hi RK
    It may have a very simple error
    - Check your work flow log with the help of SWUD .
    - Check your agent assignment
    - Check your event linkage
    Do tell me in otherwise case.
    Regards
    Sachin

  • Send email notification from outside of OIM

    Hi,
    I have a code which i am running out of OIM. The code does the following things:
    1. Updates user's end date of the basis of end date given as input.
    2. Send email notification once user's end date is updated.
    I am able execute point 1 successfully-getting user's key, manager key, updating user's end date in usr table But I am facing issues while sending mail notification to user's manager. If anybody have worked on this type of scenario, then please let me know.
    Thanks,
    Kalpana.

    Sending Text file as an attachment to email.

  • Mail Notification using resolver

    Hi Everyone,
    I am trying to send mail notification to role's email id using notification resolver. If any one has a solution please let me know.
    Regards,

    Kevin,
    I was not able to find any relevant api, thts the reason I am checking with you ppl.
    Regards,
    Pavan

  • CiscoWorks LMS not sending mail

    Hi,
    I have CiscoWorks LMS functionning properly. For some time, I am seeing problems with it sending mail notifications. When it is rebooted, it sends the mail properly but after some time, the mail notifications are not sent.
    Is there a log file to see the issue with the mail sending? I am not sure whether it is a CiscoWorks LMS issue or the mail server (on which i have no access) to try to isolate the problem.
    The last change that I made to the server, that might be a possible cause. I had installed the HP NIC teaming with 2 NIC cards teamed and assuming the IP address of the server.
    I just want to check with the server before proceding to mail server blacklisting or other.
    Thanks in Advance,
    Ashley

    Sorry,
    Hi,
    I have CiscoWorks LMS functionning properly. For some time, I am seeing problems with it is not sending mail notifications. When it is rebooted, it sends the mail properly but after some time, the mail notifications are not sent.
    Is there a log file to see the issue with the mail sending? I am not sure whether it is a CiscoWorks LMS issue or the mail server (on which i have no access) to try to isolate the problem.
    The last change that I made to the server, that might be a possible cause. I had installed the HP NIC teaming with 2 NIC cards teamed and assuming the IP address of the server.
    I just want to check with the server before proceding to mail server blacklisting or other.
    Thanks in Advance,
    Ashley

  • Send mail to multiple recepients and multiple groups from workflow

    Hi,
    I have a requirement where during the process flow, I have to send mail notifications to multiple people at each step. Have done the outlook config and working fine. Also mail steps are working fine for one recepient. But I have to send relevant mail content to multiple people and to multiple groups like HR, IT security etc. What would be the best approach for this req?
    Please help.
    Thanks,
    Raj.

    Hello,
    If I understand you correctly, you have two options:
    Option 1 (if you must send to an external e-mail address):
    1- identify all recipients in a previous step and retrieve their e-mail addresses from the system
    2- collect all e-mail addresses in an internal table you define in the workflow template container (you can use table type BCSY_SMTPA)
    3- in the e-mail step, choose Recipient type as U (E-mail Address)
    4- in the e-mail address field, click F4 and you will see the e-mail address internal table you defined in step 2 above; use that variable
    Option 2 (if you can send to SAP inbox):
    1- identify all recipients in a previous step and retrieve the agent types and IDs (structure SWHACTOR)
    2- collect all agents into an internal table (you can use table type TSWHACTOR)
    3- in the e-mail step, choose Recipient type as G (Organizational Object)
    4- in the drop-down box, keep the value as "Expression"
    5- use F4 help to insert the internal table defined in step 2 as the expression value
    Hope this helps you.

  • Notification mailer is not able to send mails to Outside domain i.e gmail

    Hi All,
    We are in 12.1.3 EBS application with 11.1.0.7 DB on Aix 64 bit platform:
    resently we configured notification mailer with out any issues
    But the issue is notifications are delivered to with in the domain itself but not to outside the domain i.e gmail and yahoo
    SMTP server host name is owa.craftsmanautomation.com the same we used to configure the Notification mailer
    Even we verified from os level using telnet utility as follows:
    $ telnet owa.craftsmanautomation.com 25
    Trying...
    Connected to 192.168.5.8.
    Escape character is '^]'.
    220 Capl-cas01.CRAFTSMAN.LOCAL Microsoft ESMTP MAIL Service ready at Thu, 12 Jul 2012 14:03:47 +0530
    EHLO CAPL-PROD
    250-Capl-cas01.CRAFTSMAN.LOCAL Hello [192.168.5.12]
    250-SIZE
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-STARTTLS
    250-X-ANONYMOUSTLS
    250-AUTH NTLM
    250-X-EXPS GSSAPI NTLM
    250-8BITMIME
    250-BINARYMIME
    250-CHUNKING
    250-XEXCH50
    250-XRDST
    250 XSHADOW
    MAIL FROM: [email protected]
    250 2.1.0 Sender OK
    RCPT TO: [email protected]
    250 2.1.5 Recipient OK
    DATA
    354 Start mail input; end with <CRLF>.<CRLF>
    Subject: Test message
    Test message body
    250 2.6.0 <[email protected]> [InternalId=85753] Queued mail for delivery
    quit
    221 2.0.0 Service closing transmission channel
    Connection closed.
    In the above command in place of FROM and TO mail-id's if we use any personal mail-id's getting error message as "Unable to Relay".Please suggest is there any changes we need to done at SMTP server Level or OS level or Application Level.
    Thanks in Advance

    925263 wrote:
    Hi Hussein,
    Thanks Alot for your reply.
    Currently we changed the SMTP Server(mail.craftsmanautomation.com).we used anoth SMTP server to configure Notification Mailer.Because previous one(owa.craftsmanautomation.com) is not able to send mail's to outside domains.
    But in this case we got the below error message while testing.Below error message we captured from the output file of the script Oracle Workflow ATG Support: R12 Java Mailer Setup Diagnostic Test.
    ERROR
    [Nov 10, 2012 1:32:45 PM GMT+05:30]:1352534565017:-1:-1:capl-prod.craftsmanautomation.com:192.168.5.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:192.168.5.13:84096:1352529863628:11:ERROR:[SVC-GSM-WFMLRSVC-110812-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.send(Message)]:Problem encountered when sending to {[[WFTEST <[email protected]>]]} -> javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    class javax.mail.SendFailedException: 554 5.7.1 <[email protected]>: Sender address rejected: Access denied
    Please see these docs.
    Email Not Received javax.mail.SendFailedException: Invalid Addresses [ID 876835.1]
    Workflow Notification Mailer Unable to Send E-Mail Notifications [ID 374804.1]
    Unable to Email Proposal Documents to an 'External Address' [ID 1126223.1]
    How to address Email Center: Outbox Processor Error: Invalid Addresses [ID 1399427.1]
    Thanks,
    Hussein

Maybe you are looking for