File attachments through mail

Hi Gurus,
i am getting one file from C Folders in binary format and i have to send that file through mail attachments
can any one suggests the solution.

Hi,
Upload the file using GUI_UPLOAD FM . This will give you all the data in an internal table. Then use FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'  to send attachment in email.
Search SDN for above FM & you would get a sample program.
Thanks,
Best regards,
Prashant

Similar Messages

  • Problem sending big attachments through mail - E72

    I've tried both profimail & the built-in client but most of the time it gives error like 'connection timeout or 'unable to send'. Is anyone else experiencing this problem ? This happens when the file size is around 2-3 MB.

    I just tried sending myself a 3.5 MB mp3 file on my E73, and then again a 3.6 MB mp3.  Both sent and downloaded smoothly with no issues.  But I don't do this very often, so my results could be different next time...  Have you tried upgrading to the new Nokia Email 3.09.0 client?  Your phone's layout may be different, but I upgraded through Control Panel -> Phone -> SW Update.  I don't think the older 3.05 beta from the Betalabs site mentioned large attachment problems, but it's worth a try.
    If that doesn't help, I wonder if this could be a network problem or a mail server problem.  Do you ever have trouble downloading large files from the web, streaming audio or video, etc.?  Do you get strong 3G coverage?  If you use a desktop computer, do you ever have trouble sending large attachments with this email account?  (Avoid testing with webmail, if at all possible.)  Does the file send eventually?

  • When I send image attachments through Mail they are received as very small and squashed. How can I change this?

    I have a problem sending image attachements (e.g., jpeg, png files etc) with the Mail utility from my MacBook Pro.  When people receive my email the attached image shows up not as an attached file that can be saved or downloaded, but as just a very small, squashed up version of the image imbedded in the email message itself.
    I usually add these attachments by simply dragging and dropping the desired file into the window of the email text. Is this the wrong way to do it?
    thanks
    Jerry

    Is this the wrong way to do it?
    The safest way to send images is to create a compressed file and send that.
    Click the image you want to send, go to File in the menu bar and select Compress... You end up with a file with a .zip at the end. Attach that to your email. Then trash the .zip file.
    The person at the other end only has to double click the .zip attachment.
    You can compress are single image or a folder of them.

  • How to send a text file attachment through mail in ECC 6.0

    Hi Friends,
    As per the requirement, I need to send a ALV report result as text file attachment to user in ECC 6.0 . I know how to do in 4.6C version. But the same code is not working here in ECC 6.0.
    Generally to get the data in new row in the text file we use below code in 4.6c.
    data: c_value type x value ' 0D '.
    concatenate c_value itab-line into itab-line.
    By using above code, we get each row of the itab in a new line in text file.
    Same code is not working in ECC6.0 as it is not supporting  to concatenate bytes with characters. Getting the error like " field c_value should be diclared as type C or I or N or T or P"
    Even I have used function module NLS_STRING_CONVERT_TO_SYS to convert hexa to char. It is converting the value' 0D' to ' # '. But it is not working.
    Could you please suggest me that how can get each row of itab as a new line in text file in ECC 6.0.
    Itab value:
    abcdefdfldjfñlkdsjfñldsjfdsñljñla
    fdsljfñldskjfldsñkjfñldsjfñldsajñld
    vcxusfcxusfcusafcxusafcusafcdsauc
    Actual result currently coming in text file:
    abcdefdfldjfñlkdsjfñldsjfdsñljñlafdsljfñldskjfldsñkjfñldsjfñldsajñldvcxusfcxusfcusafcxusafcusafcdsauc
    Expected result in text file:
    abcdefdfldjfñlkdsjfñldsjfdsñljñla
    fdsljfñldskjfldsñkjfñldsjfñldsajñld
    vcxusfcxusfcusafcxusafcusafcdsauc
    Please do the needful.
    Thanks
    Kumar

    hi,
    Try this function Module
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1 '
    *example code
    ******* Create Message Body Title and Description****************
      i_objtxt = 'test with pdf-Attachment!'.
      append i_objtxt.
      describe table i_objtxt lines v_lines_txt.
      read table i_objtxt index v_lines_txt.
      wa_doc_chng-obj_name = 'smartform'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr = 'smartform'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size = v_lines_txt * 255.
    **** Main Text*****************************
      clear i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num = v_lines_txt.
      i_objpack-doc_type = 'RAW'.
      append i_objpack.
    **** Attachment (pdf-Attachment)*************
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num = 1.
      i_objpack-body_start = 1.
      i_objpack-body_num = v_lines_bin.
      i_objpack-doc_type = 'PDF'.
      i_objpack-obj_name = 'smartform'.
      concatenate i_objpack-obj_name i_objpack-doc_type into
    i_objpack-obj_descr separated by '.'.
    *  I_OBJPACK-OBJ_DESCR = 'test'.
      i_objpack-doc_size =  v_lines_bin * 255 .
      append i_objpack.
    * Länge des Attachment ermitteln
      clear i_reclist.
      i_reclist-receiver = 'email address'.
      i_reclist-rec_type = 'U'.
      i_reclist-express = 'X'.
      data: tab_lines like sy-tabix.
      describe table i_objbin lines tab_lines.
      append i_reclist.
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        exporting
          document_data              = wa_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        tables
          packing_list               = i_objpack
          object_header              = wa_objhead
          contents_bin               = i_objbin
          contents_txt               = i_objtxt
          receivers                  = i_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.
        write:/ 'Error When Sending the File', sy-subrc.
      else.
        write:/ 'Mail sent'.
      endif.

  • Unable to send Pages documents as attachments through Mail. Gmail considers them security risks?

    Gmail will not accept Pages documents as attachments - the server will not accept them, apparently as security risks.  This is the new version of Pages.  Any ideas?

    Apple has changed the file format in Pages 5 and Gmail, Google and DropBox are all having trouble with it. I believe DropBox may have fixed it but the others are still unable to transfer the files.
    Did you previously have the older Pages/iWork? In which case it should still be in your Applications/iWork folder.
    Use that.
    Peter

  • Large file attachments to Mail

    Since Mobile me, I ca not send any attachments larger than 5 MB,
    Please tell me why and help me.
    J. Amirkhas
    [email protected]

    My guess, and I do not have a Mobile Me account, is that is the limitation set by Mobile Me.
    Contact Mobile Me for clarification.

  • Email file attachments in Gmail on Mac

    When I use Macmail I can easily click an email file attachments through gmail withoiut saving them. Not so when I go through gmail on Firefox. When I click the file attachment in gmail using Firefox it prompts me to save it instead of just opening it up. I don't want to store the file. The hundreds of of file I need to just look at and not file are clogging up my hard drive. I am using Macpro with Snow Leopard.
    HELP.

    Hi  ,
    There may be some limitation  for SAp mail size  attachment  but  Please check with your Administrator Team  who handles  Mail server . Because Company Generally has Policy for Mail Attahcment Size   upto say 5 MB or 10 MB  .
    Regards
    Deepak.

  • Trouble sending attachments with Mail 7.0

    I just upgraded to Mavericks and I just started using Mail 7.0 to manage my email (switching from Outlook 2011 for Mac).  I'm using an early 2008 Mac Pro.  I'm having trouble sending emails with attachments through Mail 7.0.  Any attachment regardless of file type or size doesn't go through on the first try.  I compose my email, hit send and then after sitting in the outbox for a minute or two I get this error message...
    I then click on "Try With Selected Server" and sometimes it will send after that and sometimes it won't.  File size doesn't seem to matter.  I switch back to Outlook and all attachments send just fine.  Outlook has its own bugs (that's why I'm trying to switch to Mail) so I'm trying to make Mail my email app.
    Any help is greatly appreciated.  Let me know if you need any more info.  NOTE: I'm not an IT person so please try to dumb down your answers to a first grade level.

    I am also having the exact same issue only with exchange emails that have attachments... funny thing is the problem only persistis on my MacBook not on my Imac.  Both running Mavericks, set up identically and both totally up to date.   I will on occacsion get the can't send mail error on the imac but after I click try again it goes through... on the MacBook I'm not so lucky and end up having to email people dropbox links to every darn file I want to send from my laptop.  Talk about a pain in the butt.  Apple please address and fix. 
    btw the unchecking auto discovery trick didn't make any difference for me
    thanks for bringin this up
    James

  • Hidden files sent through Apple Mail

    Whenever I send attachments through Apple Mail, I get these 1KB files showing up in the attachment. For example, if I attached and sent a 1MB file called "photo1.jpg" through Apple Mail, my friends receive two files; 1 MB file called photo1.jpg and another one 1KB file by the same name. If I sent two attached files, I get two more 1KB files by the same name. Depending on how large the main file is the other file may vary from 1KB - 8KB.
    I do not know how to avoid sending something I do not see.
    Are these .ds_store files? When I sent this to myself on Gmail through Apple Mail I get the same. So, it is not as if ONLY windows guys see them. I can also see them in my Safari.
    Please help.

    This is likely the results of the AppleDouble MIME encoding mechanisms used within your Apple Mail client; the second hunk is the resource fork from the image file.
    You can ignore it, or you can switch to a sending client that doesn't generate the AppleDouble MIME message (and the resource fork), or you can switch to a receiving client that does.
    Reading fodder (though potentially more detail than you probably want) is available:
    http://home.earthlink.net/~bobbau/email/more-tips/
    http://db.tidbits.com/article/05787
    There are other discussions of the AppleDouble format around.
    The Windows Friendly switch disables this mechanism; the resource fork is not sent within the MIME-encoded message.

  • HR: Need to Send the Paysilp as a PDF file through Mail to Employees

    Dear All ,
           Need to Send the Paysilp as a PDF file through Mail to Employees.
           can anyone please suggest any Standard Function Modules which takes the Payslip Form as input and convert it into PDF and can send it through mail to the concern employees.
          Can anyone please explain the procedure in detail.
    Thanks in Advance,
    Regards.

    venu,
    below is code which helps to generate pdf ,,,,hope u know how to use the mail sending function
    data:
    fm_name TYPE RS38L_FNAM, "Smart Forms: FM Name
    sf_name TYPE TDSFNAME
    value 'YOUR_FORM_NAME', "Smart Forms: Form Name
    P_OUTPUT_OPTIONS TYPE SSFCOMPOP,
    P_JOB_OUTPUT_INFO TYPE SSFCRESCL,
    P_CONTROL_PARAMETERS TYPE SSFCTRLOP,
    P_LANGUAGE TYPE SFLANGU value 'E',
    P_E_DEVTYPE TYPE RSPOPTYPE.
    data:
    P_BIN_FILESIZE TYPE I,
    P_BIN_FILE TYPE XSTRING,
    P_OTF type table of ITCOO,
    P_DOCS type table of DOCS,
    P_LINES type table of TLINE,
    name type string,
    path type string,
    fullpath type string,
    filter type string,
    guiobj type ref to cl_gui_frontend_services,
    uact type i,
    filename(128).
    GET SMARTFORM FUNCTION MODULE NAME ---
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = sf_name
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    I_LANGUAGE = P_LANGUAGE
    I_APPLICATION = 'SAPDEFAULT'
    IMPORTING
    E_DEVTYPE = P_E_DEVTYPE.
    P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XSF = SPACE.
    P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XDF = SPACE.
    P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
    P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    P_CONTROL_PARAMETERS-GETOTF = 'X'.
    ****...................................PRINTING.........................
    CALL FUNCTION fm_name
    EXPORTING
    CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
    OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
    (....) <--- your form import parameters
    IMPORTING
    JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    ****...................................CONVERT TO PDF...............
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    BIN_FILESIZE = P_BIN_FILESIZE
    TABLES
    OTF = P_OTF
    DOCTAB_ARCHIVE = P_DOCS
    LINES = P_LINES
    EXCEPTIONS
    ERR_CONV_NOT_POSSIBLE = 1
    ERR_OTF_MC_NOENDMARKER = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    now you can mail the pdf.
    Reward points if helpful
    Regards,
    jinesh

  • Variable file name through Receiver mail Communication channel

    I need to send a file through receiver communication channel   with the following name ( YYMMDD schema)  . The YYMMDD is current date .  I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work  .  If you have any ideas , can you please share with me ?
    ABC_MMYYDD.TXT
    Thanks.
    Ritvik

    Hi Ritvik,
    Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
    Re: Problem in dynamically file name generation procedure
    Best Regards

  • Viewing Excel & PDF file attachments in Mac Mail 3.6

    I setup my IMAP Gmail account on my Macbook's Mail 3.6. In the advanced tab of my Gmail account preferences in Mail 3.6 under "Keep copies of messages for offline viewing:" I have selected "All messages and their attachments"
    Whenever I click on an Excel attachment, I get the error message "'filename' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding."
    Whenever I click on a PDF attachment, I get the error message "There was an error opening this document. The file is damaged and could not be repaired."
    I then tried saving the attachments from Mail 3.6 to my hard drive, but received the same error messages when I tried to open them.
    However, when I access my Gmail account using my browser and download the same attachments to my hard drive, they open up without any problems.
    I have deleted the folder containing the emails containing the attachments from Mail 3.6 and re-synced it with Gmail. While it successfully completes the download of all of the messages and their attachments, the same problem occurs. Oddly enough, this problem does not occur with Word Document attachments or JPEG file attachments.
    This is my first Mac and while I am extremely proficient with Windows, I am clueless with Mac OS X. I have read posts about AppleDouble and Compression, but can't seem to find those options to play around with, even though I do not think that either is the issue. Any help is highly appreciated.

    Sijmons,
    well, I didn' got confused but only wanted to help you with your Altzheimer
    Geeborg,
    I used to .Mac webmail with Firefox on Windows and opened a message with an attachment (mpg). I clicked on the small triangle behind the word "Attachments" and then I clicked on the name of the attachment. This opened a window stating that the attachment would be downloaded. After some time I was asked to open the file with application xyz (I don't remember the name) or to save it on disk. Choosing to open the file finally launched Windows Media Player which played the mpg.
    Can you try these steps on one of your attachments?

  • How to edit file attachments in Mavricks Mail?

    Does anyone know how to edit file attachments in Mavricks Mail?
    Eudora, Foxmail and many other email programs allow you to simply click file attachment, open it, edit it, and FORWARD it to others.
    This is extremely difficult with Mail because it forces every single incoming file attachment to be READ-ONLY which means you are forced to re-save a copy in a folder then after editing it you need to spend time to fish it out of the folder, reattach it and then forward to others. It is a huge time wasting headache not to mention polluting your system with extra copies of files.
    Thanks

    I believe you are missing something. I'm not on my Mac right now but there should be a setting where to save attachments and also muiltiples at one time.

  • How to send image file through mail without   any attachment

    Plz tell  me how to send image file through mail without any attachment  ( i mean not converting  that image into pdf or any format )  i want to send that text or image  through mail .

    Hi Sandeep,
    I think you can setup the type of email in Shared office Settings in transaction S016.
    There is an option called <Preset document classes>
    You choose this pushbutton to branch to the maintenance screen for the document classes that are directly displayed to users in the Business Workplace for selection when they use the Create function. The name under which the documents are displayed can also be maintained.
    http://help.sap.com/saphelp_nw70/helpdata/en/6c/69c30f418d11d1896e0000e8322d00/content.htm
    Haven't tried it though.
    Regards,
    Siddhesh

  • Pdf files as attachments in Mail

    Sometimes pdf attachments in mail are saved as a pdf file with icon other times the document is visible and fills the whole page - How can I ensure only the pdf file is attaced and not the open document - seems to be there is no reason as to why this is ?
    Using Blackbook + Leopard latest updates

    Don't understand the reply above; I assume it's for another thread.
    Not to worry: Mail will show you the pdf if it can but when you send it the file will be attached. If the other person's mail reader can view attachments inline then it will and there's nothing you do about that.

Maybe you are looking for