Send Email Attachment From Workflow

Hi Experts,
I am working on the requirement of a Workflow. A mail has to be triggered to the customer with attachments. These attachments should be attached on the fly by the User, i.e, the User should be prompted to attach docs to the mail from WF before it is sent to customer. How can I acheieve this functionality?
Regards,
Prasad

Hai Shiva Prasad
Iam Sending a sample Code
Check this
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
      TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA   LIKE SODOCCHGI1.
DATA: MAILPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
DATA: SOLISTI1   LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
      FORM  SEND_FORM_VIA_EMAIL                                      *
FORM  SEND_FORM_VIA_EMAIL.
  CLEAR:    MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
  REFRESH:  MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
  MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
  MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
  MAILTXT-LINE = 'Here is your file'.
  APPEND MAILTXT.
Prepare Packing List
  PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
  MAILREC-RECEIVER = '[email protected]'.
  MAILREC-REC_TYPE  = 'U'.
  APPEND MAILREC.
Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       EXPORTING
            DOCUMENT_DATA              = MAILDATA
            PUT_IN_OUTBOX              = ' '
       TABLES
            PACKING_LIST               = MAILPACK
            OBJECT_HEADER              = MAILHEAD
            CONTENTS_BIN               = MAILBIN
            CONTENTS_TXT               = MAILTXT
            RECEIVERS                  = MAILREC
       EXCEPTIONS
            TOO_MANY_RECEIVERS         = 1
            DOCUMENT_NOT_SENT          = 2
            OPERATION_NO_AUTHORIZATION = 4
            OTHERS                     = 99.
ENDFORM.
     Form  PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
  CLEAR:    MAILPACK, MAILBIN, MAILHEAD.
  REFRESH:  MAILPACK, MAILBIN, MAILHEAD.
  DESCRIBE TABLE MAILTXT LINES TAB_LINES.
  READ TABLE MAILTXT INDEX TAB_LINES.
  MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
  CLEAR MAILPACK-TRANSF_BIN.
  MAILPACK-HEAD_START = 1.
  MAILPACK-HEAD_NUM = 0.
  MAILPACK-BODY_START = 1.
  MAILPACK-BODY_NUM = TAB_LINES.
  MAILPACK-DOC_TYPE = 'RAW'.
  APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form.  just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
  PERFORM GET_OTF_CODE.
  LOOP AT SOLISTI1.
    MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
    APPEND MAILBIN.
  ENDLOOP.
  DESCRIBE TABLE MAILBIN LINES TAB_LINES.
  MAILHEAD = 'TEST.OTF'.
  APPEND MAILHEAD.
Creation of the entry for the compressed attachment
  MAILPACK-TRANSF_BIN = 'X'.
  MAILPACK-HEAD_START = 1.
  MAILPACK-HEAD_NUM = 1.
  MAILPACK-BODY_START = 1.
  MAILPACK-BODY_NUM = TAB_LINES.
  MAILPACK-DOC_TYPE = 'OTF'.
  MAILPACK-OBJ_NAME = 'TEST'.
  MAILPACK-OBJ_DESCR = 'Subject'.
  MAILPACK-DOC_SIZE = TAB_LINES * 255.
  APPEND MAILPACK.
ENDFORM.
     Form  GET_OTF_CODE
FORM  GET_OTF_CODE.
  DATA: BEGIN OF OTF OCCURS 0.
          INCLUDE STRUCTURE ITCOO .
  DATA: END OF OTF.
  DATA: ITCPO LIKE ITCPO.
  DATA: ITCPP LIKE ITCPP.
  CLEAR ITCPO.
  ITCPO-TDGETOTF = 'X'.
Start writing OTF code
  CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            FORM     = 'ZTEST_FORM'
            LANGUAGE = SY-LANGU
            OPTIONS  = ITCPO
            DIALOG   = ' '
       EXCEPTIONS
            OTHERS   = 1.
  CALL FUNCTION 'START_FORM'
       EXCEPTIONS
            ERROR_MESSAGE = 01
            OTHERS        = 02.
  CALL FUNCTION 'WRITE_FORM'
       EXPORTING
            WINDOW        = 'MAIN'
       EXCEPTIONS
            ERROR_MESSAGE = 01
            OTHERS        = 02.
