Attaching notepad file for email

Hi experts,
I have some data in internal table which i want to send as a notepad file as attachment. I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1, however i am using the doc_type as 'TXT' and my ouput file is not properly formatted even though i am using the delimiters like HORIZONTAL_TAB.
How this can be solved?
Thanks.
Warm regards,
Harshad.

Hi Harshad ,
for proper formatting you try to run this code.....
*& Report  ZPAWAND_BACKGROUND_SENDMAIL3
REPORT  ZPAWAND_BACKGROUND_SENDMAIL3.
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver DEFAULT
'enter the email id'.
TYPES: BEGIN OF t_ekpo,
        ebeln TYPE ekpo-ebeln,
        ebelp TYPE ekpo-ebelp,
        aedat TYPE ekpo-aedat,
        matnr TYPE ekpo-matnr,
      END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
         ebeln(10) TYPE c,
         ebelp(5) TYPE c,
         aedat(8) TYPE c,
         matnr(18) TYPE c,
       END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0 WITH
HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0 WITH
HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
      t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
      t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      w_cnt TYPE i,
      w_sent_all(1) TYPE c,
      w_doc_data LIKE sodocchgi1,
      gd_error TYPE sy-subrc,
      gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
  PERFORM data_retrieval.
Populate table with detaisl to be entered into .txt file
  PERFORM read_data_txt_old.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
  perform populate_email_message_body.
Send file by email as .txt speadsheet
PERFORM send_file_as_email_attachment TABLES it_message it_attach USING
p_email 'Example .txt documnet attachment' 'txt' 'filename' ' ' ' ' ' '
    CHANGING gd_error gd_reciever.
Instructs mail send program for sapconnect to send email(rsconn01)
  perform initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
  SELECT ebeln ebelp aedat matnr
     UP TO 10 ROWS FROM ekpo INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
*FORM build_xls_data_table.
*&      Form  READ_DATA_TXT_OLD
      text
form read_data_txt_old.
*CONSTANTS: con_cret TYPE c VALUE '0D', "OK for non Unicode
          con_tab TYPE c VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS: con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
           con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
           concatenate  it_attach CL_ABAP_CHAR_UTILITIES=>NEWLINE into
it_attach.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR' INTO it_attach SEPARATED BY
con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
  CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp wa_charekpo-aedat
    wa_charekpo-matnr INTO it_attach SEPARATED BY con_tab.
  CONCATENATE con_cret it_attach INTO it_attach.
  APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment TABLES pit_message pit_attach
  USING p_email p_mtitle p_format p_filename p_attdescription
p_sender_address p_sender_addres_type
  CHANGING p_error p_reciever.
  DATA: ld_error TYPE sy-subrc,
        ld_reciever TYPE sy-subrc,
        ld_mtitle LIKE sodocchgi1-obj_descr,
        ld_email LIKE somlreci1-receiver,
        ld_format TYPE so_obj_tp ,
        ld_attdescription TYPE so_obj_nam ,
        ld_attfilename TYPE so_obj_des ,
        ld_sender_address LIKE soextreci1-receiver,
        ld_sender_address_type LIKE soextreci1-adr_typ,
        ld_receiver LIKE sy-subrc.
  ld_email = p_email.
  ld_mtitle = p_mtitle.
  ld_format = p_format.
  ld_attdescription = p_attdescription.
  ld_attfilename = p_filename.
  ld_sender_address = p_sender_address.
  ld_sender_address_type = p_sender_addres_type.
**************For Proper Formatting*********************
  ld_mtitle =
  'Material to Material transfer report .txt document attachment'.
  ld_format              = 'RAW'.        "'TXT'.
ld_attdescription      = 'OUTPUT of Report'.
  ld_attfilename         = 'output_file'.
  ld_sender_address      = ' '.
  ld_sender_address_type = ' '.
