Sending Adobe form in perzonalized mail forms

Hi
I created a personalized mail form and I want to send the Adobe PDF form of the contract to the customer along with the personalized mail forms.
I know how to send  a personalized mail form, but not sure how do we attach the generate the PDF and attach it to mail form through actions.
Regards,
Deepthi.

Hi Bhargavi,
In your action method first get the  FM name for your Adobe form using
fp_function_module_name.
Then you need to call Adobe form FM.Importing lv_formoutput.
Then you need to call bcs interface. sample logic
lcl_send_request - cl_bcs=>create_persistent( ).
lv_pdfsize = zstrlen(  lv_formoutput-pdf ).
lt_pdfcontent = cl_document_bcs=>xstring_to_solix( ip_xstring = lv_formoutput-pdf ).
append the mail body to lt_text.
append  mail subject to ls_subject.
then
lcl_document = cl_document_bcs=>create_document( i_type = 'RAW'
                                                                                        i_text = lt_text
                                                                                         i_length = '25'
                                                                                         i_subject = ls_subject ).
atach pdf to mail using
call method lcl_document->add_attachment
     exporting
     i_attachment_type = 'PDF'
     i_attachment_subject = ls_mail_sub
     i_attachment_size = lv_pdf_size
     i_att_content_hex = lt_pdf_content.
lcl_send_request->set_documnt( lcl_document ).
lcl_receipient = cl_cam_address_bcs=>create_internet_address( i_address_string = email id ).
lcl_send_request->add_recipient( i_recipient = lcl_recipient ).
lcl_sender = cl_cam_address_bcs=>create_internet_address( i_address_string = sender email id ).
lcl_send_request->set_sender( i_sender = lcl_sender ).
lv_sent_to_all = lcl_send_request->send( i_with_error_screen = 'x' ).
commit work.
Regards,
Tejaswini P.