Close up Form and get OTF code
  CALL FUNCTION 'END_FORM'
       EXCEPTIONS
            ERROR_MESSAGE = 01
            OTHERS        = 02.
  MOVE-CORRESPONDING ITCPO TO ITCPP.
  CALL FUNCTION 'CLOSE_FORM'
       IMPORTING
            RESULT  = ITCPP
       TABLES
            OTFDATA = OTF
       EXCEPTIONS
            OTHERS  = 1.
Move OTF code to structure SOLI form email
  CLEAR SOLISTI1. REFRESH SOLISTI1.
  LOOP AT OTF.
    SOLISTI1-LINE = OTF.
    APPEND SOLISTI1.
  ENDLOOP.
ENDFORM.
Thanks & regards
Sreenivasulu P

Similar Messages

  • Sending emails+attachment from a servlet

    Hi all,
    I'd like to send emails from within my servlet. There must be a possibility to attach a file that has been uploaded to the server in a previous request.
    Currently I'm using sun.net.smtp.SmtpClient to send simple emails.
    Does the sun-smtp-package provide a way to attach a file to an email?
    regards
    Steffen

    I'm not sure but I think the sun.net.smtp package is part of J2EE. I didn't need to download it. You will need a Base64-Encoding algorithm for transforming the file-data (the attachment) into the email message. OReillys servlet package provides a class for this (www.servlets.com).
    Below is an example how to send an email with a file attached to it. You will have to specify the name of an SMTP-Server. If you do not have one you can (for testing purposes) direct the email into a text file.
    try{
         String host = /** @todo place your smtp-server name or IP here */
         SmtpClient smtp = new SmtpClient(host);
         smtp.from(from);
         smtp.to(toList);
         PrintStream out = smtp.startMessage();
         Base64Encoder b64e = new Base64Encoder(out); // Base64Encoder is also a Stream which we will only use for the attachment-data
         /* uncomment this if there is no smtp-server. The email will be stored in a file
         File fEml = new File(/** @todo add your filePath here */+File.separatorChar+"out.eml");
         PrintStream out = new PrintStream(new FileOutputStream(fEml));*/
         out.println("From: "+from);
         out.println("To: "+toList);
         out.println("Subject: "+subject);
         out.println("Date: "+date.toString());
         out.println("MIME-Version: 1.0");
         // we have to declare the email multipart/mixed to notify the email client that this mail contains sub parts of different content-types
         out.println("Content-Type: multipart/mixed;");
         // the boundary-string separates the sub parts (just like in HTTP-Multipart-Requests)
         out.println("\tboundary=\"----=_next_part\"");
         out.println("\r");
         out.println("This is a multipart message in MIME format.");
         out.println("\r");
         // first sub part starts here - its the text message
         out.println("------=_next_part");
         // this sub part contains only plain text
         out.println("Content-Type: text/plain;");
         out.println("\tcharset=\"iso-8859-1\"");
         out.println("Content-Transfer-Encoding: 7bit");
         out.println("\r");
         // Message text goes here
         out.println(/** @todo place your message here */);
         out.println("\r");
         // now the attachment
    out.println("------=_next_part");
    out.println("Content-Type: application/octet-stream;");
    out.println("\tname=\""+fileName+"\"");
    out.println("Content-Transfer-Encoding: base64");
    out.println("Content-Disposition: attachment;");
    out.println("\tfilename=\""+fileName+"\"");
    out.println("\n");
    // encode file piece by piece
    File f = new File(/** @todo place your filepath here */+File.separatorChar+fileName);
    FileInputStream fis = new FileInputStream(f);
    int i = 0;
    do{
    byte[] content = {0, 0, 0};
    i = fis.read(content, 0, 3);
    if (i != -1){
                   b64e.write(content);
         }//if
    }while(i != -1);
    fis.close();
    fis = null;
    f = null;
         // this is it, all there's left to do is to flush our output-stream and clean up
         out.flush();
         b64e.close();
         out.close();
         b64e = null;
         smtp.closeServer();
         out = null;
         smtp = null;
    }catch(IOException ioe){
         ioe.printStackTrace();
    }//catch
    HTH
    Steffen

  • Sending Email Attachment from UNIX using UUENCODE Command

    Hi,
    We are using "uuencode" command to send the mail with attachment to particular user but we are getting the mail without attachment, it's printing ASCII characters in mail body.
    The command is:
    uuencode $XXAR_TOP/out/${v_request_id}.csv.gz ${v_request_id}.csv.gz) |
    mailx -s "Invoice Information Extract" $v_email_recipient
    My requirement is to send the PDF file as an attachment.
    Any setups or configuration required in UNIX box to get an attachment.
    Advance Thanks
    Subbu

    I need to send the PDF or zip file as an attachment through mail,
    I tried with uuencode, it's not giving any error message but the mail recipient has only a mail with unreadable text because the pdf/zip file is directly in the mail (not as attachment).
    How to send the file as an attachment from unix?
    Advance Thanks
    Subbu

  • Send report as an email attachment from a page

    Hi
    I have page which generates a report based on two filters. After the report is generated, 'I want to send that report as an email attachment from that page, when button is clicked "Send Email"
    Thanks a lot in advance.'

    I accomplished functionality I believe similar to what you are looking for in an application once by querying a report into an html e-mail message. This approach gives you all kinds of flexibility. At least this would be one way of doing it. I am going to include a simplified sample here of what the script looked like. I hope this is at least helpful.
    DECLARE
    l_body_html CLOB;
    BEGIN
    l_body_html :=
    '<html>
    <head>
    <style type="text/css">
    body{font-family: Arial, Helvetica, sans-serif;
    font-size:9pt;
    margin:30px;
    background-color:#ffffff;}
    </style>
    </head><body>
    ' || UTL_TCP.crlf;
    l_body_html :=
    l_body_html || '<table border="1"><tr bgcolor="#999999">
    <th width="75" scope="col">
    Department
    </th>
    <th width="75" scope="col">
    Course
    </th>
    </tr>' || UTL_TCP.crlf;
    FOR c1 IN (SELECT some_table.DEPARTMENT, some_table.COURSE FROM some_table)
    LOOP
    l_body_html :=
    l_body_html || '<tr><td>
    ' || c1.DEPARTMENT || '
    </td>' || UTL_TCP.crlf;
    l_body_html := l_body_html || '<td>
    ' || c1.COURSE || '
    </td>' || UTL_TCP.crlf;
    l_body_html := l_body_html || '</tr>' || UTL_TCP.crlf;
    END LOOP;
    l_body_html := l_body_html || '</table>' || UTL_TCP.crlf;
    apex_mail.send(
    p_to => '<some email address>',
    p_from => '<desired from address here>',
    p_body => NULL,
    p_body_html => l_body_html,
    p_subj => '<desired subject line here>');
    END loop;
    apex_mail.push_queue;
    END;
    Edited by: stbrownOSU on Dec 8, 2009 2:53 PM
    I think something must have happened when I copied and pasted the code from TOAD. I have corrected the above code. Please try it again.

  • Help in sending mails with attachment from workflow

    Hi Experts,
    I have a document in my local PC. Can anyone tell me how to send it like an attachment from workflow.
    Thanks  in advance.

    Hi,
    when u want to send the attachment along with document created, then u can see the Service Object in left hand top corner. There u can attach your file. So that it will go with the document.
    Regards,
    JMB

  • Can i send email directly from bridge cs6 and cc ?

    hi
    can i send emails directly from bridge cs6 or cc directly from bridge?
    i found this scripts http://kb2.adobe.com/community/publishing/894/cpsid_89450.html
    but i run cs6 and cc under windows 7 sp1 64bit and windows 8.1 64bit
    and i have thunderbird email client
    is there a way to make it work?
    maybe i can install another email client
    thanks

    // consult MAILSEND in here: https://github.com/muquit/mailsend and download the app 'mailsend.exe' for windows7 in here:
    // https://github.com/muquit/mailsend/releases/download/1.17b15/mailsend1.17b15.exe.zip
    // unzip it and put the app .exe where you want to use it.
    // I have tested using Bridge to send e-mail using my gmail e-mail account and it works. I only needed to 
    // I needed to send e-mails from Bridge using my google account, but first I needed to put on my network the app 'mailsend.exe'(i'm using PCs windows7 , CS6 and a network)
    // All my 20 people team is using it, so I decided to put the app 'mailsend.exe' on a common place on network. I you are using it only on 1 PC you don't need you can put it on its disk.
    // Solution: All you need is to create a bat file that tells 'mailsend.exe' what to do:
    var mailsendBat=File(Folder.temp +"/mailsendBat.bat"); // creates a bat file on the temporary folder
    mailsendBat.open("w")
    // the place where app 'mailsend.exe' file is
    mailsendBat.writeln('"X:\\[someFolder]\\mailsend.exe" \^');
    // my gmail
    mailsendBat.writeln('-t [email protected] -f [email protected] \^');
    // the title can have encoding or not (-enc-type "base64")
    mailsendBat.writeln('-cs "utf-8" -mime-type "text/plain" -enc-type "base64" -sub "Ich lerne seit ungefähr zwei Jahren Deutsch" \^');
    // this works for the smtp gmail
    mailsendBat.writeln('-starttls -port 587 -auth -smtp smtp.gmail.com -user "[email protected]" -pass "[myPassword]" \^');
    // If I want to send an image attachment I use this 1, 2, or more times. If content-type is "multipart/mixed" the inline images don't work. Instead the images will be sent as attachment.
    mailsendBat.writeln('-content-type "multipart/mixed" -attach "C:\\Users\\Public\\imagens\\myImage.jpg" \^');
    // this is the line to send a simple text line with no encoding specified
    mailsendBat.writeln('-enc-type "none" -mime-type "text/plain" -M "one line attachment 1" \^');
    // you can sen inline html that can also have links to inline images
    mailsendBat.writeln('-mime-type "text/html" -enc-type "none" -M "<b>this is a test</b><br><img src="http://[any_online_image.jpg],image/jpeg,i">" \^');
    // sending text line with special encoding
    mailsendBat.writeln('-cs "utf-8" -mime-type "text/plain" -enc-type "base64" -M "Ich lerne seit ungefähr zwei Jahren Deutsch" \^');
    // endind it
    mailsendBat.close();
    // executing
    mailsendBat.execute();
    // there are also other kind of commands (consult https://github.com/muquit/mailsend)

  • Using send email step in workflow

    Hi Experts,
    I have a question regarding the send email step in workflow.
    We have the Receipient Type as Organizational Object and Expression as &WF_INITIATOR&.
    I want to know if the mail will be sent to the SAP email ID (i.e) in SBWP or will be it be sent to the Outlook email ID.
    We want to send it to the Outlook email ID of the User. Can you guide us as to how we can do the same.
    In some cases, we want to send the notification to both the employee and his manager. Can this be managed through the SEND EMAIL step in the workflow or do we have to explicitly create a method and use a std FM that sends the email to the concerned.
    Request your help on the same.
    Cheers,
    Belinda Clarke

    >We are getting the pernr of the employee. We can retrieve his email address for the same. So do we need to pass this to a workflow container and then use that workflow container value in the space provided for the email address.
    Yes. It is really up to you how you will develop everything. I personally like to get all the data into the workflow container, because it might be handy later in the life. Let's say that you go on with your custom email sending step and add there the code the get the data that you need in the email. It will work perfectly. But let's say that after six months the HR administrators want to get emails with a bit different content from this same workflow. Now you will need do another custom step. But if you had already all the data in the container you can simply add another standard email step and formulate the text with the editor and add the variables from the workflow container. Easy and simple.
    So, my advice is that for example add just add some background step to get all the possible data regarding the employees & leave request & managers or whatever. Now you have everything in the container and you can use them in the email(s) - and you can use them in other places too - for example in the work item texts, etc.
    Regards,
    Karri

  • I'm trying to send (email) photos from iPhoto. Computer says it doesn't recognize my user name or password. I've never had a problem emailing photos.....until now. Any suggestions? I'm sure it's simple but I don't know it!

    I'm trying to send (email) photos from iPhoto. Computer says it doesn't recognize my user name or password. I've never had a problem emailing photos.....until now. Any suggestions? I'm sure it's simple but I don't know it!
    CAN ANYONE HELP??  I ALSO NEED TO KNOW WHICH/WHAT TO PICK FOR MY MAIL CLIENT. I'VE TRIED THREE DIFFERENT THINGS AND NONE OF THEM WORK!

    Mail would be a good choice, unless you are using another email client, like Outlook. There is likely something wrong with the account setup in iPhoto. You may need to delete the account you set up and enter it again if you want to send with iPhoto instead of with Mail.
    Give this a try to see what might be wrong: Drag a photo from iPhoto onto the Mail icon in the Dock. It will create a new message with the photo attached. If you click on the photo in Mail, it should show a popup menu to allow you to set the image size to send.
    Check out some of the links in the More Like This section to the right. There might be some other suggestions.

  • Logic Required to send email attachment to particular dealer number ..

    I have output data saved in internal table, which has many fields from diff tables.
    I need this logic as how to build .... I need to send email attachment to particular dealer number and all his related details ... dealer shldnt get other dealer details ... so i m sorting final output table details by kunnr vbeln and fkdat.
    how will i write code or logic which will upload data of particular dealer number in output table one by one and send across as emails ? What i mean is for every customer numbe, his details which can be multiple needs to be send across.
    I tried doing this, but didnt get any good results.
    sort finaltable by kunnr vbeln fkdat.
    loop at Finaltable into workarea.
              at new kunnr.
                    perform mail send function to each customer number
                endiat
    endloop
    Plz advise.
    Thnx

    hi,
    you can check this:
    FORM docu_send_email USING pv_otfdata  TYPE tsfotf
                               pv_emailid  TYPE any
                               pv_formname TYPE any.
      DATA: lv_filesize    TYPE i,
            lv_buffer      TYPE string,
            lv_attachment  TYPE i,
            lv_testo       TYPE i.
      DATA: li_pdfdata  TYPE STANDARD TABLE OF tline,
            li_mess_att TYPE STANDARD TABLE OF solisti1,
            li_mtab_pdf TYPE STANDARD TABLE OF tline,
            li_objpack  TYPE STANDARD TABLE OF sopcklsti1,
            li_objtxt   TYPE STANDARD TABLE OF solisti1,
            li_objbin   TYPE STANDARD TABLE OF solisti1,
            li_reclist  TYPE STANDARD TABLE OF somlreci1,
            li_objhead  TYPE soli_tab.
      DATA: lwa_pdfdata  TYPE tline,
            lwa_objpack  TYPE sopcklsti1,
            lwa_mess_att TYPE solisti1,
            lwa_objtxt   TYPE solisti1,
            lwa_objbin   TYPE solisti1,
            lwa_reclist  TYPE somlreci1,
            lwa_doc_chng TYPE  sodocchgi1.
      CONSTANTS: lc_u           TYPE char1  VALUE 'U',
                 lc_0           TYPE char1  VALUE '0',
                 lc_1           TYPE char1  VALUE '1',
                 lc_pdf         TYPE char3  VALUE 'PDF',
                 lc_raw         TYPE char3  VALUE 'RAW',
                 lc_ordform     TYPE char15 VALUE 'ZORDCONFIRM_01',
                 lc_attachment  TYPE char10 VALUE 'ATTACHMENT'.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = lc_pdf
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lv_filesize
        TABLES
          otf                   = pv_otfdata
          lines                 = li_pdfdata
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT li_pdfdata INTO lwa_pdfdata.
        TRANSLATE lwa_pdfdata USING ' ~'.
        CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
        CLEAR lwa_pdfdata.
      ENDLOOP.
      TRANSLATE lv_buffer USING '~ '.
      DO.
        lwa_mess_att = lv_buffer.
        APPEND lwa_mess_att TO li_mess_att.
        CLEAR lwa_mess_att.
        SHIFT lv_buffer LEFT BY 255 PLACES.
        IF lv_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Object with PDF.
      REFRESH li_objbin.
      li_objbin[] = li_mess_att[].
      DESCRIBE TABLE li_objbin LINES lv_attachment.
    Object with main text of the mail.
      lwa_objtxt = space.
      APPEND lwa_objtxt TO li_objtxt.
      CLEAR lwa_objtxt.
      DESCRIBE TABLE li_objtxt LINES lv_testo.
    Create the document which is to be sent
      lwa_doc_chng-obj_name  = text-008.
      lwa_doc_chng-obj_descr = text-008.
      lwa_doc_chng-sensitivty = lc_0.
      lwa_doc_chng-obj_prio = lc_1.
      lwa_doc_chng-doc_size = lv_testo * 225.
    Pack to main body.
      CLEAR lwa_objpack-transf_bin.
    header
      lwa_objpack-head_start = 1.
    The document needs no header (head_num = 0)
      lwa_objpack-head_num   = 0.
    body
      lwa_objpack-body_start = 1.
      lwa_objpack-body_num   = lv_testo.
      lwa_objpack-doc_type   = lc_raw.
      APPEND lwa_objpack TO li_objpack.
      CLEAR lwa_objpack.
    Create the attachment.
    Fill the fields of the packing_list for the attachment:
      lwa_objpack-transf_bin = gc_x .
    header
      lwa_objpack-head_start = 1.
      lwa_objpack-head_num   = 1.
    body
      lwa_objpack-body_start = 1.
      lwa_objpack-body_num   = lv_attachment.
      lwa_objpack-doc_type   = lc_pdf.
      lwa_objpack-obj_name   = lc_attachment.
      lwa_objpack-obj_descr  = text-008.
      lwa_objpack-doc_size =  lv_attachment * 255.
      APPEND lwa_objpack TO li_objpack.
      CLEAR lwa_objpack.
      lwa_reclist-receiver   = pv_emailid.
      lwa_reclist-rec_type   = lc_u.
      lwa_reclist-notif_del  = gc_x.
      lwa_reclist-notif_ndel = gc_x.
      APPEND lwa_reclist TO li_reclist.
      IF li_reclist IS NOT INITIAL.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = lwa_doc_chng
            put_in_outbox              = gc_x
          TABLES
            packing_list               = li_objpack
            object_header              = li_objhead
            contents_bin               = li_objbin
            contents_txt               = li_objtxt
            receivers                  = li_reclist
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
        IF sy-subrc <> 0.
             MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " DOCU_SEND_EMAIL

  • How come i can send an attachment from my aol mail

    how come I can send an attachment from my aol mail

    maybe because it's a service provided by most email providers?

  • Email attachment from spool...not to go on printer for printing

    Hi,
    I am sending email attachement whenever I find email address on customer. To send email I am reading from spool and then sending.
    My requirement is I should not send the document for regular printing whenever I find email of customer. Since we are already sending the PDF to customer.
    But right now in my program both printing and sending email is happening. How to stop printing when I find email ID of customer?
    Thanks

    Hi,
    in your print program try to set the attribute TDNOPRINT of the OUTPUT_OPTIONS (structure SSFCOMPOP) with X in case you find the email.
    Cheers.

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • I am all of a sudden not able to send emails out from my outlook account on my iPhone.  Any suggestions?

    I am not able to send emails out from my outlook account on my iPhone 4s.  This feature has been working fine for 2 years and all of a sudden decided not to work.  I was able to receive emails but not send out.  I tried deleting the outlook account and recreating it but now I can't even recreate it.  It tells me it cannot verify my account information.  The interesting thing is that the account works fine on my PC, so I know my login info is correct.  Any help would be appreciated.
    Thanks

    Hello tmed32
    Check the website and log into webmail to see if there is anything you need to add to authorize it on other devices. Also check out the articles below to see if they can provide any further assistance.
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/TS3899
    Regards,
    -Norm G.  

  • HT1529 sending emails directly from Finder in Mountain Lion

    With Mountain Lion I cannot send emails directly from Finder! In older versions when I right-click on a file there is an option in the dialog box which appers: "send by email" or something like this, I can't remember exactly...but when I used to click on it the email window appears. How can I activate this option? in this new version it is only SHARE options which is not helpful.
    Thanks!

    I am having similar issues with my user account. It also is the same in Yosemite.
    Disc images, external hard drives etc dragged to trash (get eject icon) are simply ignored.
    Pressing Eject button in side bar of Finder are ignored.
    It seems to be a permission/account issue as:
    - using computer under a different account doesnt have this problem
    - transferring account over to another mac continues the problem on the new computer.
    Log file seems not to have any errors.

  • Have just installed iPhoto'11. Tried to send email direct from iphoto    o, but it would not except my password, or current server.

    Tried to send email direct from iphoto on my newly installed iPhoto '11. It will not accept my current and only server, or my password. The photos will go out directly from email, but not from iPhoto. Any suggestions?

    In the iPhoto preferences set Apple mail as the e-mail client and use it as before
    LN

Maybe you are looking for