Fill the document data. w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
  w_doc_data-obj_langu = sy-langu.
  w_doc_data-obj_name = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
  CLEAR w_doc_data.
  READ TABLE it_attach INDEX w_cnt.
  w_doc_data-doc_size = ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
  w_doc_data-obj_langu = sy-langu.
  w_doc_data-obj_name = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = pit_attach[].
describe the body of the message
  CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 0.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE it_message LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.
create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 1.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
  t_packing_list-doc_type = ld_format.
  t_packing_list-obj_descr = ld_attdescription.
  t_packing_list-obj_name = ld_attfilename.
  t_packing_list-doc_size = t_packing_list-body_num * 255.
  APPEND t_packing_list.
add the recipients email address
  CLEAR t_receivers.
  REFRESH t_receivers.
  t_receivers-receiver = ld_email.
  t_receivers-rec_type = 'U'.
  t_receivers-com_type = 'INT'.
  t_receivers-notif_del = 'X'.
  t_receivers-notif_ndel = 'X'.
  APPEND t_receivers.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = ld_sender_address
      sender_address_type        = ld_sender_address_type
      commit_work                = 'X'
    IMPORTING
      sent_to_all                = w_sent_all
    TABLES
      packing_list               = t_packing_list
      contents_bin               = t_attachment
      contents_txt               = it_message
      receivers                  = t_receivers
    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.
populate zerror return code
        ld_error = sy-subrc.
populate  zreceiver return code
loop at t_receivers.
  ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.                    "READ_DATA_TXT_OLD
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
  WAIT UP TO 2 SECONDS.
  SUBMIT rsconn01 WITH mode = 'INT' WITH output = 'X' AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
FORM populate_email_message_body.
  REFRESH it_message.
  it_message = 'Please find attached a list test ekpo records'.
  APPEND it_message.
ENDFORM. " POPULATE_EMAIL_MESSAGE_BODY
Regards,
Pawan

