Email pdf in body and as attachment

I'm currently using doc.mailDoc() to send a pdf via e-mail as an attachment, but need to know if it's possible to include the completed form in the body of the e-mail as well. This way the recipient is able to view the completed form in their Outlook Reading Pane instead of having to open the attachment.
Any help will be helpful.

The mailDoc() or mailMsg() methods using strings for the mail body.
To include the values of fields in the body you'll have to create a custom script.
You can try a macro I desiged for this purpose.
It allows you to create a message and place variables into that message that will be filled with data from fields.
http://thelivecycle.blogspot.de/2012/05/mailto-maker-marco-v1.html

Similar Messages

  • Email with html body and a pdf attachment

    Hi,
    i try to send a email with html body and one attach in pdf
    in release 4.6c using the SO_DOCUMENT_SEND_API1.
    I've put the html in the txt table and the pdf in bin table but i obtain the following situation:
    1) with only the html in the body i see a right email in html
    2) with the html body AND the pdf attach i obtain a empty mail with two attach.
    what can i do ? I's possible to do this.
    Thanks in advance.

    Contact my basis guy is a problem !!
    maybe a need a function similar to SX_OBJECT_CONVERT_RAW_TXT to convert raw (containing html text) into real html ?
    my view V_SXCONV contain:
    ALI     HTM     2     SX_OBJECT_CONVERT_ALI_HTM
    ALI     PS     4     SX_OBJECT_CONVERT_ALI_PRT
    ALI     RAW     1     SX_OBJECT_CONVERT_ALI_RAW
    ALI     TXT     2     SX_OBJECT_CONVERT_ALI_TXT
    ICS     RAW     8     SX_OBJECT_CONVERT_ICS_RAW
    INT     RAW     8     SX_OBJECT_CONVERT_INT_RAW
    OBJ     HTM     2     SX_OBJECT_CONVERT_OBJ_HTM
    OTF     PCL     3     SX_OBJECT_CONVERT_OTF_PRT
    OTF     PDF     1     SX_OBJECT_CONVERT_OTF_PDF
    OTF     PS     2     SX_OBJECT_CONVERT_OTF_PRT
    OTF     RAW     9     SX_OBJECT_CONVERT_OTF_RAW
    RAW     SCR     6     SX_OBJECT_CONVERT_RAW_SCR
    RAW     TXT     7     SX_OBJECT_CONVERT_RAW_TXT
    SCR     OTF     1     SX_OBJECT_CONVERT_SCR_OTF
    TXT     INT     7     SX_OBJECT_CONVERT_TXT_INT
    URL     HTM     2     SX_OBJECT_CONVERT_OBJL_HTM
    thanks a lot.

  • Sending emails with both body and attachment to multiple recipients

    I have a requirement to send email with body and attachment to multiple recipients.
    Body of the email is a standard text. It is a proxy-to-mail scenario.
    Here is what I've done: (I'm using PI 7.11)
    One mapping from Source to Target structure (format of the attachment text file)
    Second mapping from Target Structure to Mail Package format.
    In the second mapping I'm concatenating the output of first step into "Content" of the Mail Package.
    "XIPAYLOAD" is the message protocol used.
    The "Keep attachments" option in the Mail adapter allows only to send "Content" as attachment or as body of the email.
    How to send an email with both content and text?
    The other problem is even with using ASMA, I can't send email to multiple recipients. I can only do CC and TO for 1 person each - a total of 2. Although I can resolve this by creating mailing lists, it is better if this can be addressed in PI.
    Thanks for any input you can provide!
    Edited by: crazylad on Jan 18, 2012 3:39 PM

    Thank you for your response Mikael.
    For the first question, I was able to find the solution in the following blog:
    XI Mail Adapter : Dynamically building attachment and message body content using a simple UDF
    (I just needed to search with the right set of key words )
    The key is to set the "Content Encoding" as "None" in the mail adapter. If this is not done, the mail will be sent with an attachment - untitled.bin containing both the mail body and the attachment text. Also, don't forget to check the "Keep Attachments" checkbox in the mail adapter.
    Multiple recipients could be added by separating the email IDs with a Comma. I have used ASMA to set the recipients.

  • Email PDF as body of the mail

    Hi Gurus,
    I need to send an adobe form with hyperlink as an email.
    I do not want to send it as an attachment.
    Any suggestions on how to achieve this.
    Thanks,
    shals
    Edited by: Shaluchilakala on Nov 29, 2011 7:51 PM

    Hi shals,
    1.  You can load the adobe form in a web Dynpro component.
    2.   Pass the necessary details  for the adobe form   as parameter  with the URL for the hyperlink.
    3.   When user click on the  hyperlink , it will load  the adobe form in browser.
    Hope this will helps you.
    Shaira.

  • Receiver Mail Adapter - Body and Attachment

    Hello All,
    Based on the document How to Use the Mail Adapter of the XI 3.0 J2EE Adapter Engine section 3.2.4 says that the payload of the message is sent as the body and an attachment when the Keep Attachments checkbox is configured. By default, the payload of the message is also sent as an attachment.
    In testing this feature - if it is checked I get the attachment - if it is not checked I get the payload in the body of the email.  I do not get both.
    I am using an xslt mapping.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:ns0="urn:sap-com:document:sap:rfc:functions" xmlns:ns="http://sap.com/xi/XI/Mail/30">
         <xsl:output method="xml" encoding="utf-8" indent="no" omit-xml-declaration="yes"/>
         <xsl:template match="/">
              <xsl:apply-templates select="ORDERS02"/>
         </xsl:template>
         <xsl:template match="ORDERS02">
              <ns:Mail>
                   <Subject>
                        <xsl:text>Sample Purchase Order: </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                   </Subject>
                   <From>
                        <xsl:text>mail@Com</xsl:text>
                   </From>
                   <To>
                        <xsl:text>mail@com</xsl:text>
                   </To>
                   <Content_Type>text/plain; charset="ISO-8859-1"</Content_Type>
                   <Content_Disposition>attachment; filename="order.dc"</Content_Disposition>
                   <Content>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>A </xsl:text>
                        <xsl:text>ORD 238            </xsl:text>
                                            <xsl:text>
    </xsl:text>
                        <xsl:apply-templates select="IDOC/E1EDP01"/>
                        <xsl:text> </xsl:text>
                   </Content>
              </ns:Mail>
         </xsl:template>
         <xsl:template match="IDOC/E1EDP01">
              <xsl:value-of select="concat(' ',/ORDERS02/IDOC/E1EDK01/BELNR)"/>
              <xsl:text>Z</xsl:text>
              <xsl:value-of select="substring(concat(E1EDP19[QUALF=002]/IDTNR,'       '),1,7)"/>
              <xsl:value-of select="format-number(number(MENGE),'00000')"/>
              <xsl:text>                </xsl:text>
              <xsl:text>
    </xsl:text>
         </xsl:template>
    </xsl:stylesheet>

    Thank you so much for your patience.  The mapping works if I do not use the extra content_type tags.  Do I need to include the Mime-Version: 1.0....also, notice the
      <Content_Type>multipart/mixed; boundary="b1"</Content_Type>
    Versus
    <Content>--b12 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My Order --b1
    Your example shows use of  Content-Type - and the XSLT sample shows <Content_Type> Do you know what the correct format is to use?.
    I changed my xsl per your instructions.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
         <xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
         <xsl:template match="/">
              <xsl:apply-templates select="ORDERS02"/>
         </xsl:template>
         <xsl:template match="ORDERS02">
              <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
                   <Subject>
                        <xsl:text>Purchase Order: </xsl:text>
                   </Subject>
                   <From>
                        <xsl:text>mail@com</xsl:text>
                   </From>
                   <To>
                        <xsl:text>mail@com</xsl:text>
                   </To>
                   <Content_Type>
                        <xsl:text>multipart/mixed; boundary="b1"</xsl:text>
                   </Content_Type>
                   <Content><xsl:text>--b12
    </xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>Content-Type: text/plain; charset=us-ascii </xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>Content-Transfer-Encoding: 7bit </xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>My Order</xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>--b1</xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>Content-Type: text/plain; charset=us-ascii</xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>Content-Transfer-Encoding: 7bit</xsl:text>
                   <xsl:text>
    </xsl:text>
                   <xsl:text>Content-Disposition: attachment; filename="order.dc"</xsl:text>
                   <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>A </xsl:text>
                        <xsl:text>ORD 238            </xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>B</xsl:text>
                        <xsl:text>The Wolf Organization        </xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>C</xsl:text>
                        <xsl:text>PO Box 2044                  </xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:text>D</xsl:text>
                        <xsl:text>York, PA  17404-2044         </xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>E</xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>F</xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="IDOC/E1EDK01/BELNR"/>
                        <xsl:text>G</xsl:text>
                        <xsl:text>
    </xsl:text>
                        <xsl:apply-templates select="IDOC/E1EDP01"/>
                        <xsl:text> </xsl:text>
                   </Content>
                   <xsl:text>--b1--</xsl:text>
              </ns:Mail>
         </xsl:template>
         <xsl:template match="IDOC/E1EDP01">
              <xsl:text>Z</xsl:text>
              <xsl:text>                </xsl:text>
              <xsl:text>
    </xsl:text>
         </xsl:template>
    </xsl:stylesheet>
    Now my results look like this:
    - <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <Subject>Purchase Order:</Subject>
      <From>mail@com</From>
      <To>mail@com</To>
      <Content_Type>multipart/mixed; boundary="b1"</Content_Type>
      <Content>--b12 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My Order --b1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="order.dc" 4500000185A ORD 238 4500000185BThe Wolf Organization 4500000185CPO Box 2044 DYork, PA 17404-2044 4500000185E 4500000185F 4500000185G Z Z</Content>
      --b1--
      </ns:Mail>
    And the error is still:
    Following error occurred while executing the application:
      java.lang.IllegalArgumentException: can't parse argument number http://sap.com/xi/XI/Mail/30
    Display Stack Trace
    Stack trace for the above error message is:
    java.lang.IllegalArgumentException: can't parse argument number http://sap.com/xi/XI/Mail/30
         at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
         at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
         at java.text.MessageFormat.(MessageFormat.java:347)
         at java.text.MessageFormat.format(MessageFormat.java:800)
         at jsp_auditlog1160053386093._jspService(jsp_auditlog1160053386093.java:274)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
         at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
         at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

  • Why can't I attach files using Yahoo email? I've clicked on 'Attach files more easily' and nothing happens. With all other browsers, I have no issues attaching files.

    I want to attach Word files to some of my yahoo emails. Instead of the word 'attach' like on all other browsers, Fierfox wants me to click on 'Attach files more easily' and download this. Nothing happens leaving me unable to use Firefox if I wish to use my yahoo email and send attachments, files or pics.

    The only way I can open a PDF is to launch the Reader X software and click "open files" from there.  Obviously, this doesn't help me since I need to email PDFs to clients, and printing 'n faxing isn't an option.
    You don't need Adobe Reader to email PDFs to clients.

  • When I forward an email the main body comes up blank

    When I try to forward an email the main body and attachment comes up blank.
    == This happened ==
    Every time Firefox opened
    == when I updated

    I assume you are using Hotmail. It's a known issue that hotmail is working on. For more info, see [[Blank messages in Hotmail]]

  • Pdf (with graphics and text) in the email body

    When I place an pdf (with graphics and text) in the body of my email using Mac Mail my recipient sees them as attachments only. I am trying to find a way of presenting a formatted email with graphics that will appear the same way to all recipients, but a pdf frequently ends up being an attachment instead of staying in the body. The pdf  file doesn’t seem to always show up in the body as created. Is there a better way to accomplish this?

    You have no control over how your email maybe rendered by other email servers and client side software.
    Attachment Tamer may give you a few more options but it does not guaranty the end result.

  • Using event.target.submitForm to submit a PDF and XML attachment in a single email.

    I have a button on a PDF form which emails a PDF and XML attachment of the current form in two seperate emails. The code is as follows:
    event.target.submitForm({cURL:"mailto:" +  "[email protected]" +"?subject="+"Request for action " + "&body=Please find attached..." ,cSubmitAs:"XML",cCharset:"utf-8"});
    event.target.submitForm({cURL:"mailto:" +  "[email protected]" +"?subject="+"Request for action " + "&body=Please find attached..." ,cSubmitAs:"PDF",cCharset:"utf-8"});
    This results in 2 seperate emails, when all I need is a single email with two attachments. Is there a way to do this?

    As far as I know you can only attach one attachment at once.

  • Need Help ASAP  my State tax form is in a PDF file and the attachment in my email says Please wait

    Need Help ASAP  my State tax form is in a PDF file and the attachment in my email says Please wait...
    I tried downloading updates like it said to but it still will not display the document.  How do I print the PDF file ASAP

    Can you give us a LOT more info?
    What email client? What version of Reader (I can only assume you even have Reader at this point)?
    Please wait? I'm sure it says more than that, right?
    Have you tried simply saving the PDF (it IS a PDF correct?) to your desktop and opening it from there?
    Did you get this form from the IRS or did it come from somewhere else? If the IRS again, what version of Reader?
    Help us help you.

  • 'send to' widget? I need to send pdf without downloading and attaching to an email (one click send function)

    Is there a 'send to' widget I can attach to a pdf document or form to send pdf without downloading and attaching to an email (one click send function)

    From this conversation's thread it appears that Acrobat is not the application / service at issue.
    As this user forum has as its focus "Acrobat" it seems that the OP is in the wrong place.
    Acrobat's one click send feature provides the user a "draft" email. The user still has to process ("click") through steps with the email client/service to actually get the email out and on its way.
    I'm sure that "one click" does everything is available somewhere. Considering all it'd have to do and do right it'd be rather expensive.
    Be well...

  • I have 6 pdf files to attach to an email. I don't want them all to open in the body of the email. How do I just attach the pdf file?

    I have 6 pdf files to attach to an email. I don't want them all to open in the body of the email. How do I just attach the pdf file?

    Never mind. Found the solution here: Re: How to mail PDF file as an icon

  • How do I send a page via email in the body of the mail and not as an attachment?

    I wish to send a page via email in the body of the mail. The only option to send a page appears to be to save it first and then attatch to the mail.

    When you are in the Plan View, right click on the icon for the page that you want to omit from the menu. Near the bottom, you'll see Menu Options, click on that and you'll have the choice to Exclude Page from Menus.

  • Why are pdf file attachment in emails converting to wordpad and I can open them?

    when I use webmail on my laptop why are attachments to email converting to wordpad and I can't open them.
    == This happened ==
    Every time Firefox opened
    == unknown

    You probably have the wrong Action set for Content-Type PDF, see this:
    [http://support.mozilla.com/en-US/kb/Managing+file+types]

  • How to email purchase order along with body and subject line

    hi experts,
           i have to email the purchase order along with the body and subject line. I am able to send the purchase order as a pdf attachment, but i have still not got a solution how to add body and subject line to this mail.
    plz help me out.

    Hi Santosh,
    if you investigate a little bit the PO output, you can find following information in SRM output customizing:
    POs are edited by methode PROCESS_BBP_PO_MAI from class CL_PD_PO_PROCESSING_BBP.
    Subject, body and attachments are handled here.
    So create your own class and method, and assign them in this customizing point (SRM Server --> Cross-Application Basic Settings --> Set Output Actions and Output Format --> Define Actions for Purchase Order Output).
    Rgds
    Christophe
    PS: please reward points for helpfull answers

Maybe you are looking for

  • Can i download Mavericks on more than one computer?

    I have two MacBook Pro's and would like to upgrade both to Mavericks with the same Apple ID. Can I? Can I? Can I? TNX!

  • Stop a pl/sql block

    Hi guys, I would like to know, how can I stop an anonymus pl/sql block (what is the command, what rights do I need in order to execute the command, etc). We use TOAD for PL/SQL programming and I know that administrators can stop processes from Enterp

  • Java Web Service Issue

    I got this error in my console, while using the web service - please any one give me a solution for me java.lang.NoClassDefFoundError: org/apache/soap/SOAPException      at java.lang.Class.getDeclaredConstructors0(Native Method)      at java.lang.Cla

  • Requested resource is not avaliable error

    i wrote a servlet which is under WEB-INF/classes/package1/servlet1.class but when im trying to use him im getting the error- "The requested resource (servlet servletName is not avaliable) is not avaliable" why does that mean? thnaks in advanced.

  • Flex 4.5 update

    Hello, I noticed that there is an update announced for the Flex 4.5 framework, in June. This would allow creation of Flex Mobile Projects with full support for iOS. Does anyone know if this would enable loading external compiled code? Or maybe this i