Email input xml as body of mail

Dear all
I need to provide the input xml in the body of the mail. The body of the mail should be the input xml.
I understand that in order to provide the content in the email body we need to use the XIMail30  package. However this is only for the text. But we need xml in the email body?
Regards
Monika

hi,
>>>But we need xml in the email body?
what you can do is you can use escape chars
  "   & quot;
  <   & lt;
  >   & gt;
  &   & amp;
which will allow you to send XML data as text and it will be visible as "XML" in the e-mail body right ?
or you can use CDATA to wrap the XML too and send as text
Regards,
Michal Krawczyk

Similar Messages

  • How to generate the User-Input XML Body for executing workflows via REST APIs: The Solution

    I see that executing a workflow via REST APIs requires lot of work to be done just to prepare the right User-input XML body. Any mistake and you have some major debugging to do. Larger the number of User-Inputs, the bigger is the problem.Life is so much easier at the WFA GUI with Display names and tooltip help for User Inputs which are very easy for reading and providing the right values. I don't have any such privileges when manually preparing the User-Input XML body.It’s been asked numerous times how to provide User-Input values for type table, or Query (Multi-Select) etc. These are complex User-Input types and has lots of scope for user mistakes.I can have User-input dependency at WFA GUI which allows me to make the right selection, but while preparing my XML body I need to take care of it myself.An operator is allowed to execute workflows, but the same Display names which help him make the right user-inputs, makes it impossible for him to prepare the user-input body xml. Display names can't be used in in XML body and he can't know the exact parameter names by looking at the Display names. So he need to always contact the Admins/Architects for this. And Architects/Admins can't be expected to keep providing User-Input XML body to operators every operator. How about if I could enter all the User-Input values in my workflow execution at WFA GUI, I can do a preview which passed to my satisfaction and then I can magically get the XML body for it which I can use to execute my workflow from REST APIs from any client. It could be so very much easy for me than building my User-Input XML body manually. This is exactly what I'm going to give you right now. You open the WFA in browser, Go to your workflow, Start execution, you input values from GUI reading carefully the display names, preview it to your satisfaction and then get the XML body. Assume your workflow is called “Workflow to Print a given Message”. It’s a simple workflow with only 1 user-input Displayed as "Message to Print" Prerequisites:  The following are the one-time prerequisites. You need PowerShell 3.0 on your WFA server.Import the attached Generate_Workflow_User_Input_Body_in_XML.dar in your WFA. It’s our magical command called "Generate Workflow User Input Body in XML"Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhostMatch: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   Steps: Suppose you have a workflow called "Workflow to Print a given Message". You want to execute it from REST apis and need to prepare the user input XML body.  Select this workflow and clone it. The workflow clone is the exact copy of your original workflow word by word, input-by-input. It will open in Edit mode with name "Workflow to Print a given Message - copy".Add the command "Generate Workflow User Input Body in XML" at the beginning of your workflow. This is a must. This command need to be the first command in your cloned workflow.This command requires no input. So for its Parameters just press okay and save the workflow.You are done.Now Execute the clone workflow. You'll see all the user-inputs available to you. Make your choices as you wish. Preview it to confirm that planning is passed and u have no errors.Execute it now.You'll see that the our magical command "Generate Workflow User Input Body in XML" has failed in our clone workflow execution. Don't worry, its fate was decided to be so. But it didn't fail before giving me what I really wanted. i.e. my XML body for my real workflow. It displayed it in the GUI as well as saved it in your WFA server @ C:\temp\<workflow_name_dd_MM_yyyy_hh_mm_ss_.xmlIt also deleted all the reservations of this particular failed job. So NO major residue left to be cleaned.To summarize: Clone Your workflow and Add the command "Generate Workflow User Input Body in XML" as your first command.    Start Execution, provide your User-inputs and preview it. Be satisfied and Press Okay.   Now Execute it.  After a few scconds this cloned workflow will fail with Error "All done. The Workflow will fail now."     See the command execution logs for this command. You'll see the User-Input XML body. It has also saved the XML file at C:\temp in your WFA server.   Have fun. sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • How to send the body of mail in html format using servlet

    Hi
    i developed an servlet using sun.net.smtp.SmtpClient package,my servlet receiving data from an form,i can able to send mail successfully,but my mail body part is in the text format,but i would like to send it as an html format,for ex <input type="text" size="25" name="Name"> as an input field with value received from the form instead of showing tags as i mentioned<input type="text" size="25" name="Name"> ,any help would be appreciated.
    Regards.

    See this program
    But here whats the problem is ,
    some maiservers doesnot support html code if u send this mail to yahoo account it will show html code as it is,
    hotmail account encodes the html and shows proper fonts and headings
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import sun.net.smtp.SmtpClient;
    public class SendMail {
              public static void main(String args[]){
              int i = 0;
              //while (true) {
              SmtpClient mail;
              try{
                   i++;
                   String email = "[email protected]";
                   String from="[email protected]";
                   mail=new SmtpClient("bizpivot.com");
                   mail.from(from);
              mail.to(email);
                   PrintStream msg=mail.startMessage();
                   msg.println("To: " +email);
                   msg.println("Subject: Hai" i "!!!");
                   msg.println("<html><head><title>Untitled</title></head><body bgcolor='red' text='#00ffff'><font face='Courier New' size='+3'>Hai How are you Man!!!</font></body></html>");
                   mail.closeServer();
              System.out.println(i);
              catch(Exception e){e.printStackTrace();}

  • With "Download Headers" option checked, opening plain text emails results in cropped body text

    When I open raw plain text emails (i.e. not formatted as HTML) I only see the first
    255 characters of the email body; all of the remainder is chopped off, and never appears no matter how many times I re-open the email.
    I have narrowed this down to my somewhat unusual download preferences in Outlook. They are configured as follows:
      Send/Receive -> Download Preferences -> Download Headers (checked).
    I know the email text is there in full, because when I point my web browser at OWA, I can see the full body.
    If at first I choose Mark to Download and then Process Marked Headers, I can then open the plain text email and see the body in full.
    When I open HTML emails I have no problems, regardless of whether the email download was forced or not.
    This issue existed on my old Office 2010 installation for XP too. It persists now I have upgraded to Office 2013 on Win 7.
    This is not an acknowledged issue yet within the Outlook team (in fact, a possibly related issue was
    reported by someone else 3 months ago but suggested to be a font corruption issue, which is incorrect).
    It seems like Outlook just forgets to download the full text for plain text emails when opening them. It's repeatable every time, so it doesn't seem like a race condition. (To reproduce: set your Inbox download preferences as above, then send
    yourself a plain text email, wait for the Inbox headers to finish refreshing and then open the new email).
    We use a 3rd party provider (Cobweb) for our email service and I believe they are using Exchange 2013.
    We use ESET Smart Security Suite and I have tried disabling the scanner for that but see no change in the outcome. I would appreciate if anyone without ESET could try to reproduce these steps for themselves and confirm.
    Starting Outlook in Safe Mode does not solve it.
    Note: I already asked this
    question at the Office Community site and it was suggested I
    post on the Exchange Server Outlook Clients forum. The feedback there suggested it to be client related, so now I've been directed to post here!
    Thanks,
    Marcel

    Hi Melon, thanks for your response.
    My plain text font is set up as the default, Automatic.
    In any case, I can see the first 255 characters of the plain text body, so plain text font colour can be eliminated as a potential problem.
    After the 255th character, the body text then stops. There are no "hidden characters". If I shrink the window height to accommodate just what I see, the vertical scrollbar does not appear. This confirms that there are no hidden lines of text
    below.
    The mail is simply not downloaded from the server correctly. If I drag the mail onto my desktop, then view that file in Programmer's Notepad, I can see that after the position representing the 255th character in the body of the email, there is garbage (control
    characters).
    If, instead, I first mark the email for downloaded and then click the "process marked headers", wait for it to download and then drag it onto my desktop, by contrast, the body contents look complete and this is reflected in the fact that I can
    see the whole email when I open it in Outlook.
    This problem has so far affected me on four different PC setups (1xWinXP, 3xWin7) and two versions of Outlook (2010 and 2013). However, Cobweb -- our cloud email provider -- did recently upgrade to Exchange 2013, so that might be an important factor.
    I don't think I can remember seeing these plain text issues in the 10 years previous to that upgrade during which I've been using various flavours of Outlook.
    I have supplied repro steps in the original report above. Could someone please try these? I have expanded them in full below for simplicity:
    To reproduce:
    1. Change your download preferences in Outlook. They are configured from the ribbon bar as follows (assuming you are using Outlook in Cached Exchange mode, connecting to Exchange 2013):
      Send/Receive -> Download Preferences -> Download Headers (checked).
    2. Send yourself a plain text email containing more than 300 characters of text.
    3. Wait for the Inbox headers to finish refreshing.
    4. Open the new email.
    Result: The email body will be truncated at the 255th character.
    Expected: The email body should show all the characters.

  • How do I "link" an email address in the body of an email?

    I know how to link a web url, but I cannot find a way to link an email address in the body of an email. I want the recipient of my email to be able to click on the email address that is displayed in my message and have it open a new email to that address on their computer like I have done in every other mail software. Thanks in advance for your help.

    Highlight some text in the message body, Insert/Link (Ctrl-L), enter mailto:[email protected] in the Link Location box.

  • I want to drag files to mails but not in body of mail , more over the available type of attachments is only photo or video so how I can attach another type

    I want while replying incoming mails to drag files to mails but not in body of mail , more over the available type of attachments is only photo or video so how I can attach another type

    There is no dragging of anything in iOS.
    Attach as many files or emails as you'd like until it reaches the max capacity of attachements for the email provider.

  • Change e-mail body in mail adapter using module.

    Hi All,
    I am woking with one mail adapter and I prepared one code to change the attachement name and body content. The attachement is working good but the body e-mail is not working.
    After to check a lot of blog my code now is creating two attachements one with the Payload (xml) and other with the text that suppose to come as a body e-mail.
    Someone could help me ?
    Thanks a lot.
    Michael Peretto

    Hi Michael,
    Can you check if your main attachment (the one that should be the mail text) does not carry the wrong content-disposition header?
    The easiest way to check is to use some message capturing tool (e.g., TCPGateway attached in the SOAP FAQ Note). If this header is present, it should have value inline to inform the mail client to display the content in inline. If the value is set wrong, the MessageTransformBean module can be misused to repair this content header.
    Best regards, Yza

  • Default text in the body of mail when sent to vendor thru PO

    Dear friends,
    We need to put in the email body a message to vendor.
    We wrote in the tcode NACE a message in the text field and the email was generated , but without the text body !
    The attachment has been generated correctly. but no text in the body mail...
    Does anyone knows the way to send email with a default body text to vendors ?
    best regards,
    Ale

    Hi
    You need to do some configuration for this.
    Goto NACE .
    Select EF and click on OUTPUT TYPES.
    Then select Output Type NEU and click on processing routines .
    In that you have to add a new entry - medium 5 .
    Then you need to assign a program, form routine and form.
    You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as
    TEXT_SYMBOL_REPLACE .
    Now the subject will be PO No. 1800004202.
    You need to maintain your email id in tcode SU01 and also the vendor's email id.
    Now while creating a new purchase order , change the medium to External Send .
    Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    Goto tcode ME9F .
    Execute.
    Select the checkbox and click on Output Message.
    You will get a message MAII 00000000000001 generated .
    If the BASIS guys have made the necessary configuration for sending mail then the mail will go .
    You can see the status and what is sent via tcode SOST.
    Hope it helps
    Best Regards

  • How to send an email using XML Publisher

    Can any body help me how to send an email using XML Publisher.
    Regards,
    Suresh

    Sorry ,
    when a http://blogs.oracle.com/xmlpublisher/newsItems/departments/documentDelivery
    this it show this not answer the question.
    Thanks
    Welcome to Oracle Blogs
    Welcome to the Oracle blogging community, where Oracle executives, employees, and non-employees exchange views about customer requirements and best practices.
    We're sorry, the weblog you requested cannot be accessed.
    - You may not have the necessary permission for access the weblog.
    - This weblog does not exist.
    You may wish to try again using one of the tools below.
    - Check the URL and contact your System Administrator for access.
    - Or click here to go back to Oracle Blogs homepage.
    Powered by
    Movable Type and Oracle
    The views expressed on this blog are my own and do not necessarily reflect the views of Oracle. Terms of Use

  • HTML in body of mail

    Hi All,
    I have to schedule  DB reports in HTML format through mailx .
    How Report are send as body in HTML format .
    Thanks,
    Manish

    See this program
    But here whats the problem is ,
    some maiservers doesnot support html code if u send this mail to yahoo account it will show html code as it is,
    hotmail account encodes the html and shows proper fonts and headings
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import sun.net.smtp.SmtpClient;
    public class SendMail {
              public static void main(String args[]){
              int i = 0;
              //while (true) {
              SmtpClient mail;
              try{
                   i++;
                   String email = "[email protected]";
                   String from="[email protected]";
                   mail=new SmtpClient("bizpivot.com");
                   mail.from(from);
              mail.to(email);
                   PrintStream msg=mail.startMessage();
                   msg.println("To: " +email);
                   msg.println("Subject: Hai" i "!!!");
                   msg.println("<html><head><title>Untitled</title></head><body bgcolor='red' text='#00ffff'><font face='Courier New' size='+3'>Hai How are you Man!!!</font></body></html>");
                   mail.closeServer();
              System.out.println(i);
              catch(Exception e){e.printStackTrace();}

  • Batch input xml files to one flatfile output

    I have a receive location where I would need to wait for couple of minutes to get
    all the xml files needed to process. Every file in that receive location is of same format.
    I would need to produce one output flat file for all the input xml files received within couple of minutes.A mapping need
    to be applied on every file before it's converted to a flat file batch.
    I tried to batch the input xml files but I am unable to implement the mapping which has to be applied on every input xml
    file.
    How do I approach this?

    Thank you for your response.The transformed xml has got header, body and trailer so when I processed two files by using the map in the receive port. The batched output flat file is as below:
    HEADER 27052014                                   
    1      HSGbryan_oNSYS300270520141038                                     
    2      HSG3851911NSYS150220420141455                      22042014       
    3      HSG3851909NSYS150220420141449                      22042014       
    4      HSG3853034NSYS150220420141436                      22042014       
    TRAILER      4
    HEADER 27052014                                   
    1      HSGbryan_oNSYS150270520141045                                     
    TRAILER      1
    However, the required output is
    HEADER 27052014                                   
    1      HSGbryan_oNSYS300270520141038                                     
    2      HSG3851911NSYS150220420141455                      22042014       
    3      HSG3851909NSYS150220420141449                      22042014       
    4      HSG3853034NSYS150220420141436                      22042014        
    5      HSGbryan_oNSYS150270520141045                                     
    TRAILER      5
    Is there anything we can tweak in to have one header and trailer with the body having sequential row count for the entire flat file batched message?

  • How to retain prolog in output xml after parse the input xml

    Hi,
    I am using com.bea.xml.XmlObject.Factory.parse(String) method to parse a xml.
    Input XML is having prolog defore the root node.But after parse the xml using the above method, the prolog is not there in the Output XML.
    can any one help me to retain the prolog in Output XML as it is in Input XML......
    Thanks in advance..
    Regards,
    Deba

    Hi,
    The Input XML is like
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But after parse the Output XML become
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But due to project requirement i want to keep the prolog(<?xml version="1.0" encoding="UTF-8"?>) as it is with Output XML after parse the xml.
    can i use any XMLOption while calling parse() method...Or any one have any otherway to retain prolog after parse ?
    please help me to get it .
    Thanks in advance.
    Regards,
    Deba

  • Could not initiate the BPEL process :the input xml is not well formed err

    Hi
    I am calling a bpel process from the bpel console. It is a syncronous process and just fetches values from the database. I see that when ever i call this for some inputs i get the following error , in the response.
    Could not initiate the BPEL process because the input xml is not well formed, the reason is :
    Error parsing envelope: (1, 6168) Invalid char in text. Please correct the input xml.
    When i see the log i have the following message
    fault.collaxa.cube.ws> <AdapterFramework::Outbound> Returning outbound XMLRecord for OutputParameters
    Exception: Error parsing envelope: (1, 6168) Invalid char in text.
    e.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    e.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    e.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:935)
    ate__ws._jspService(_ngDoInitiate__ws.java:455)
    erver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    .runtimev2.JspPageTable.service(JspPageTable.java:453)
    .runtimev2.JspServlet.internalService(JspServlet.java:591)
    .runtimev2.JspServlet.service(JspServlet.java:515)
    let.http.HttpServlet.service(HttpServlet.java:856)
    nd.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    urity.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    ity.AccessController.doPrivileged(Native Method)
    rity.auth.Subject.doAsPrivileged(Subject.java:517)
    I understand that the error is coming with parsing the output from the database values. Further i see the process is completed successfully when i see the flow and log and the out is present in the output response. Has any body faced this issue. What is that character that it is nto able to parse as the error says.
    Thanks
    -Pradip

    hi
    I have tried it using both xml and the initiate tab. I get the same error every time i do it for a particular value. i further think that this is occuring for the out put response that is got from the data base as the log says. ( given in the initial post). I can surely paster the input xml for you
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/InputXXESIOEHEADERSIFACE">
    <ns1:XxesiOeHeadersIfaceCollection>
    <ns1:XxesiOeHeadersIface>
    <ns1:orderSource></ns1:orderSource>
    <ns1:originalsystemreference></ns1:originalsystemreference>
    <ns1:customerNumber></ns1:customerNumber>
    <ns1:Country></ns1:Country>
    </ns1:XxesiOeHeadersIface>
    </ns1:XxesiOeHeadersIfaceCollection>
    </soap:Body>
    </soap:Envelope>

  • Could not initiate the BPEL process because the input xml is not well forme

    Your test request generated the following exception/fault:
    Could not initiate the BPEL process because the input xml is not well formed, the reason is :
    Error parsing envelope: (2, 152) Invalid char in text. Please correct the input xml.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/RO_Update2">
    <ns1:RO_Update2ProcessRequest>
    <ns1:UserName>operations</ns1:UserName>
    <ns1:Responsibility>Depot Repair Engineer</ns1:Responsibility>
    <ns1:API_VER>1.0</ns1:API_VER>
    <ns1:P_commit>T</ns1:P_commit>
    <ns1:init_msg>T</ns1:init_msg>
    <ns1:Org_ID>207</ns1:Org_ID>
    <ns1:R_Number>10782</ns1:R_Number>
    <ns1:R_Status>1008</ns1:R_Status>
    <ns1:Obj_Ver_No>1</ns1:Obj_Ver_No>
    </ns1:RO_Update2ProcessRequest>
    </soap:Body>
    </soap:Envelope>

    Try
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <ns1:RO_Update2ProcessRequest xmlns:ns1="http://xmlns.oracle.com/RO_Update2">
    <ns1:UserName>operations</ns1:UserName>
    <ns1:Responsibility>Depot Repair Engineer</ns1:Responsibility>
    <ns1:API_VER>1.0</ns1:API_VER>
    <ns1:P_commit>T</ns1:P_commit>
    <ns1:init_msg>T</ns1:init_msg>
    <ns1:Org_ID>207</ns1:Org_ID>
    <ns1:R_Number>10782</ns1:R_Number>
    <ns1:R_Status>1008</ns1:R_Status>
    <ns1:Obj_Ver_No>1</ns1:Obj_Ver_No>
    </ns1:RO_Update2ProcessRequest>
    </soap:Body>
    </soap:Envelope>

  • When I try to copy a draft email with a picture it closes mail

    when I try to make a copy of a draft email and I select the email and press copy it closes mail every time Why.

    In your System Preferences, the Language and Text pane, you don't by chance have any input sources checked do you?

Maybe you are looking for