Automator Group mail but no attachment

Hi All,
Trying to send out a group mail with an attachment.
The group mailer is working fine except that the attachment is not being added to the group mail generated messages (only to the first message)
The message is otherwise fine
My workflow is as follows:
New Mail Message (Mail) Options: Show action when run: checked
Ask For Finder Items (Finder) Prompt: "Choose Mail Attachments", Allow Multiple Selection: checked
Add Attachments to Front Message
Get Specified Address Book Items (Address Book) Options: Show this action when the workflow runs: checked
Group Mailer (Address Book) Add Greeting: checked (optional)
Send Outgoing Messages (Mail)
Please help!
Thanks
M.

Hi All,
Trying to send out a group mail with an attachment.
The group mailer is working fine except that the attachment is not being added to the group mail generated messages (only to the first message)
The message is otherwise fine
My workflow is as follows:
New Mail Message (Mail) Options: Show action when run: checked
Ask For Finder Items (Finder) Prompt: "Choose Mail Attachments", Allow Multiple Selection: checked
Add Attachments to Front Message
Get Specified Address Book Items (Address Book) Options: Show this action when the workflow runs: checked
Group Mailer (Address Book) Add Greeting: checked (optional)
Send Outgoing Messages (Mail)
Please help!
Thanks
M.

Similar Messages

  • XI mail sender adapter attachment mapping.

    I have created a MAIL->XI->RFC scenario.
    I have configured sender mail adapter with XIPAYLOAD message protocol.
    I have created RFC function which need an attachment as an input parameter.
    When I send an email with attachment, my mail adapter separates the input message into MailMessage and MailAttachment payloads. I can do mapping of the MailMessage payload but I need map the attachments to as input parameters of RFC function.
    I have read several webblogs about this problem. But I can not use them in this scenario. I have found one webblog with description of MessageTrasferBean  module and XSL mapping directli on adapter module but I am not familiar with XLST mapping and did not know how to use it to transform the attachments.
    Any help will be appritiated.
    Thanx
    Peter

    Hi,
    Am trying the same scenario as you did.
    Can you guide me step by step how to read , validate and extract data from attachment.
    Am stucked in reading the attachment now.
    I can able to get mail but not attachment.
    Can you tell the steps that you did.
    Thanks in advance,
    Sakthi

  • Mail Receiver Adapter Attachment Content Encoding

    Hello to all,
    we use a mail receiver adapter to sent XI messages as email. Everything works fine but the content encoding of the  attachment is set to UTF-8. I need ISO-8859-1 instead of UTF-8. How could I achieve this ?
    Thanks Christian

    Hello Stefan,
    we've tried this too (content type to: text/plain;charset="ISO-8859-1"), but it didn't work.
    This is our output structure
    <?xml version="1.0" encoding="ISO-8859-1"?><ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30"><Subject>Daten von 01.07.2008 12:20</Subject><From>mail(at)dummy.de</From><To>max.muster(at)web.de</To><Content_Type>multipart/mixed; boundary="--AaZz"</Content_Type><Content>----AaZz
    Content-Type: text/html; charset=ISO-8859-1
    Content-Disposition: inline
    Mit freundlichen Grüßen
    ----AaZz
    Content-Type: text/plain; charset=ISO-8859-1; name=Daten 01.07.2008 1220.txt
    Content-Disposition: attachment; filename=Daten 01.07.2008 1220.txt
    "N";2000000003;"1234123412341234";1234500009;000000000000;01;"L";"OKDAU";1;"Prof. Dr.";"Max";"Mustermann";"";"Musterstraße";"";000000;"PLZ45";"Musterhausen";"";19990101;"max.mustermann(at)muster.com";"";"";"";"";"1";"Titel";"Vorname";"Name";"20000101";"";"0";"Max Mustermann";"L";"BLZ";"100000001";"Musterbank";00;;01;000000;;;00;1;0;0;1;0;"ForumNr";1;1;0;1;0;1;0;0;20080620;0;;0;20080620;0;20080620;0002;STANDARD
    "N";2000000004;"5678567856785678";1234567009;000000000000;01;"L";"OKDAU";1;"Prof. Dr.";"Stefan";"Maier";"";"Teststraße";"";000000;"PLZ65";"Testhausen";"";19991201;"stefan.maier(at)test.de";"";"";"";"";"1";"Titel";"Vorname";"Name";"20001201";"";"0";"Stefan Maier";"L";"BLZ";"100000001";"Testbank";00;;01;000000;;;00;1;0;0;1;0;"ForumENr";1;1;0;1;0;1;0;0;20080620;0;;0;20080620;0;20080620;0002;STANDARD</Content></ns:Mail>
    But the attachment is UTF-8
    Thanks for your help.
    Christian

  • HT6030 I would like to send an e-mail to a group of people I have the group created, but when I drag it to bcc or to it will not attach. can anymon help me with this?

    Help I would like to send an e-mail to a group of people,  I have the group created, but when I drag it to bcc or to- it will not attach. can anymon help me with this?

    In a new email message window start to type the name of the Group you have in Contacts/Address Book in the 'To' field - it should self-complete when it recognises the name.
    (Note: this only works with 'normal' Groups and not Smart 'Groups').

  • I dont receive e-mails with attachment sent to OS X Server 3.0.1 Group-mailing lists

    I have a small company using a mac mini with mavericks and server 3.0.1.
    We are using most of the services available in OS X server (except DHCP, Netinstall and Xsan). One of the services we use the most is Mail server, and the whole company uses that as our primary mail server.
    We have set up several different Groups and activated group-mailing lists on some of them. The setup has been working very good for over a year (started using it with Mountain Lion Server).
    Recently I was going to send a christmas card to all employees using the workgroup mailing list. I was using the stationaries in Mail, and it was sent as normal but never recieved by me or any of the other employees. Below is the SMTP Log
    Dec  6 17:10:16 server.mydomain.com postfix/smtpd[29101]: connect from unknown[10.0.1.16 *<- my local IP address*]
    Dec  6 17:10:16 server.mydomain.com postfix/smtpd[29101]: 480451503B0A: client=unknown[10.0.1.16 *<- my local IP address*], sasl_method=CRAM-MD5, sasl_username=myusername
    Dec  6 17:10:16 server.mydomain.com postfix/cleanup[29109]: 480451503B0A: message-id=<[email protected]>
    Dec  6 17:10:16 server.mydomain.com postfix/qmgr[23288]: 480451503B0A: from=<[email protected]>, size=98063, nrcpt=1 (queue active)
    Dec  6 17:10:16 server.mydomain.com postfix/local[29110]: 480451503B0A: to=<[email protected]>, relay=local, delay=0.13, delays=0.05/0.01/0/0.08, dsn=2.0.0, status=sent (delivered to command: /Applications/Server.app/Contents/ServerRoot/usr/libexec/MailService/list_serve r_post post workgroup)
    Dec  6 17:10:16 server.mydomain.com postfix/qmgr[23288]: 480451503B0A: removed
    Dec  6 17:11:16 server.mydomain.com postfix/smtpd[29101]: disconnect from unknown[10.0.1.16 *<- my local IP address*]
    I did some trial and error and it seems like it is linked to the fact that I have attachments to the email. Sending an email with only text is recieved like normal. Even attacment like PDF or jpg is "blocked" it seems. I have tried using email outside my domain but still the same result. Sending the same email (with attachment) to all reciepients (not using the mailiing list) works and is recieved by everyone. I have turned off all email filtering settings on the server but still the same result.
    Is anyone else experiencing the same problem? My guess is that this is a Server 3.0.1 hickup, so it would be nice to get confirmation from others experiencing the same.

    Troubleshooting Apple Mail
    What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages

  • Using Group Mail - Automator Performs Unwanted Step

    Here is an interesting side effect...
    I've got an automator action that I've saved as an application to e-mail to a small group of people. The actions perform perfectly except for one small problem. Whenever I run the app the system goes through its process and then after all the mail is sent my address book gets wiped clean.
    Anyone ever have this happen? What did you do to resolve the problem?
    I learned to backup my address book so it isn't a problem restoring it. But this seems completely unnecessary.
    Any feedback that helps solve the problem would be great.
    Thank you,
    Joseph
    Work Flow is as follows:
    1 - New Mail Message (Message is Composed; with no addresses specified)
    2 - Find People In Address Book (Setup to find people in a Group)
    3 - Group Mailer (Add Greeting Checked)
    4 - Send Outgoing Message
    5 - Ask for Confirmation (Set to ask if I want to run the Work Flow again)
    6 - Run Work Flow (Set to Run this Same Work Flow again from the beggining)

    I've just run through the workflow and sure enough it ate the group that I'd selected. After playing around with it some it looks as though the problem as to do with the order of steps 4 and 5 -
    Change it to the following and it should work fine:
    4- Ask for Confirmation message (set to +Ignore Results from Previous Action+)
    5- Send Outgoing Message (set to +Ignore Results from Previous Action+)
    I didn't use step 6

  • Automator bug in Group Mailer action

    Hello, I think there's a bug with the Group Mailer action. The first time I ran the workflow it only worked partially. Not all the mails included the email message. When I ran the workflow again it only included the greeting and completely left out the email Message from the "New Mail message" action.
    I have the following workflow setup:
    New Mail Message
    Get Specified Address Book Items
    Group Mailer
    Send outgoing mail
    The workflow will include the email message if I deselect the "add greeting" from the "Group Mailer" action. But then I won't have the personal greeting. I might as we'll use "bc" in the email instead of using Automator.
    Please help.
    Thanks.

    The workflow works with some restrictions only to be found by trial and error (i bought SerialMailer to avoid further irritation).
    I translated the workflow commands from Dutch into English, excuse if me I do not use the correct wording.
    First [create new mail message] (You cannot use any formatting or import text, result panel will show mail)
    Next [Search address book groups] (Results panel should show the group)
    Then [send e-mail to group] (you can use the "dear" etc check box
    a bubble will connect the search group and send e-mail box
    Finally [send outgoing mail].
    You cannot select a concept mail in your Apple Mail, Automator needs to create one and Automator will put it in the outgoing mailbox (this box you cannot reach as user, it is hidden!).
    Good luck

  • How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the

    How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the e-mail.  What have I done differently?

    Thanks again for the detailed instructions Srini!
    And I really hate to be a pest . . . but . . .
    Using your example and not modifying it, I get the e-mail form filled out correctly and the pdf attached, however, I'm not prompted to sign it.
    Any more clues?

  • I want to drag files to mails but not in body of mail , more over the available type of attachments is only photo or video so how I can attach another type

    I want while replying incoming mails to drag files to mails but not in body of mail , more over the available type of attachments is only photo or video so how I can attach another type

    There is no dragging of anything in iOS.
    Attach as many files or emails as you'd like until it reaches the max capacity of attachements for the email provider.

  • Automator w/ Group Mailer Truncating Messages

    I am attempting to send out an email to every person in my Address Book who has an email. I created a smart group in Address Book and am using that to send my messages. I am going to be getting married and I would like to announce the dates when those are set. I am also having a child and would love to email everyone when it's time.
    I can get the people I need to get. The problem is the mail message gets shorter and shorter every time a new message is created eg:
    To:[email protected]
    Body: "Hey guess what.... Blah Blah Blah"
    To:[email protected]
    Body: " guess what.... Blah Blah Blah"
    To:[email protected]
    Body:" lah Blah"
    My workflow looks like this:
    1. New Message
    2. Find People whose group = has email
    3. Group Mailer
    4. Send Message

    Not sure why you would need to use Automator. Why not just send a single email out using the group as the addressee and hide the addresses?
    To send emails to a group and hide group member names and addresses when sending a message to a group created in Address Book do the following.
    1. Open Mail and choose Preferences from the Mail menu.
    2. Click Composing.
    3. Deselect the checkbox for "When sending to a group, show all member addresses" and close Mail Preferences.
    Then when you send an email to a group, only the group name will be seen.

  • Whenever I send a single person text it shows as coming from my e-mail but when I send a group message it comes from my phone. How do I change it so it always comes from my phone number not e-mail.

    Whenever I send a text to a person it shows as coming from from e-mail but when I send a group text it shows as coming from my phone? How can I change it so that all texts come from phone?

    The fact that the problem only occurs when iphones are texting you leads me to think that iMessage may be the culprit. The fact that it is only iphones using SPRINT however is weird. Try turning imessage off on both yours and your sons phones to see if the problem persists. If it does, it may be a carrier problem.

  • HT4519 how do i get my server email to send pictures.  Email works without pictures, but when attaching a picture the mail will not send

    Email works without pictures, but when attaching a picture the mail will not send

    Hi,
    In Mail > Preferences > Accounts to can find out which STMP server you are using for outgoing items.
    This can be one account.
    I do this with a dial Up account I still have access to.
    I can "fetch" mail over DSL and now Fibre.
    However I have to be Logged in via Dial up to actually use their Servers to Send.
    As a Consequence I "send" via one of the other Accounts STMP servers.  (I tend to add a signature that reflects this account change)
    The other thing that might explain what you are seeing is the Full Name Box.
    8:38 PM      Monday; April 8, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Group Mailer ~ There is no outgoing Mail message. (-2700)

    Hi
    I am attempting to use the group mailer function in automator.
    I have tried a variety of different work arounds with the same effect.
    The process I have created has four stages:
    1) Get Specified Address Book Items
    2) Group Mailer
    3) Get Specified Mail Items
    4) Send Outgoing Messages
    I have tinkered with the order of stages and with the 'ignore previous results' as suggested on other forums - all to no avail.
    The Action reaches Stage 2 (Group Mailer) and then stops with the error message There is no Outgoing Mail Message (-2700).
    Can anyone shed any light on this?
    Thank you, in advance
    Adam

    Sorry about that. The one I sent was not the latest version. This one addresses the repeated asking for file attachments and the automatic message sending issues.
    Here is the latest version:
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">property GreetingWanted : ""
    property theGreeting : ""
    property GreetingNameOrder : {"First and Last Name", "First Name Only", "Last and First Name", "Last Name Only"}
    property theCompleteGreeting : ""
    property theSubject : ""
    property theContent : ""
    property FileAttached : ""
    property theAttachment : ""
    on run {input, parameters}
    set theNumberOfInputItems to count of items in input
    set CountOfAttachments to (count of items in input) - 2
    -- Gather Contact Info
    tell application "Address Book"
    set theEmailGroup to last item of input
    set FirstNames to first name of people of theEmailGroup
    set LastNames to last name of people of theEmailGroup
    set EmailAddresses to value of email 1 of people of theEmailGroup
    end tell
    -- Generate emails
    tell application "Mail"
    -- Email info
    set theSubject to subject of first item of input
    set theMessage to content of first item of input
    set theAttachments to items 2 thru (CountOfAttachments + 1) of input
    -- Greeting info
    display dialog "Would you like to add a greeting?" buttons {"Yes", "No"} default button 1
    if button returned of the result is equal to "Yes" then
    set GreetingWanted to true
    display dialog "Please enter the opening for the greeting." default answer "Dear "
    set theGreeting to text returned of the result
    set GreetingName to (choose from list GreetingNameOrder with prompt "Please select the choice of name for the greeting" default items item 1 of GreetingNameOrder) as text
    else
    set GreetingWanted to false
    end if
    -- File Attachment info
    display dialog "Would you like to add a file attachment(s)?" buttons {"Yes", "No"} default button 1
    if button returned of the result is "Yes" then
    set FileAttached to true
    else
    set FileAttached to false
    end if
    repeat with i from 1 to count of EmailAddresses
    if GreetingWanted then
    if (GreetingName = item 1 of GreetingNameOrder) then set theCompleteGreeting to theGreeting & item i of FirstNames & space & item i of LastNames
    if (GreetingName = item 2 of GreetingNameOrder) then set theCompleteGreeting to theGreeting & item i of FirstNames
    if (GreetingName = item 3 of GreetingNameOrder) then set theCompleteGreeting to theGreeting & item i of LastNames & space & item i of FirstNames
    if (GreetingName = item 4 of GreetingNameOrder) then set theCompleteGreeting to theGreeting & item i of LastNames
    if GreetingName = false then set theCompleteGreeting to theGreeting
    set theCompleteContent to theCompleteGreeting & "," & return & return & theMessage & return
    end if
    -- Generate email
    set email to make new outgoing message with properties {subject:theSubject, content:theCompleteContent, visible:true}
    tell email to make new to recipient with properties {address:item i of EmailAddresses}
    -- Add attachments
    if FileAttached then
    my MoveToEndOfContent()
    repeat with i from 1 to CountOfAttachments
    tell email to make new attachment with properties {file name:item i of theAttachments}
    end repeat
    end if
    send email
    end repeat
    end tell
    return input
    end run
    on MoveToEndOfContent()
    tell application "System Events"
    tell process "Mail"
    keystroke "a" using command down
    key code 124 -- right arrow
    keystroke return
    keystroke return
    end tell
    end tell
    end MoveToEndOfContent
    </pre>
    There are a few other refinements that could be added:
    1) Avoiding the asking if attachments want to be added by checking whether there were any assigned in the Automator "Get Specified Finder Items" dialog;
    2) There is a rather annoying bounce/notification by Automator after the initial "New Mail Message" action. Gathering all the information first and then creating a template with the "New Mail Message" action would avoid this annoyance. Unfortunately, as you know, I am using that action as a quick way to gather the subject, message, and account information.
    3) Rename the actions by using a Ctrl click on the action title bar to more clearly indicate what information is being requested in the dialogs.
    PowerBook 12"   Mac OS X (10.4.8)  

  • 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.

  • Problem with MacMail on MacBook Air - mail with 32MB attachment appearing in "recovered messages" folder every 12 seconds

    Problem with MacMail on MacBook Air
    3 days ago I failed to send a mail with a large (32MB) attachment - and it is no longer in my outbox, draft mails or sent file.
    BUT a copy of this same mail now appears every about 15 seconds in my "recovered messages" folder
    I noticed when I received a system error saying I had a disk almost full issue - there were over 580 copies of the mail with 32MB attachment in the "recovered messages file"
    I deleted them all, and deleted the Trash
    BUT the message still keeps re-appearing every 15 seconds or so.  So I keep deleting them.
    Since then I have not been able to receive mail (altho' I am able to send) and Mail is VERY slow
    I am running MAC OS X 10.6.8
    I am running Mail version 4.6 (1085)

    Also here's the log before it happened. As you can see there is no activity from 9:48 to 10:00 am when the sound occurred.
    23/02/2014 9:48:12.792 am ntpd[52]: FREQ state ignoring -0.145411 s
    23/02/2014 9:48:15.258 am WindowServer[96]: _CGXHWCaptureWindowList: No capable active display found.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319378: AirPort_Brcm43xx::powerChange: System Sleep
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319390: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

Maybe you are looking for