Similar Messages

  • Attachment of file for email

    Hello Gurus!!!
    Whenever user clicks on attachment button, I want to attach a file and the specified path name , I want to store it in character variable.
    Kindly suggest your answers
    <b>Points will surely be rewarded.</b>
    Thanks,
    Sachin

    Hi Azaz,
    I dont want to download an excel file. The thing is I want to display the file selection(browser / dialog box) and store that file name in variable.
    After that I want to pass that variable in outlook.application object as attachment property.
    Thanks,
    Sachin

  • Hi, I am user iPad and I do not know how can attach a file into email e.g. CV.  Thanks

    Hi,
    I am user iPad and I do not know how can attach a file into email e.g. CV. 
    Thanks

    You attach files within the app that creates the file or within the app that the file is saved. For example you email photos from within  the Photos App itself. Typically there will be an action icon within the app - an arrow icon many times - you tap on that to bring other options like Share - then Email.
    Attachments must be mailed within the apps themselves.

  • I can not attach any files to email or Facebook. When I go to "browse" the window comes up and disappears immediately. I updated browser and Adobe Flash. Restarted computer and zapped pram. any ideas? Please help!

    I can not attach any files to email or Facebook. When I go to "browse" the window comes up and disappears immediately. I updated browser and Adobe Flash. Restarted computer and zapped pram. any ideas? Please help!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Don't use the Safari-only Guest login created by Find My Mac.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • How to attached Two file in Email.

    Dear Friends,
    i have an email optoion in my Application .But right now it send mail with out attchment.i want to send meil with attachment .
    i have Two File browser item to attach file ,Please tell me how can i attach these two file with email
    My Code is
    DECLARE
    l_id number;
    to_add varchar2(1000):=:P1_TO;
    from_add varchar2(1000);
    l_body varchar2(4000):=:P1_DESCRIPTION;
    l_sub varchar2(1000):=:P1_SUBJECT;
    BEGIN
       select email_id into from_add from user_master where user_id=:app_user; 
       l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
            p_from      => from_add,
            p_body      => l_body,
            P_subj      => l_sub);
      COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    commit;
    END;How to attached two file in email .
    How can i do this.
    Thanks

    hI,
    thanks to reply me.
    It's REGARDS .
    eg.
    if i am sending any mail then in Bottom of Email Body My Name and Contact No Should be Display.
    Thanks

  • How can I reduce the size of a pdf file for emailing?

    I want to send a pdf file which is 8 mb, it has bounced in an email because it is too big, how can I reduce the size of the pdf file for emailing?

    Sometimes a simple "Save As" will reduce the file size slightly, but probably not enough to pass the <8 mb threshold of your recipient, as you need.
    You've probably seen it, try the next option in the Save As menu, "Reduced Size PDF," and make it compatible with the latest version possible, again considering the recipient. This suggestion assumes Acrobat X. You don't say which version you're using, but this tool was available at least going back to Version 8, but in a different place, you'll have to hunt.
    If all that doesn't work, you could remove some images from the source document, which also will reduce the overall size.
    Best luck.

  • Trying to attach pdf files to emails I'm sending to myself.  Instead of attaching the file, it copies the text.  I want the file so I can have it on my iPad.  I've been able to do this in the past, but not the last two tries.  What's wrong?  Thanks.

    Trying to attach pdf files to emails I'm sending to myself.  Instead of attaching the file, it copies the text.  I want the file so I can have it on my iPad.  I've been able to do this in the past, but not the last two tries.  What am I doing wrong?  Thanks.

    You aren't doing anything wrong.
    If the PDF is short enough, your iPad Mail app will display the text as part of the mail.
    Actually it is still an attachment.
    Tap and HOLD on the text and you should see options to "Open In..." that will allow you to open the PDF in most PDF readers such as iBooks, GoodReader, etc.

  • Downloading attached zip file from emails using safari

    How to download, and where will be the downloaded attached zip file in email be stored using safari? How to open and save the zip file attached to the email? Do you need an app to open and store the zip file?

    The app GoodReader (I don't know if there are any free apps that can also do it) can be used to zip and unzip email attachments
    press and hold the zip file in your email - after a couple of seconds you should get a popup, with one option being 'Open in GoodReader' which you should select
    GoodReader should then open with the zip file listed under My Documents
    select Manage Files on the right-hand side of GoodReader, select the zip file, and touch the Unzip button that appears on the right
    You should also be able to download zip files directly into GoodReader by typing the URL in its Wed Downloads sectio.

  • Can no longer attach pdf files into email.

    I recently purchased a new computer with Windows 8.1 as the OS.  Seems that I am no longer able to attach PDF files into any email.  Any clues as to what has gone wrong?

    Thanks for the help.  Seems I had a failed Windows update several weeks past I had forgottent about.  Had to do a restore to the prior date to get back to the right configuration.  Did an online session with Mircosoft, reinitiated the update, and it seems as if the issue is resolved.  We were able to re-test attaching and send pdf files. Seems there is still some slight issue with IE, but you appear to be on the right track about focusing on Web Outlook if the problem continues to surface.  Thanks again.

  • Issue the send attach Pdf file in Email. (Urgent).

    Hello folks, i have issue with attach pdf in e-mail using two lib&acute;s: activation.jar and mail.jar. Currently using a platform SOA and am creating the serviceType, then a file don&acute;t is local and yes by message, so far so good.
    Already tried in several forums, but without success.
    When send the message (pdf file), the program receive a type ContentType (application/octet-stream) and cause the MessageException, below:
    MessageException - in Container:
    Message: [B@79ffb7f7  /// the service received the pdf file
    [09/03/02 12:22:45] ID=dev_ESBTest (info) application/octet-stream *///ContentType of message*
    javax.mail.SendFailedException: Sending failed; *///Exception*
    nested exception is:
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    **javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream**
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream
    at com.sun.mail.smtp.SMTPTransport.sendMessage (SMTPTransport.java:353)
    at javax.mail.Transport.send0 (Transport.java:164)
    at javax.mail.Transport.send(Transport.java:81)
    With this, it send the e-mail without attach......above my source simple source code.
    ServiceType Code:
         protected void SendEmail(XQPart prt, String host, String from, String to) {
              // create some properties and get the default Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host";, host);
              Session session = Session.getInstance(props, null);
              try {
                   // create a message
                   MimeMessage msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(from));
                   InternetAddress[] address = { new InternetAddress(to) };
                   msg.setRecipients(Message.RecipientType.TO, address);
                   msg.setSubject("Test Subject.");
                   MimeBodyPart bp1 = new MimeBodyPart();
                   bp1.setText("Test Text.");
                   MimeBodyPart bp2 = new MimeBodyPart();
                   m_xqLog.logInformation(prt.getContentType());
                   bp2.setContent(prt.getContent(), prt.getContentType());
                   bp2.setFileName("teste.pdf";);
                   Multipart mp = new MimeMultipart();
                   mp.addBodyPart(bp1);
                   mp.addBodyPart(bp2);
                   msg.setContent(mp);
                   msg.setSentDate(new Date());
                   Transport.send(msg);
                   System.out.println("Email sent successfully!");
              } catch (MessagingException mex) {
                   mex.printStackTrace();
                   Exception ex = null;
                   if ((ex = mex.getNextException()) != null) {
                        ex.printStackTrace();
         }Anybody would can help me, please....
    Thanks ....
    Paulo Sampei.

    Hello Folks, me again. Then the solution about this question above, below:
    Solution:
    Code 1: Call 2 method passing requirement parameter:
    Obs: Always ContentType = application/octet-stream
    ByteArrayInputStream attachStream = new ByteArrayInputStream((byte[]) prt.getContent());
    //call constructor class:InputStreamDataSource
    InputStreamDataSource isds = new InputStreamDataSource("Testepdf.pdf", prt.getContentType(),attachStream);
    //call method sendMail(InputStreamDataSource,host,from,to)
    sendMail(isds, s_Host, s_SendFrom, s_SendTo);Code 2: Class InputStreamDataSource
         // statement DataSource
         private class InputStreamDataSource implements DataSource {
              private String name;
              private String contentType;
              private ByteArrayOutputStream baos;
              InputStreamDataSource(String name, String contentType,
                        InputStream inputStream) throws IOException {
                   int read;               
                   this.name = name;
                   this.contentType = contentType;
                   baos = new ByteArrayOutputStream();
                   byte[] buff = new byte[256];               
                   while ((read = inputStream.read(buff)) != -1) {
                        baos.write(buff, 0, read);
              public String getContentType() {
                   // TODO Auto-generated method stub
                   return contentType;
              public InputStream getInputStream() throws IOException {
                   // TODO Auto-generated method stub
                   return new ByteArrayInputStream(baos.toByteArray());
              public String getName() {
                   // TODO Auto-generated method stub
                   return name;
              public OutputStream getOutputStream() throws IOException {
                   // TODO Auto-generated method stub
                   throw new IOException("Cannot write to this read-only resource");
         }Code 3: mehod sendMail(InputStreamDataSource, host, from, to)
         protected void sendMail(InputStreamDataSource attach, String host,
                   String from, String to) {
              // create some properties and get the default Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              Session session = Session.getInstance(props, null);
              try {
                   // create a message
                   MimeMessage msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(from));
                   InternetAddress[] address = { new InternetAddress(to) };
                   msg.setRecipients(Message.RecipientType.TO, address);
                   msg.setSubject("Assunto teste.");
                   // create and fill the first message part
                   MimeBodyPart bp1 = new MimeBodyPart();
                   bp1.setText("Texto teste.");
                   // create the second message part
                   m_xqLog.logInformation("[ContentType]:[attach] "
                             + attach.getContentType());
                   // attach the file to the message
                   MimeBodyPart bp2 = new MimeBodyPart();
                   bp2.setDataHandler(new DataHandler(attach));
                   bp2.setFileName(attach.getName());
                   // create the Multipart and add its parts to it
                   Multipart mp = new MimeMultipart();
                   mp.addBodyPart(bp1);
                   mp.addBodyPart(bp2);
                   // add the Multipart to the message
                   msg.setContent(mp);
                   // set the Date: header
                   msg.setSentDate(new Date());
                   // send the message
                   Transport.send(msg);
                   System.out.println("Email sent successfully!");
              } catch (MessagingException mex) {
                   mex.printStackTrace();
                   Exception ex = null;
                   if ((ex = mex.getNextException()) != null) {
                        ex.printStackTrace();
         }Thank you very much, forum and bshannon at your tips.
    Cheers,
    Paulo Sampei.

  • Attach a file to Email

    Hi, can anyone please guide me on how to attach a file in my phone to an email reply. (I can draft a new mail with attached file by using iFile only)

    Hello DrAnujGupta and All,
    The same here...
    I use my iPhone/iPad for both personal and professional matters. We all use the Mac email client for long time and clearly being able to attach a file while composing or replying and email is a needed feature.
    Below the two situations where I really miss of this feature:
    a) I'm composing an email - already typed large amount of text - and realized that by attach a certain file the information would be more complete.
    My workaround: Copy the list of - To: - destination email and past it in some text file, copy the message body text  and past it in some text file, go the proper application containing the file a want to sent by email, use the application "share" or "sent by email" button - assuming that the application has such feature, copy back the email list and the body text.
    b) I have received an email from from someone that is after a report. I need to reply with an attachment, keeping the same email conversation thread. This example, the current workaround can be a bit more cumbersome if the sender email address is not part of my address book.
    address is not in my address book.
    My workaround: I reply to the person - or list of people - informing that I will sent another email with the required document.
    Please note that those workarounds are not meant to provide solution to this problem, but to expose how hard is to live without this feature.
    I believe that this may be related with the fact that iOS applications are "sandboxed", jailed aiming a more secure application runtime environment - I'm not an expert, just guessing here... The email application seems to have a reasonable ability to know which application can open a received attachment file. This demonstrates that there is a way - or there could be a way - to allow the applications to exchange files in a secure way. If this is truth, the other applications should also be able to share files with email application.
    ANx

  • How do I attach photo files to email message in iPhoto '11?

    Apple says, "If you want recipients to be able to use the photos you send, rather than simply view them, you can attach the photo files to your email message. (BUT HOW?) Recipients can then download the photos from the email message and print them, use them in their own projects, and so on."
    How do I attach these files when sending an email of photos using iPhoto? (I don't want to use AppleMail, I know how to do it in AppleMail) When I click to Share my photos via email in iPhoto, I do not see any option rbutton to add files to make the photos easily downloadable for the recipient.  Anyone know how to do this?  Thanks!

    Not sure why you can't deselect the option, but I would guess that yes, the files are being attached.
    Who are you sending to? iPhoto sends HTML emails and not every application on Windows or Mac knows how to deal with them, for instance, nor every user.
    Regards
    TD

  • I can not attach jpeg files to Email. I am running XP and use Yahoo mail

    I can not attach a picture / JPEG file to an email. I use yahoo email and have XP on the computer. I did not have this problem till I downloaded Firefox. Also since downloading firefox I can not get Internet explorer to connect to the internet.
    == This happened ==
    Every time Firefox opened
    == When I loaded Firefox

    Ernie
    thanks for the reply Here are the answers to your questions.
    yes each account has it's own drafts folder. and I can save the file into the drafts folder after follow the steps you outlined in your answer. I did repair permission but nothing has changed .
    one thing i discovered is that I can attach files to the mail if i reply to it. only when i create a new mail in one of those accounts can i not attach any files.
    Seeing on the side bar that you are a top user I have another question you might be able to answer
    my apple help is not working, when i go to finder and go to mac help the page is blank and if i search it just searches and nothing happens

  • Compress video files for email from iPod

    I manage an ipod Lab for an intensive English school. We want students to be able to email themselves larger audio and video files from directly from the iPod without having to go through iTunes/iPhoto. We often run into the problem with files being too large to email and are wondering if there is some sort of compression app that we can install on the iPod that will let us compress large files down for email. Something like ESFileExplorer for Android.
    Thanks,
    jHart

    Video and audio files are almost impossible to compress with a separate general-purpose compressor application. Such compressors just don't work with the way video and audio files are structured and usually make a video or audio file larger, not smaller; they can't shrink the file size and just add unnecessary overhead. The only effective way to shrink a video or audio file is to re-encode the file with a lower bit rate, smaller frame size (for videos) or both. I don't know if there's any app on the iPod that can do such re-encoding, and even if there is, unless these videos and audio files are quite short, it's probable that they can't be shrunk enough to get through most email systems which usually have very low attachment sizes allowed, often on the order of 10 to 20 megabytes maximum.
    A cloud-based storage solution such as Dropbox may be the only practical solution, though I'm not sure what video and audio apps would support saving to such as service. Someone else here may be able to offer suggestions.
    Regards.

  • Attach text file on email

    Hi,
    I must attach one table like file ".txt" at an email.
    I use the call function "SO_NEW_DOCUMENT_ATT_SEND_API1" and I can send email with attachment the text file.
    When I open this file, it is not properly aligned like I see it into table during program process.
    If I change the file extension in ".doc", it's attached and is properly aligned.
    Do you konw tell me if I must change some function parameter's settings?
    Thanks, Davide.

    hi try this ..
    TABLES: ekko.
    PARAMETERS: p_email   TYPE somlreci1-receiver .
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
      ebeln(10) TYPE c,
      ebelp(5)  TYPE c,
      aedat(8)  TYPE c,
      matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
      Retrieve sample data from table ekpo
      PERFORM data_retrieval.
      Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using p_email
                                          'Example .txt documnet attachment'
                                          'txt'
                                          'filename'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekpo.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
      data: ld_store(50) type c.  "Leading zeros
      CONSTANTS: con_cret(5) TYPE c VALUE '0D',  "OK for non Unicode
                 con_tab(5) TYPE c VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
       con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR' INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
    *Modification to retain leading zeros
      inserts code for excell REPLACE command into ld_store
      =REPLACE("00100",1,5,"00100")
        concatenate '=REPLACE("' wa_charekpo-ebelp '",1,5,"'
                                 wa_charekpo-ebelp '")' into ld_store .
      concatenate ld_store into .xls file instead of actual value(ebelp)
        CONCATENATE wa_charekpo-ebeln ld_store  wa_charekpo-aedat wa_charekpo-matnr  INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    endform.                    " POPULATE_EMAIL_MESSAGE_BODY
    regards,
    venkat.

Maybe you are looking for

  • Payment Wizard: BP "All Currency" but payments always in Local Currency

    Hello! This is a change request regarding the Payment Wizard. System behaviour: When a Business Partneru2019s currency is set to u201CAll Currenciesu201D in the Business Partner Master Data, the Payment Wizard always suggests payments in Local Curren

  • SUM two fileds from different rows from the same table

    I would like to SUM two fileds from different rows from the same table but I don't know how to do that. E.g. BillingTransactionsIndex      CreateDate      UserType      UserIndex      TransType      Reference      Total      Balance 2      6/5/2008 1

  • My downloaded Auditon 3 does not install.

    After a disc crush I had to install all programs. My Audition installed from the CD but i could not activate it. From Adobe support in England I got another version that does not require activation. However it failed to install on my PC running Windo

  • Event FOR contract  Changed in SRM

    Hi frnds I am using business object BUS2000113 FOR SRM . I want to know which event gets triggred when the contract is released . I have used ChangeVersionSaved & saved events but still i m not able to triger my workflow . Can you plz help . Thansk

  • Question about Tasklists

    I have a weird question about task lists. lets assume I created a task list for a user and enering values in to a data form is one of the task and promoting the planning unit is the next step. and assume the user has gone through the tasks and comple