Similar Messages

  • Multi line values in mail forms to send emails

    Hi All,
    Ours is CRM 2007 application, as part of new capability adding to the system, we need to send email to customer with few details once service tickets saved in the system. we decided to use mail forms to create the template and send email to the customer with details. as part of this we need to send multi line values as well in the mail form - email as shown below. example field here is for working hours of the customer office.
    Saturday - Sunday 10am - 4pm
    Saturday - Sunday 10am - 4pm
    (excluding public holidays)
    Can some body tell me how to send the multiline values using mail forms - emails to customers. right now we receive the last line. I dont see any help in mail form documetation as well on this.
    I appreciate any help in this if you already have some solution.
    Regards,
    Srinivas

    Hi,
    Are you using below any FM to send mail ?
    1. CRM_IM_EMAIL_CREATE_SEND_40 2. CRM_IM_EMAIL_CREATE_SEND_51
    if so, then inside this FM there will be call to BADI CRM_IM_ADD_DATA_BADI . This badi will get the data for custom/additional attribute values. Basically it will get one value ( last value ).
    What u might need to do is after this badi call u need to loop ur values and set it . For doing that u might need to make this FM tocustomer name space or look for implicit enhancements.
    We have done similarly for sending mail duringcampaign execution. That was done in different place.
    hope it might help you to analyse more.
    Regards
    Sandeep

  • Inserting signature in Mail form from outgoing email

    Hi,
    I'm trying to send outbound email from service request in SAP CRM. When I select send mail the mail form is displayed. We have option to attach the document, priority and sensistvity. Along with this we also have option to save signature. Once I save the signature how to insert the signature into mail form so that I can send the signature with the mail form.
    Thanks
    Vinod

    @Nancy O.
    Thanks for your support i appreciate it that you helped me out a many times.
    However i have read all of the topics you posted.
    I know in the mail form i can disable the "sort of Captcha". I wanted to disable it and insert reCaptcha instead.
    I will re-make the form because like you said (and i already figured it out myself) ;
    "b) Don't modify forms until you get a very basic form working on your server."
    And youre right, im taking too much work at once.
    @CowboyInAZ
    Im a hobbyist that learns really really fast.
    Before March 23 i never used CSS, Javascript and XHTML. And never combined them all together with PHP. (never ever created a php based file from scratch)
    The reason why i use other persons code is because i learn faster with examples, and because i dont need to reinvent the wheel if someone already invented it. The only thing i do with it is learn the workings, customise it and at last, rewrite the code when i understand it.
    If you look at my current site: http://www.wientjesvoegwerk.nl/
    You will notice that the site is validated by W3C with no errors and warnings.
    I think it was Nancy O. that gave me the link to the validator. Thats how i discovered the service.
    You need to know that in 1 day (from 63 errors and 12 warnings) i removed all errors. And i didnt knew much about it, and why errors happend while the site looks fine.
    So im just curious how things work and thats why i "steal" codes and adjust them to learn myself.
    I also want a education like you spoke of, but im interested in a different media.
    I want to be abled to create my dream project wich involves new ways for game studios to earn money.
    This is just a simple start, im also taking tutorials in C#, C++.

  • Error in Mail Form: Academic titles

    Hi All,
    I have included the fields
    1. Title_Key and
    2. Title_Aca1 from the BP_Structures in my mail form.
    My mail form is in a different language. Thus, the requirement is to have the Title and Academic Title in the other language.
    I have maintained the entries in the other language too.
    Even if i log in in another language, the Title is taken as (Mr.) or (Ms.)instead of (Herr) or (Frau)
    Thus, i want to know, why this is happening and how can i solve this issue. Am i missing something in customization or in maintaining any flag for the language etc.
    Thanks,
    Kedar
    Edited by: Kedar Toraskar on May 30, 2008 11:35 AM
    Edited by: Kedar Toraskar on May 30, 2008 11:35 AM

    Hi Kedar,
    The language priority in the mail form, during the campaign execution are as given below:
    - For Person (B2C Scenario)
    Prio 1. the field 'Correspondence lang.' in business partner 'Address' field group 'Detail information'
    Prio 2. The field 'Language' in the business partner 'Address' data, field group 'Name'.
    Prio 3.Log-on language.
    - For Organization (B2B Scenario)
    Prio 1. The field 'Language'  in the business partner 'Address' data, field group 'Communication'.
    Prio 2.Log-on language
    - For Contact person for organization (B2B)
    Prio 1. The field 'Correspondence lang.' in business partner (contact person)  'Central data'  -> 'Detail information'. Same language are displayed on the 'Relationship' screen, field 'Language' on the 'Details' data to the relationship, field group 'Communication'.
    Prio 2. The 'Relationship' data for business partners, field 'Language' on the 'Detail' data to the relationship , field group 'Company'. (= communication language of organization)
    Prio 3. The field 'Language' in the business partner (contact person) 'Address' data, field group 'Name'.
    Prio 4.Log-on language.
    Please check whether you have maintained languages correspondingly
    For more information on this, refer to SAP Notes 708355.
    regards
    Srikantan

  • Send Adobe form as PDF via E-mail

    Hi,
    I am doing one interacive adobe form where i need to send that filled form in PDF format via email.
    I tried using below options but unfortunately its not working:
    1.I used "Email Submit Button" but its sending attachment as XML which I dont want.
    when reffred threads on this problem , they suggested to go to XML VIEW of this button and change SUBMIT FORMAT to "pdf" from "xml".... but in this case , that button is not working at all.
    2.I used below solution
    Use a regular form button:   Place a regular form button on your form .  Look on the Object Window for the button.  On the Field tag, towards the bottom will be a set of "Control Type" radio buttons.  Select the "submit" option.  There should now be a "submit" tab in the Object window.  Switch to the tab and on the "Submit As" pulldown select PDF.  But this is also not working.
    Your comments are helpful for me.

    Hi,
    Get your form data in XML format from Interface. There are some standard classes available to convert the XML to PDF and sending mail.
    Thanks,
    Revanth Naidu

  • Send PDF form to e-mail as attachment with a PHP script on the server

    Hi,
    For several days I've been searching though the internet looking for a solution, a quite simple one in my opinion, but I got a little desperate not getting any result I want.
    Okay. The Situation.
    I have a PDF form to order sandwiches and drinks.
    The PDF has serveral area's and columns where customers fill in the amount of the products they would like to order.
    At a position of a field, the kitchen can almost blindly see what products a customer ordered.
    Therefore, when someone fills in the form, I want to send the filled PDF by e-mail to the kitchen's e-mail adress. And important: the PDF in the kitchen's mailbox should be completely identical to the form the customer filled in.
    So, I have an Order button in my form. I set the action as 'Submit a form'.
    In the settings under 'Enter a URL for this link' I used just some PHP mailer script I also use on my website contact form.
    IF I check 'HTML' under 'Export Format' the PHP mailer works fine. I receive an HTML e-mail listed the ordered products.
    BUT
    I do want the original filled PDF in my mailbox instead of an HTML e-mail.
    So, for 'Export Format' I checked 'PDF The Complete Document'.
    But then my PHP mailer script doesn't work anymore.
    It gives errors like 'no valid e-mail adres' , etcetera etcetera.
    Who has a solution?
    Who has a working standard PHP script for me what just sends the kitchen an empty mail with the original PDF as attachment?!
    There is no need to use any database or other more complex functionality. Just mail the filled PDF.

    You can submit whole PDF format as long as you enable usage rights on the PDF.
    Normally Adobe Reader users can only submit the data, XFDF, FDF, XDP, XML.
    To enable usage rights on the PDF you will need to use Adobe Acrobat Std/Pro.
    As for the PHP Script; it depends on your PHP web server capabilities.
    The script will be slightly different, if the server uses PHP Mail or PHP PEAR.
    Just attach the submission to an email and send.
    If the client is submitting the form from a standalone pdf reader app, you can also respond with a success or failure FDF \status message; otherwise, you can redirect to a success / failure URL.
    For more information and online examples:
    http://www.pdfemail.net/examples/

  • Saving and sending Adobe Form pdf from WebDynpro

    Hi,
    I'm developing an application which receives data from a RFC to a R/3. The datas are displayed on a pdf-Document in a Webdynpro. This works fine.
    Now I want to send this form as attachment in an email. Do I have to save it first as pdf or can I send it directly?
    On SapHelp I found a tutorial how to save a form as pdf:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    I tried out the describtion but without success. I defined an action on the view where the form should be displayed and added the coding in the implementation of the event. In the form I added a button Submit to SAP from the Web Dynpro Library. When I press the button, nothing happens. Do I have to make any changes under Object->Field->Control Type?
    Another question about the coding:
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
              IPrivateResultView.IContextElement contextElement =
                   wdContext.currentContextElement();
              byte[] bytes = contextElement.getPdfSource();
              try {
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
              } catch (IOException e) {
                    // do something
                   e.printStackTrace();
              wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
                   "You have pressed Submit!");
        //@@end
    The path where the pdf shall be saved is "C:
    temp
    example.pdf", I expected something like "C:\temp\example.pdf" on a windows machine.
    Where will the pdf be saved? On the machine i deployed the application (what about rights for saving) to or localy on the machine I start the app?
    Does anyone knows how to send the pdf by email when saving the form or knows a helpful tutorial?
    Many thanks for your help
    Mathias Lange

    Hi all,
    doing Tutorial 31 from SDN (Interactive Forms using E-Mail) I have a problem with the entries for the smtp-host in the coding.
    I always get the error message: 
    Sending failed;  nested exception is: com.sap.engine.services.javamail.exception.JavaMailMessagingException: Cannot send message to host xxx:25 using the SMTP protocol.
    //@@begin onActionSendForm(ServerEvent)
    Properties props = new Properties();
    String host = "xxx";
    props.put("mail.smtp.host", host);
    In host I entered the entrie for the smtp i use in Outlook, where it works fine. In the Tutorial i get the errormessage.
    I have an smtp-server from our company with which it works too, but it is not the smtp used by Outlook.
    And i can't use this smtp at my customers.
    Could it be a problem with the used ports or a needed authentication? In the Tutorial is no coding for this.
    Does anyone use a freemailer for this tutorial and have success with the smtp of this freemailer?
    Kind Regards
    Mathias
    Message was edited by: Mathias Lange

  • Send Adobe Form As Attachment

    hi Experts
    I need send Adobe Form as attachment
    this is part of my prog. ******************
    TRY.
          lr_send_request->send(
          EXPORTING
          i_with_error_screen = 'X'
          RECEIVING
          result = lv_sent_to_all ).
        CATCH cx_send_req_bcs INTO lr_send_req_bcs.
      ENDTRY.
      COMMIT WORK.
    but after execute  I get Error(Dump):
    *Calling a COMMIT WORK in an update process is not allowed*
    *because the function modules triggered in a Logical Unit*
    *of Work cannot then be processed correctly.*
    I tried to use UpdateFunction(call function in update task), but in this case I get Empty PDF File .
    How can I solve this problem?
    Thanks,
    Larissa

    You want to commit to send the email. But the commit is not allowed in the update task. That is not Adobe-related problem in my opinion. Maybe you should ask the question in ABAP general? And about that "blank" pdf... is that a problem with PDF printing? That means GETPDF = 'X' not working? Or what is your adobe related problem?
    Regards Otto

  • My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this: "Contact Form" has a new form submission.

    My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this:
    "Contact Form" has a new form submission.

    What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
    Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
    Thanks,
    Sanjit

  • Sending the adobe interactive form as non-interactive form through email

    Hi ,
              I am trying to send the interactive adobe form as non-interactive form  through email.The interactive form size is very large because of the interactivity.
    Can anybody suggest how to do this.
    Regards,
    Debasis

    Dear Antony,
    Thanks for the reply.
           I got you but can you pls guide me how to go about it.
    I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
    Regards,
    Debasis Nayak

  • Send the mail without opening mail form

    Hello,
    I want to send the report output thro' mail without opening the mail form. This is needed as the report need to be scheduled to execute at particular time. The mailid will be got from the DB.
    I noticed that the mailid needs to be available in the mailer's addressbook. Thenonly report can send the mail.
    Does it mean, all the mailid's available in the DB needs to be part of addressbook? I need help on this.
    thanks in advance,
    Regards,
    Vani.

    Hi,
    It is not necessary to have all the mailid's available in the DB needs to be part of addressbook. If you set desname to mailTo address, that mailid is "TO" address of your mail output.
    Thanks,
    Puvan.

  • Central Management server - executed a query but how to send the query output in the form of mail?

    Hi All,
    i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
    basically query is checking the rows count from couple of user tables in servers.
    issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
    could you please suggest how can i achieve this?

    Copy to what?
    SELECT COUNT(*) FROM sys.objects
    Running the above statement returns two columns (server name and count)
    All the servers SS2005  and onwards , then use
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'name', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM sys.objects', 
         @subject = 'Count rows'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Submit button on Android doesn't submit completed form via e-mail

    We've created a form in Adobe Acrobat Pro with a submit button using the "mailto:" command.  When we are in the android app and click the button, the e-mail script works fine, but it doesn't send the actual file, just a blank e-mail.  Any advice?  I've seen some older posts saying java scripts aren't supported, but they were older posts.  Has this been addressed or is there a workaround to submit the completed forms via e-mail (with an added service or expense)? 

    When you write this
    > but it doesn't send the actual file, just a blank e-mail
    do you mean that it sends an email with a blank form attached? 
    If this is the case, this is currently as-designed, since your button has two actions: one that submits the form and one that resets the form.  Because emailing on an Android device is asynchronous, by the time the email is constructed by the mail app of choice, the reset form action has already executed and as a result, you end up sending a blank form.
    I will look into the Android mail APIs to find out if we can make the behavior synchronous, that is, the reset form action will not execute until AFTER the submit form action has fully completed.  In the meantime, you can work around this by separating the submit & reset button into two separate buttons: one that submits, and one that resets.  Users will tap the submit button to submit and then have to tap the reset button after submit completes to reset the form.
    Hope this helps,
    Darrell

  • Mail Form Question

    Hi Folks,
    I'm VERY new to Dreamweaver, have just created a Mail Form in
    PHP and have absolutely no idea what to do with it now. It's one of
    those typical forms with To:/Email:/Message: I know this is a
    painfully basic question but I can't seem to find the answer in
    books, training videos, my hosting provider, etc. I know I need a
    URL to "point" the file to on the server but my internet host had
    no idea what I was talking about.
    If anyone could help it would be greatly appreciated!!
    Thanks, Cynthia

    you can use php on this hosting?
    I'd suggest using the phpformmail script.
    here's my stock cut 'n paste on what to set to what, and why
    1)go to
    http://boaddrink.com
    -->phpformmail
    download it.
    extract the ZIP file.
    More detailed instructions are in the docs folder
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the domain name of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c)  *this is to hard-code the recipient address into
    the php
    file, where it is totally invisible *
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]');
    **of course, replace [email protected]  with
    the email address
    you want to receive the form data. Also note the single quote
    marks.
    reason: this sets the email address the form results will be
    sent to.
    You can also make a list of possible recipient alias values-
    see the readme
    in the docs folder.
    2d) give the script a default "From" address to use.
    Go to line 41
    Change:
    define('FROM', null);
    to:
    define('FROM', 'Example Name <[email protected]>');
    substituting your name and email address.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder. save it as anythingyouwant.php
    4) in dw's File Panel, find anythingyouwant.php and upload it
    to the remote
    site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspector, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the anythingyouwant.php
    file
    you've saved to within this site.
    5b) now click within the form area and go to dw
    menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME/ID of this field
    to: recipient
    And the VALUE of this field to: me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    This tells the script to use the "me" recipient_alias value
    as the email
    address to send the form to.
    5c: Do you have a form field to collect the user's email
    address?
    If yes, if this field is named exactly "email" then the
    script will use the
    user's email as the reply to in the outgoing email
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    1-make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name: redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    If you don't set a redirect value- the form script will build
    a "thank you,
    here is what you submitted" page. If you want to use that
    dynamic page-
    upload the .css file that it uses.
    2- If you have a field in the form to collect the visitor's
    email address,
    IF you name this field  in the form exactly  
     email   then the visitor's
    email address will be the Reply To address in the outgoing
    email.
    There are 30 or so other optional form fields to control the
    form- see the
    readme in the docs folder. One of those optional control
    fields is
    verification.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • PDF Form Using E-Mail shows same PDF

    Hi All,
    I downloaded and installed the 'TutWD_EmailInteractiveForm'.
    ("Offline Interactive PDF Form Using E-Mail" in the
    /docs/DOC-8061#47)
    I customized the readInbox method in the EmailInteractiveFormComp.
    I deleted the source of "if (message<i>.getSubject().equals("Travel Request Form"))".
    After I executed, there are 3 records in the window(ReceivedView).
    Next, I clicked the 1st row and show the 1st row's pdf.
    Then I return to the list, and click the 2nd row.
    But it shows a 1st row's pdf!
    Is there a person who became the same phenomenon?
    Please give me some ideas!!
    Regards,
    Hiromitsu

    You can submit whole PDF format as long as you enable usage rights on the PDF.
    Normally Adobe Reader users can only submit the data, XFDF, FDF, XDP, XML.
    To enable usage rights on the PDF you will need to use Adobe Acrobat Std/Pro.
    As for the PHP Script; it depends on your PHP web server capabilities.
    The script will be slightly different, if the server uses PHP Mail or PHP PEAR.
    Just attach the submission to an email and send.
    If the client is submitting the form from a standalone pdf reader app, you can also respond with a success or failure FDF \status message; otherwise, you can redirect to a success / failure URL.
    For more information and online examples:
    http://www.pdfemail.net/examples/

Maybe you are looking for