Sending email from guided procedure (Outgoing Email)

Hi all, i have a technical question over here.
In visual administrator,
I go to the server->services->caf/eu/gp/model to configure my
SMTP.SERVER and SMTP.SERVICE_USER_MAIL atttribute.
for the smtp server, i am using a gmail server,  smtp.gmail.com.
However, the problem is when i do testing in my interactive form callable object. I encounter problem stating i need to issue a STARTLS.
I am wondering if i need to enable SSL in visual administrator to use gmail's smtp server? If so, can some one advise me how can i do it.
many tks..

Colin,
Have a look at section "Setting up Mail templates & Creating an Approval Callable object" in this [help|http://help.sap.com/saphelp_nw04s/helpdata/en/4a/d78041a17e060de10000000a1550b0/frameset.htm]
Not sure if this [document |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0bba346-cb84-2910-2aa9-ba1f8a1c8617] would help you but have a look.
Chintan

Similar Messages

  • Sending mail from oracle procedure

    Hi Experts,
    I want to send mail from oracle Procedure. Anybody please help me out.
    Thanks.

    BEGIN
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected],[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'UTL_MAIL Test',
    message => 'If you get this message it worked!');END;

  • Deleting running processes from Guided Procedure runtime

    Dear all,
    Does anybody know how to delete running process i.e. incomplete process from Guided Procedure runtime dashboards.  The administration workset contains archiving & deleting sections but they can only delete if a process is completed or Erronous or Terminated. 
    In need to delete a running process or incomplete process as some process instances are kicked off and left alone.
    Thanks
    -Bharath

    Hi Ramien,
    I suppose you have acces to the executionContext of GP...
    You can use the following method to get the process Id:
    String processId = executionContext.getProcessId();
    Regards
    Sundeep

  • Error in defaulttrace log from Guided Procedures

    After implementing Guided Procedures for test purposes, it was decided that it was not needed. The configuration was removed. However every few minutes an error message is produced.
    #1.# 00144F482363002300000712000005BE00045789876BB369#1222148100961 #com.sap.workflow#sap.com/irj#com.
    sap.workflow#Guest#0##n/a## 896cb70087fa11dda66900144f482363 #ThreadThreadPool.Worker10,5,SAPEngine_A
    pplication_Threadimpl:3_Group##0#0#Error#1#/Applications/Workflow/Engine#Plain###WFMS.processEven
    t#
    #1.# 00144F482363002300000713000005BE00045789876BBC03#1222148100963 #com.sap.workflow#sap.com/irj#com.
    sap.workflow.#Guest#0##n/a## 896cb70087fa11dda66900144f482363 #Thread"["ThreadPool.Worker10,5,SAPEngine_
    Application_Threadimpl:3_Group##0#0#Error##Plain###com.sap.workflow.eventsender.WFEventException:
    USER_AUTH_FAILED: User account for logonid "user_id" not found!
            at com.sap.workflow.engine.WorkflowRuntime.continueExecution(WorkflowRuntime.java:220)
            at com.sap.workflow.engine.WFMS.processEventEx(WFMS.java:827)
            at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:703)
            at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:692)
            at com.sap.workflow.engine.BPRuntime.continueExecution(BPRuntime.java:22)
            at com.sap.workflow.engine.BPMS.processBPEvent(BPMS.java:98)
            at com.sap.workflow.engine.ejb.EWorkflowDirectBean.processEvent(EWorkflowDirectBean.java:39)
            at com.sap.workflow.engine.ejb._EWorkflowDirectBean__EJBProxy.processEvent(_EWorkflowDirectB
    ean__EJBProxy.java:212)
            at com.sap.workflow.eventsender.WFDirectEventSender.sendWFEvent(WFDirectEventSender.java:24)
            at com.sap.workflow.es.scheduler.TaskSchedulerDeadline.run(TaskSchedulerDeadline.java:91)
            at com.sapportals.wcm.service.scheduler.SchedulerEntry.run(SchedulerEntry.java:174)
            at com.sapportals.wcm.service.scheduler.crt.PoolWorker.run(PoolWorker.java:108)
            at java.lang.Thread.run(Thread.java:534)
    All information (we think has been removed from the portal), we have also looked in the SAP backend and cannot see in the logs were this error is coming from.
    Does anyone know where this error is coming from and how it can be stopped?
    Thanks

    Hi there,
    we have the same Problem... but here we have a named user, that can´t authenticate...
    but we don´t know, where we can find these setting...
    com.sap.workflow.eventsender.WFEventException: USER_AUTH_FAILED: User account for logonid "F.Schrader" not found!
         at com.sap.workflow.engine.WorkflowRuntime.continueExecution(WorkflowRuntime.java:220)
         at com.sap.workflow.engine.WFMS.processEventEx(WFMS.java:827)
         at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:703)
         at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:692)
         at com.sap.workflow.engine.BPRuntime.continueExecution(BPRuntime.java:22)
         at com.sap.workflow.engine.BPMS.processBPEvent(BPMS.java:98)
         at com.sap.workflow.engine.ejb.EWorkflowDirectBean.processEvent(EWorkflowDirectBean.java:39)
         at com.sap.workflow.engine.ejb._EWorkflowDirectBean__EJBProxy.processEvent(_EWorkflowDirectBean__EJBProxy.java:212)
         at com.sap.workflow.eventsender.WFDirectEventSender.sendWFEvent(WFDirectEventSender.java:24)
         at com.sap.workflow.es.scheduler.TaskSchedulerDeadline.run(TaskSchedulerDeadline.java:91)
         at com.sapportals.wcm.service.scheduler.SchedulerEntry.run(SchedulerEntry.java:174)
         at com.sapportals.wcm.service.scheduler.crt.PoolWorker.run(PoolWorker.java:108)
         at java.lang.Thread.run(Thread.java:770)

  • Retrieving attachments from guided procedure

    I have a problem with the GP API in webdynpro to retrieve attachments from a guided procedure.
    According to the documentation on help.sap.com this should be easy:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/d3c2fd5081446a844575e5af <http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/d3c2fd5081446a844575e5af484722/frameset.htm> 484722/frameset.htm
    But when implementing the code the IGPRuntimeManager class doesn't have a function getAttachmentList()
    I checked it in multiple service packs. I tested it on 2004S SP10 and 2004S SP 16 and in both the function isn't there. I also tested it on the Composition Environment and there it does work.
    When looking at the SAP Note 924776
    it says that there are changes in the public API of SAP Netweaver 7.0 SP10 and SP7.
    Does know how this API works after SP10 ?
    I can't find any SAP documentation about how it works after the change.

    Well, Not sure which you are using. I will talk about 10134. I got the count of attachments using Human Task's global variable. count(bpws:getVariableData('MyHumanTask_1_globalVariable','payload','/task:task/task:attachment')).
    I have used hwf:getTaskAttachmentContents() to read the contents of the file and I have assigned that to base64binary type variable.

  • How to get app.processId from Guided Procedures? Please I need You help

    Hi everyone, I need your help, I need to recover the processId once time the Procees was started in Guided Procedures
    I found this link from maintenance process in Guided Porcedures administration
    http://host:port/webdynpro/dispatcher/sap.com/cafeugpui~rt/Runtime?app.processId=IDnumber
    the parameter I need is IDnumber, I dont know if it is possible with web dynpros or with web services please I need you help
    How Can I do this?
    Thank you very much my friends
    Regards from Mexico
    Atte Israel

    Hi,
    I am not sure about the version. But you can follow the steps below.
    1. Create a Web Dynpro Poroject (Ideally create a DC , but if you don't have NWDI setup a project will do).
    2. Add reference to com.sap.security.api.jar and sap.comcafeugpapi.jar
    3. Under WebDynpro References -> Library References add sap.com/cafeugp~api
    4. Put following code in wdDoInit()
    public void wdDoInit()
        //@@begin wdDoInit()
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         IWDMessageManager msgMgr= wdComponentAPI.getMessageManager();
         try{
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
         IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
         Date startDate = new Date(110,1,1); // Start date as 01-Jan-2010
         Date endDate= new Date(111,12,31); // End date as 31-Dec-2011
         IGPProcessInstanceInfo[] array = rtm.getRunningInstances(GPSearchRole.SEARCH_ROLE_OWNER, startDate, endDate, userContext);
         for (int i=0; i<array.length; i++){
         String instanceId = array<i>.getProcessInstanceID();
    //        Write logic to pass the instance ID to the RFC
    msgMgr.reportSuccess("Instance id =" + instanceId);
         catch(Exception ex)
         msgMgr.reportException(ex.getLocalizedMessage(),false);     
        //@@end
    Let me know if you face any issues.
    Thanks
    Prashant

  • How to send sms from plsql procedure

    Dear All,
    I want to send a sms through a oracle procedure.
    What will i use?
    I had heard about utl_smtp package.
    So how will i use it?
    Please help me?
    With regards

    hey i have this procedure
    can this work?
    Create or Replace Procedure SEND_SMS1
    ( p_sender in varchar2,
    p_recipient in varchar2,
    p_message in varchar2)
    as
    mailcon utl_smtp.connection;
    begin
    mailcon :=utl_smtp.open_connection('<your Mail Server SMTP Address>');
    utl_smtp.helo(,'<your Mail Server SMTP Address>');
    utl_smtp.mail(mailcon,p_sender);
    utl_smtp.rcpt(mailcon,p_recipient );
    utl_smtp.data(mailcon,'From: ' ||p_sender|| utl_tcp.crlf||
    'To: ' || p_recipient ||utl_tcp.crlf ||
    'Subject: SMS From Database' || utl_tcp.crlf ||
    p_message);
    utl_smtp.quit(mailcon);
    end;
    exec SEND_SMS(‘[email protected]’, ‘[email protected]’,’This is my first SMS’);

  • How send mail from stored procedure

    How to send a mail from a PL/SQL procedure.I am Writing a Batch program and if the program fails to due to data errors mail needs to be sent to the users indicating that the process is failed.Can anyone please point to any resources.Thanks

    How to send a mail from a PL/SQL procedure.I am Writing a Batch program and if the program fails to due to data errors mail needs to be sent to the users indicating that the process is failed.Can anyone please point to any resources.
    Create this procedure in your database:
    PROCEDURE test_mail
    (sender IN VARCHAR2,
    recipient IN VARCHAR2,
    subj IN VARCHAR2,
    body IN VARCHAR2)
    IS
    crlf VARCHAR2(2):= CHR( 13 ) || CHR( 10 );
    mesg VARCHAR2(4000);
    mail_conn UTL_SMTP.CONNECTION;
    BEGIN
    mail_conn := utl_smtp.open_connection('mailhost', 25);
    utl_smtp.helo(mail_conn, 'mailhost');
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
    'From: ' || sender || crlf ||
    'To: ' || recipient || crlf ||
    'Subject: ' || subj || crlf;
    mesg:= mesg || '' || crlf || body;
    utl_smtp.data(mail_conn, mesg);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(sqlerrm);
    END;
    Let me know in case of any concerns..
    Chow
    Peyush

  • Cannot launch SAP Transaction from Guided Procedures

    I created a Callable Object that is linked to a SAP Transaction.
    When I test it by Execute-ing, I got a browser prompt to Save or Cancel the "xxxxxxx.sapssd" file.
    How can I get it to launch the SAP Transaction?
    TIA.

    Hi,
    Kinldy ensure that you used the following process to create the Callable Object
    - Select the Parent Folder to Create Callable Object in GP Design Time
    - Click on 'Create Callable Object' in the Action Items for Gallery
    - In the Create Callable Object Step, choose 'SAP Transaction' option under 'User Interface'
    - Provide the Basic Data in Basic Data Section
    - In 'Define Object' step, provide the SAP System name as created in the SLD. Mostly the Alias name is displayed in the list. Also provide the default Transaction you wanted to execute.
    - In the 'Define Input' Section, you can optionally provide the input parameters. Leave it blank to make it simple.
    - In the 'Set Configuration' section, check the 'Execute Immediately'
    - Finally Finish and Open the Callable Object for testing.
    Following the above process should help you launch the SAP Transaction in a separate browser window.
    After verifying the above steps, should you still have a problem, then it would be helpful if you can provide the steps you followed in order to replicate the problem.
    Thanks
    Siva

  • Configuring visual administrator to send outgoing email from guided procedu

    Dear all,
    i am trying to configure my visual administrator to send email from guided procedure.
    i have configure the smtp.server and smtp.service_user_mail in
    caf/eu/gp/model.
    hwever i still encounter error while testing my callable object to send email. can someone pls help me in this area.
    may i knw what other configuration is needed to be done to allow sending of email?
    If any one have successfully send email using guided procedure, mind shariing with me the step u have performed?
                                                                            tks a million.

    the smtp server i am using is "smtp.gmail.com"
    I am wondering if i need to configure anything in the gp administrator workset to allow sending of email from gp?
    somebody pls advice me in this area. I

  • Problem in sending mail from database with attachment

    Hi All,
    I amd using forms10g,oracle10g
    I am facing a error while running a procedure to send mail from db
    procedure is:
    declare
    ErrorMessage VARCHAR2(4000);
    ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    --SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    --exec dbms_java.set_output(5000);
    BEGIN
    ErrorStatus := SendMailJPkg.SendMail(
    SMTPServerName => '192.168.4.2',
    Sender => '[email protected]',
    Recipient => '[email protected]',
    CcRecipient => '',
    BccRecipient => '',
    Subject => 'hth106: Test JavaMail',
    Body => 'This is the body: Hello, this is a test that spans 2 lines',
    AuthReqdYNNum => 1,
    UserID => 'jagan',
    Password => 'songbirds',
    ErrorMessage => ErrorMessage,
    Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
    END;
    while running this procedure i am receiving following error
    "ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IncompatibleClassChangeError"
    but the same procedure sending mail from all other user in the same database
    I am very myuch confused.i have given the all rights
    below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
    below rights are given to this user
    1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
    2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
    3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
    4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
    5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
    exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
    6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
    7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
    7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
    please advise me to proceed further
    Thanks in advance
    Thanks ,
    Antony

    With respects to the following:
    The bit you'll have most diffulty with is the attachment, because you can't be sure that
    the directory path specified is one that the database can read from. You can probably
    resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
    Just my 2 cents on the topic. :-)
    Craig...

  • WebDynpro ABAP & Guided Procedures

    Can WebDynpro ABAP components be included as callable objects in a Guided Procedure within a portal?

    Hi Ryan,
    Yes, it is possible starting from NW2004s.
    When I go to Guided procedures -> Design Time, I see an option for ABAP webdynpro application under th menu Type.
    Another option would be to put the ABAP webdynpro inside an iview and use that iview from guided procedures.
    Regards,
    Srini.

  • Using FLEX Visual Composer iViews in Guided Procedures and the UWL

    Hello Experts,
    I am trying to display a GP workitem and I am getting this error
    "The portal page builder required to execute this callable object is not available."
    I have a GP Process and it haves FLEX Visual Composer iView, it runs fine un the Runtime workbench from Guided procedures Role, but when I configure de GP UWL Connector and try to open a GP workitem with a VC FLEX iView i got the error "The portal page builder required to execute this callable object is not available."  Guided procedures with webdynpro iView works fine.
    I have a NW 7.0 SP10
    Could you please help me undertand what configuration I am missing??
    Regards.

    Hi Daniel
    Please go through the following link(looks like a helpful one):-
    Link Between Visual Composer and Guided Procedure
    Regards
    Navneet

  • Error in UWL --Guided Procedure initiated by Webdynpro

    Hi All,
    I have initiated a guided procedure process from webdynpro for java code. This is creating a item in UWL inbox. When I am clicking on this item it is showing following error:
    Could not retrieve process instance: contact your system administrator
    Same initated process can be opend from guided procedure runtime.
    Please help.
    Thanks
    Raktim

    hi ,
    the following blog explains how to  do the customization of UWL for guided procedures
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/904ca240-63bc-2a10-1c98-de81b6a045bf
    have you done all these?
    Thanks and Regards
    shanto aloor

  • Security for Offline Interactive Form in Guided Procedure

    Hi,
    I have a senario that require a form to be able to downloaded as an offline form from Guided Procedure with security mechanism. I know that Adobe interactive form able to contain scripting like FormCalc and Javascript.
    I was thinking whether is it possible to get the initiator & approver information like User ID and Password and assign it to the variable in the form using javascript, so that only the authorise personnel able to login to the form whereas the unauthorise personnel who have the form but unable to login and edit the form. Please advice. Thanks
    Best Regards,
    Rayden

    Hi,
    I also have a similar issue where i have to validate whether the user submitting the offline form is an user who has authorisation ( a table storing user credentails) .
    Were you able to solve this issue of security in offline form.
    Appreciate if you can throw some light.
    Regards
    Jayesh

Maybe you are looking for

  • Why doesn't Adobe recognize my password on my iPad?

         Unfortunately my iPad2 went for a swim the other day and drowned----serious user error.  Fortunately the user (me) had backed up the iPad on a regular basis so all data, aps and setting were recovered.  The only serious glitch occured when I tri

  • Regd Sender  Communication channel

    Hi all, I have configured a sender communication channel for picking a file. Everything looks fine to me, but the file is not getting picked up. I checked in RWB for channel, channel is configured fine.its says  processing started, and processing fin

  • Create multiple pages

    i have a form that is distributed statewide and i need the ability for the user to be able to create mutiple pages - this form may have 2 pages or 200 pages and right now i have 20 copies of the page in the file and if they have more than 20 pages th

  • ESS portal- Time Entry

    HI  Experts, I have to do some validation by restricting the user not to change the Time Entries more that 6 pay period in the past. I ahve a user Exit CATS0003 where i think i can do that by putting some validation on the Date selected by user for t

  • "Preparing Disk for Netbooted OS Install"

    I gather it is normal for an OS installation to indicate it is preparing the h disk for a NetBoot install before it settles on preparing for a local booted install? Both entries have been logged. The local install message is expected, but not NetBoot