Syncing mail on multiple divices

Hi All,
Can I sync my mail "sent" boxes across multiple devices for non "iCloud" email addresses? I have a business email account and I would love to be able to see mail sent from my laptop, in my desktop computer's "sent" mail box. Is this possible?

You can't do this using iCloud. iCloud works with iCloud addresses (@mac.com, @me.com & @icloud.com) only.
If your business email account uses IMAP or Microsoft Exchange you can do what you want. Contact your email provider or IT person to find out how to configure the account using IMAP or Exchange.

Similar Messages

  • Sync Mail between multiple devices

    Can anyone help? I own a MacBook Pro, an iMac, an iPhone, and iPad. I have managed to sync mail between the iPhone and the iPad using Microsoft exchange, so that if I delete an e-mail on the phone or the iPad then it is deleted on the other.
    However I can't sync the two computers in the same way, can anyone help and tell me how to sync Mail across all 4 units?
    (I used Exchange because the e-mail account is a Hotmail account and I was told, that's the only way I can do it).
    Regards and thanks in advance.
    Colin

    Microsoft publish the settings needed for Hotmail Imap, they work, use them.
    They are:
    For incoming connections:
    Server address: "imap-mail.outlook.com"
    Server port: "993"
    Encryption type: "SSL"
    For outgoing connections:
    Server address: "smtp-mail.outlook.com"
    Server port: "587"
    Encryption type: "TLS" ("SSL" can be used if TLS is not an option)

  • Is there a way to sync mail across multiple computers without using .mac?

    I'd like to be able to use either of my machines to check/respond to email, and have both of them be updated with both incoming messages and my replies. Is this possible outside of using a .mac account?
    I'm using 10.4.6 and also the latest version of Mail.
    Thanks in advance for any insight!
    peace,
    rahlo
    Message was edited by: rahlo

    Yes, there are several people that have published the steps to set up your own .Mac service by reverse engineering the protocol and rolling their own server to provide web services to emulate .Mac.
    If you are looking for a hobby, I would encourage you to try it. Assuming you are sophisticated enough to google it and find some steps you can use, it should not be that hard to set up.
    Please note - I haven't looked over the licenses for all of the software involved (Mac OS and .Mac) - you might be in violation of your license term by reverse engineering parts of the system or violating copyright/patents. As long as you don't go into business or diverting income from Apple - you may well be fine by learning how they did things.
    P.S. I assume you mean syncing the mail settings, not the actual contents of the mail box.

  • Syncing Mail Between Multiple Devices?

    Hey guys,
    So I'm trying to get back into the groove of things with my new Mac, however I'm experiecing one annoying problem.
    I've set up MacMail to my email accounts, but when I read and/or delete them on my computer, it doesn't regiester anywhere else.
    So if I look at my phone, all the messages I had deleted earlier still remain. Same if I log onto the website which hosts the email (Gmail/Outlook).
    Is there a preference option I'm overlooking, or some way I can set it up so that actions on one device will carry over to the others?
    Thanks.

    From http://windows.microsoft.com/en-AU/windows/outlook/send-receive-from-app
    Have you tried setting the account up as an Exchange account?
    otherwise.....manual setup would be
    Apps that support IMAP and SMTP
    If your email app doesn’t support Exchange ActiveSync, it might use IMAP. Unlike POP, which only syncs your inbox, IMAP syncs all your email folders.
    Use the following settings in your email app.
    Incoming (IMAP) Server
    Server address: imap-mail.outlook.com
    Port: 993
    Encrypted Connection: SSL
    Outgoing (SMTP) Server
    Server address: smtp-mail.outlook.com
    Port: 25 (or 587 if 25 is blocked)
    Authentication: Yes
    Encrypted Connection: TLS
    User name: Your email address
    Password: Your password
    Outgoing mail server (SMTP): smtp-mail.com:"email address"
    won't work as shown above

  • How to sync mail on multiple devices?

    I have a mac and an ipod touch 4gen and i have connected my email account on mail on both devices. I was wondering how to make it that if i opened one email on my ipod it would also be marked as read on mac. Im looking for some way to connect the mail on both devices. Thank you

    See my response to your other post

  • HT3228 Mail on multiple devices. Need to sync action for messages.

    I get mail on multiple devices. I find myself doing everything (delete, move, read ) on each device for each message. I need all to sync. In other words if I delete a message when reading mail on my iPhone, if I then look at mail on my iPad the message should not appear.

    Is your email account POP3 or IMAP? If POP3, does your provider
    support IMAP? An IMAP account will do what you want, POP3 does
    not.
    The problem you have and the resolution are a function of the type of
    email account you are using and not the device you connect with. Set
    your email up as IMAP (if possible) and your problem will go away.
    If you are using a POP3 account and cannot set it up as IMAP because
    the provider does not offer IMAP, consider setting that account to
    automatically forward all email to an IMAP account (Gmail is one, there
    are many others) and work from the IMAP account. You should set the
    POP3 account to automatically delete the emails after forwarding.

  • How do I sync Mail with Outlook and Gmail in browser?

    I really like the Mail app in OS X, but I've noticed that it's not synced with the browser version of my email accounts, so anything I do in Mail (e.g. read an email, delete/trash it, etc) is only reflected within the app and not in my browser.
    Just in case I didn't explain that properly: For example, if I read an email in Mail, and then switch to my Outlook account in Safari to check if that email has been marked as read, it would still appear as unread. If I delete and trash and email in Mac, that same email appears exactly where it used to be in Outlook, completely untouched.
    This bothers me for two reasons. One, even if I were to stick with Mail and not touch my Outlook/Gmail accounts in Safari again, I still wouldn't like the idea of my inbox being all messy if I were ever to log back in. Two, Mail doesn't seem to have any options to create folders and subfolders as far as I'm aware, so my emails which are very neatly organized in Outlook are all lumped together in Mail's inbox. So even though Mail is a neat little app, I still have Outlook and Gmail bookmarked.
    I'd like to know if there's a way to sync Mail with my email accounts in-browser, so that any changes I make in the app also show up when I log into my actual accounts? Maybe I'm just missing something or if this is not possible at all, please let me know. Thank you!

    You have to set those accounts up as IMAP. Right now you probably have them set up as POP3 accounts.
    Pop3 account are one way. You download your mail to your computer and send mail from your computer and it all stays on that particular computer. Imap stores everything on the mail providers server. Incoming and outgoing mail is always on the imap server and can be gotten on multiple devices. All sent mail is store on the server also and can be viewed from multiple devices.
    With outlook that might not be possible. Not sure if individual outlook accounts can use imap. I do know that the office365 side can as that is what my company uses and some people are using macs and other email program other then ms outlook.

  • Sync Mail between two computers

    After Leopard upgrade, I switched from Entourage to Mail.app, so I'm new to it.
    I use two Macs and POP accounts. How can I sync Mail.app between two computers in Leopard? The Sync Service of Smart Folders is not enough for me.
    May I use a sync app like Folders Synchrnonizer?
    Thanks
    Stefano

    Both my wife and I have multiple macs and work at home and on the road - we've tried all sorts, and there are 3 approaches that work:
    1) IMAP
    I know you think this isn't the ideal solution for you, but it is unbelievably simple and rock solid once you get it working.
    Set your POP mail addresses to forward all mail to your IMAP address (I use .mac which is brilliant, I don't know about Gmail).
    Your mail is server based, so your laptop, desktop, iPhone, webmail from a PC etc. are all always in sync.
    You will still get your mail from your old accounts.
    You can set rules on any of your machines to filter your mail into folders according to which address they were originally sent to.
    HOWEVER the mail you SEND will be FROM your IMAP address, so your clients / friends may get confused if you don't want them to use your IMAP address as your main address.
    2)
    Leave POP mail on the server.
    In Mail preferences, highlight your POP account and click on the "Advanced" tab.
    Select "Remove mail from server" to a 1 day if you come home each night.
    If you are away for longer, make it 1 week or Never.
    This way, if you download mail on your Laptop, when you get home that evening, your desktop will download the same mail again, as it has been left on the server.
    It's sort of fake IMAP.
    The downside is you can end up with a full mailbox at the server very quickly as you are now leaving messages on it, and you may have to empty the server yourself sometimes (in the same menu you just adjusted).
    Also, if you are away from your laptop too long, you may download and later delete-from-the-server messages on your desktop, leaving your laptop out of date.
    Use Mac Sync to keep your rules, mailboxes and preferences synced up.
    This is the way it's designed to work, so it should work fine.
    3)
    Drag the Mail folder.
    Assuming you're only using one Mac at any one time, you simply move the main mail folder to whichever machine is current.
    Quit Mail on both machines.
    On your target mac, go to youruserfolder/Library and rename the "Mail" folder to something else like "Mail Old". This is just so you have a backup.
    On your source mac, go to youruserfolder/Library and copy that entire folder (not just the mailboxes) either to a drive to transfer to your target mac, or straight to it if you have it networked.
    When you start up mail you will find the messages, folders, mailboxes etc. are the same as they were on your source mac.
    Now you use your target mac (say your laptop) for a while.
    When you are going back to your original source mac (e.g. your desktop), you now repeat the process in the other direction, replacing your desktop's mail folder with your newer laptop's version.
    It's really important you use one mac at a time and swap the folder each time you switch.
    If you rename the previous version before you overwrite it, you know you have a backup if things get out of sync.
    It works really well if you only take the laptop out occassionally, or if you use it exclusively for days at a time (i.e you go away) and you only need to do the transfer every so often.
    Also, it helps if you don't have thousands of emails - if your Mail folder is under half a gig, you can do this quickly using a USB keyring or similar. Any bigger and the transfer can get a bit slow.
    I use option 1, and felt it was worth changing my email address for.
    My wife uses option 2 when she is using her laptop in the day and she can run her desktop each evening the download the mail left on the server.
    But she sometimes gets trouble with her popmail server filling up (she gets lots of video and audio attachments) so if she's going away or not planning to use her desktop in the evenings, she reverts to option 3 and removes messages from the server "right away", updating her desktop's mail folder at the end of the week and just using her laptop until then.
    Good luck!

  • How do I sync mail accounts from my laptop to iPhone?

    Hi,
    I just got an iPhone 4S, iOS 7. I have Macbook Pro, with OS X 10.9 (Mavericks), iTunes 11.1.1.  I have email accounts already set up on my laptop, and I'd like to copy that information to the iPhone, and keep them in sync.  I searched for info on how to do this, but much on the pages I found refer to a previous version of iTunes, which had some "sync mail accounts" section, which is no longer there.  How do I do it now?  Do I have to manually set them up again on the iPhone?  I read somewhere that you "use iCloud" but there were no details.
    thanks,
    Rob

    I should have written my question better.  I didn't mean: connect to one account from multiple devices. That I understand -- IMAP, etc.  I want to sync the configuration of those accounts.  So, I set up 4 email accounts on my laptop, and then push the setup/config info to the iPhone so I don't have to type in the addresses and passwords again.  I have a lot of accounts and some of them change passwords frequenty.  It would be nice to not have to type on that iPhone screen.
    Rob

  • Cannot sync mail rules

    I have an iPhone 3G and use mobile me. The phone and my mac are all up to date. Everything syncs fine with my mac, contacts, mail, calender. The only thing that will not sync are some mails rules, even when the "sync mail rules, signatures" box is checked in the mobile my preferences. Anybody having a similar problem or know a solution?
    Thanks,
    Chris.

    The sync mail rules, signatures is for keeping mail rules and signatures synchronized with the Mail.app on multiple Macs.
    This does not apply to the iPhone and the iPhone's mail client which does not support rules.

  • TS4002 sync mail between mac and iPhone

    how sync mail between mac book and iphone

    usually it an effortless process, you just need to set up your accounts on both. Exchange and imap will do the work for you, pop account may require some additional settings changes on mac. Setting that are necessary to change with pop account can be found here.
    Using a POP account with multiple devices - Support - Apple

  • Sending mail with multiple attachment

    hi.
    i want to send mail with multiple attachment.
    i m succeed in sending multiple attachment but the second pdf is not open.
    its given error like "This file is damaged and could not be open.
    pls check my code. and
    give the solution....
    point should be assured...........
    hope all u r understand my problem..
    & tell me where is i m missing something.
    REPORT  YSDPASALE1_MAIL LINE-SIZE 110.
    data : year_month(6) type c.
    data : from_date like sy-datum,to_date like sy-datum.
    INITIALIZATION.
    year_month = sy-datum+0(6).
    CONCATENATE year_month '01' into from_date.
    to_date = sy-datum.
    ranges : temp for mkpf-budat.
    temp-low = from_date.
    temp-high = to_date.
    append temp to temp.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
           jobname like TBTCJOB-JOBNAME,
           L_RELEASE(1) TYPE c.
    CONSTANTS : l_c_device(4)    VALUE 'LOCL'.
    DATA : t type i value 0.
    DATA : p_email1 like somlreci1-receiver,
            p_sender LIKE somlreci1-receiver.
    Data Declaration
    DATA: gd_recsize TYPE i,gd_recsize1 TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject  LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att1 LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att2 LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_desc1 TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des,
          gd_mtitle LIKE sodocchgi1-obj_descr.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    DATA: BEGIN OF mailstr OCCURS 0,
            p_email like somlreci1-receiver,
          END OF mailstr.
    DATA: mailtab like STANDARD TABLE OF mailstr WITH HEADER LINE.
    DATA: ypp18tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
          ymis008tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
          ysd15tab like STANDARD TABLE OF mailstr WITH HEADER LINE,
          ymis10tab like STANDARD TABLE OF mailstr WITH HEADER LINE.
    SUBMIT YSDPASALE1 with bdt in temp
                           to sap-spool
                          with line-size = '255'
                           with KEEP_IN_SPOOL = 'X'
                           with IMMEDIATELY = ' '
                           WITHOUT SPOOL DYNPRO
                           AND RETURN
       NEW-PAGE PRINT ON
       DESTINATION l_c_device
       IMMEDIATELY ' '
       KEEP IN SPOOL 'X'
       NEW LIST IDENTIFICATION 'X'
       NO DIALOG.
       new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf.
        select yemail as p_email into CORRESPONDING FIELDS OF TABLE ymis008tab
          from ymail
          where ytcode = 'YMIS008'.
    ELSE.
       SKIP.
       WRITE:/ 'Program must be executed in background in-order for spool & mail sending',
               'request to be created.'.
      ENDIF.
    wait up to 3 seconds.
      submit YSD_MONTHLY_SALES
                                USING SELECTION-SET 'MAIL'
                                to sap-spool
                               with KEEP_IN_SPOOL = 'X'
                               with IMMEDIATELY = ' ' "SPACE
                               WITHOUT SPOOL DYNPRO
                               AND RETURN
       NEW-PAGE PRINT ON
       DESTINATION l_c_device
       IMMEDIATELY ' '
       KEEP IN SPOOL 'X'
       NEW LIST IDENTIFICATION 'X'
       NO DIALOG.
       new-page print off.
        IF sy-batch EQ 'X'.
        gd_attachment_desc1  = 'YMIS10'.
        gd_mtitle = 'Monthly Sales Report'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
        PERFORM convert_spool_to_pdf1.
       loop at it_mess_att.
        move it_mess_att1 to it_mess_att.
        APPEND it_mess_att.
       endloop.
       APPEND LINES OF it_mess_att1 to it_mess_att.
       free it_mess_att1.
        it_mess_att[] = it_mess_att1[].
        insert LINES OF it_mess_att1 into it_mess_att.
        APPEND LINES OF it_mess_att2 to it_mess_att .
         insert LINES OF it_mess_att1 into it_mess_att.
         insert LINES OF it_mess_att2 into it_mess_att.
       loop at ymis008tab into mailstr.
         p_email1 = mailstr-p_email.
          p_email1 = '[email protected]'.
           PERFORM process_email.
       endloop.
           clear mailstr.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
      ELSE.
        SKIP.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    FORM convert_spool_to_pdf1.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att1 = gd_buffer.
        APPEND it_mess_att1.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      DESCRIBE TABLE it_mess_att1 LINES gd_recsize1.
      CHECK gd_recsize > 0 or gd_recsize1 > 0.
      PERFORM send_email." USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email." USING p_email.
    CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = gd_attachment_desc1 .
    gd_attachment_desc = 'YPP18 - Daily Highlights'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Dear Sir,'.
      APPEND it_mess_bod.
    it_mess_bod        = ' '.
    APPEND it_mess_bod.
      it_mess_bod        = ' '.
      APPEND it_mess_bod.
      it_mess_bod        = 'kindly find the attached document'.
      APPEND it_mess_bod.
    it_mess_bod        = ' '.
    APPEND it_mess_bod.
    it_mess_bod        = 'Do not reply on this mail, It is generated from SAP'.
    APPEND it_mess_bod.
    it_mess_bod        = ' '.
    APPEND it_mess_bod.
      it_mess_bod        = ' '.
      APPEND it_mess_bod.
      it_mess_bod        = 'Regards,'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Arpit Shah'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                          it_mess_att1
                                    using "p_email
                                          gd_mtitle
                                         'Testing mail generated from SAP'
                                         'Daily Highlights Abstract Report - YPP18'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                              it_attach1
                                        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.
    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,w_doc_data1 like sodocchgi1.
    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_data1-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[] = it_attach[].
    For 2nd Attachments
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach1 INDEX w_cnt.
      w_doc_data-doc_size = w_doc_data1-doc_size +
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach1 ).
      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.
    APPEND LINES OF it_attach1 to t_attachment.
      t_attachment[] = it_attach1[].
    APPEND LINES OF it_attach1 to t_attachment.
    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   = 0.
      t_packing_list-body_start = 1.
    DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
    DESCRIBE TABLE it_mess_att LINES t_packing_list-body_num.
      DESCRIBE TABLE it_attach LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  'YMIS008'."ld_attdescription.
      t_packing_list-obj_name   =  'YMIS008'."ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
      clear t_packing_list.
    for 2 attachments
      data : a type i,b type i.
       a = t_packing_list-body_num.
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 0.
      t_packing_list-body_start = a + 1. "1
    DESCRIBE TABLE it_mess_att1 LINES t_packing_list-body_num.
      DESCRIBE TABLE it_attach1 LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  'YMIS10'."ld_attdescription.
      t_packing_list-obj_name   =  'YMIS10'."ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    a = t_packing_list-body_num.
    clear 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 = a + 1.
    t_packing_list-body_num = t_packing_list-body_num + 1.
    DESCRIBE TABLE it_mess_att1 LINES t_packing_list-body_num.
    t_packing_list-body_num = a + t_packing_list-body_num .
    t_packing_list-doc_type   =  ld_format.
    t_packing_list-obj_descr  =  'YMIS10'."ld_attdescription.
    t_packing_list-obj_name   =  'YMIS10'."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.
    loop at ymis008tab into mailstr.
      t_receivers-receiver = mailstr-p_email.  "ld_email.
      t_receivers-receiver = p_email1.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'. "X   "Read Acknoledgement
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
    endloop.
       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.
    Rgds.
    Arpit

    Hi Arpit,
    Take a look at the documentation of FM 'SO_DOCUMENT_SEND_API1' for parameter PACKING_LIST. I think you should set t_packing_list-head_num to a different value than 0 for the second attachment.
    Regards,
    John.

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • Syncing Mail Notifications Between Mac and iPhone

    Hi
    I been having this problem with the mail notifications not syncing between the Mail.app on my MacBook Pro and iPhone. Let me explain:
    When I get a new email, I hear the sound and see the red notification icon appear on both the MacBook and the iphone. When it comes to checking the new email, here are the two possible scenarios:
    a) If I check the new email on my phone, the red notification icon disappears from BOTH the iphone and the MacBook.
    b) If I check the new email on my MacBook, the red notification disappears from the MacBook but DOESN'T disappears from the iPhone (that is until I open the app). This happens with both cases, when the app is "running" in the background or when it is complety closed.
    I don't know if I am crazy but I am pretty sure that both of the notifications used to disappear before, no matter where I checked the mail.
    I tried deleting and creating the email again on my phone, and it didn't work.
    Here some info that could help find a solution:
    - I'm using icloud email (@me.com)
    MacBook
    -Mountain Lion
    iPhone:
    - iOS 6 (this problem started before the upgrade)
    - Push is on.
    - Fetch (that suppodselly would be used only if push is off) is set to Manually.
    - On the "Advanced" sub-menu inside the Mail settings, Push is also selected.
    Hopefully this can actually be fix and I can prove myself that I was not crazy!!
    Thanks in advance for the help!!

    Anyone find a fix for this problem? I've been waiting for this since notification syncing was announced a couple years ago with iOS 6. I use iCloud for my email and find it very frustrating that when I read an email on my Mac or on iCoud.com that it doesn't automatically dismiss the notifications for those emails on my iOS devices until I open the mail app on each iOS device. Notification syncing works great with other apps. With iMessages, for example, when I read a message on my Mac running Yosemite, the notifications disappear on my iOS devices without opening the messages app (badge app icon, home screen notifications and notification center). Why can't they figure this out with email? I remember at my old job, I had an exchange account that properly synced mail notifications between devices, but it has never worked with my iCloud email. I wonder if I am just missing a particular setting or if Apple just blew it here. Any info would be greatly appreciated.

  • Using home sharing, can you sync libraries between multiple users in a household?

    Using home sharing, can you sync libraries between multiple users in a household?

    Hey lindsay146,
    Home Sharing lets you to stream or transfer music, movies, and more with up to five authorized computers in your household. You can learn more about it in this link:
    Understanding Home Sharing
    http://support.apple.com/kb/HT3819
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

Maybe you are looking for