Adding an attachment to e-mail

We have setup e-mails to users when data has been loaded via FDM, but are looking to attach the source load file to the e-mail. Has anyone done this and if so what additions needed to be made to the generic e-mail accelarator script?

Because of MultiLoad's poor performance with large files, I instead use a customized configuration to process multi-period files as though they were single period FDM submissions. So, the following is a guess. If it doesn't work, I'll have to defer to the other FDM forum posters.
Try this in the MultiLoadAction script:
If LCase(strEventName) = "aftcopyfiles" Then
     strFile = RES.PcolScriptInfo.Item("ScriptInfo").ColFlds.Item("FilePath").varValue
     '...eMail strFile to user...
End IfIn your case, AftCopyFiles may not be the correct Event for eMailing the source file. Refer to the API Object Guide's MultiLoad (Text 12 Period) Firing Order section to find the appropriate Event. Keep in mind that the FilePath variable may not be available in all MultiLoad Events. There is a table at the beginning of the Event Model Firing Order chapter that details the variables available during each sequence.

Similar Messages

  • How prevent shared folders to be added as attachment in apple mail?

    All,
    The thing just happend. One of the network users wrote a new mail (in apple's mail app) and instead of attaching one file, the user by accident double clicked the shared folder, and mail started attaching the 8.1 Gb folder. This never happend before and I like to prevent this. Should I go to server admin>afp>sharepoints? And unshare the folder? But are they still able accessing the files?
    Help is appreciated. Thanks in advance.
    Regards,
    Harry

    Your current approach will not likely work, as there is no means to selectively set permissions for an application in the fashion that would be required here.
    You'd need not only need indication of and the involvement of the active mail client, you'd also need some way to deal with either the specific type of data involved or the specific quantity involved, and I don't know of any means of communicating that across the mail client and the security system. (Blocking all access to Shared files is easy. Blocking just mail attachments? Not so easy.
    I can't think of a way that would work here with a typical access control list (ACL) implementation scheme (Mac OS X has decent ACL support), short of a whole lot of kernel customizations or something like a programmable sending-related trigger scheme within mail, and AFAIK, there are no "outbound" rules within Apple mail client.
    And is this case hunting fleas with anvils? (read: Something that's possible, but a whole lot of work.) How often does this particular case arise? If it's happening frequently and is not being addressed by some targeted training, then you probably don't really have a technical problem, you probably have a personnel and/or managerial problem here, and those don't lend themselves to technical fixes.
    To pursue the maximum message size within the Microsoft Exchange product, then you have an Exchange qustion and not a Mac OS X (Server or client) question.
    I don't run Microsoft Exchange servers, so I have no particular familiarity with the settings and options of that product. Based on some quick Googling, have a read of Microsoft's [Understanding Message Size Limits|http://technet.microsoft.com/en-us/library/bb124345.aspx] as a start, or Google around for the details of whatever version of Exchange is in use here.

  • Adding Image as attachment to e-mail UTL_SMTP

    Guys ,
    I am trying to add an image as attachment to an e-mail.
    I am reading the image from the table and then passing it as a BLOB in my procedure.
    Following is the part of the code which adds the attachment
    {code}
    PROCEDURE add_mail_attachment
                  in_att_mime_type  in  varchar2 character set any_cs default 'text/plain; charset=us-ascii',
                  in_attachment     IN  BLOB ,
                  in_att_file_name  in  varchar2 character set any_cs default null,
                  in_mail_conn      IN  UTL_SMTP.CONNECTION
    IS
    l_mail_conn       utl_smtp.connection;
    l_step            PLS_INTEGER  :=2147483647;
    BEGIN
        l_mail_conn:=in_mail_conn;
        if in_att_file_name is not null then
          UTL_SMTP.write_data(l_mail_conn, '--' || co_msg_boundary || UTL_TCP.crlf);
          UTL_SMTP.write_data(l_mail_conn, 'Content-Type: ' || in_att_mime_type || '; name="' || in_att_file_name || '"' || UTL_TCP.crlf);
          UTL_SMTP.write_data(l_mail_conn, 'Content-Disposition: attachment; filename="' || in_att_file_name || '"' || UTL_TCP.crlf || UTL_TCP.crlf);
          for i in 0 .. trunc((dbms_lob.getlength(in_attachment) - 1 )/l_step) loop
                 UTL_SMTP.write_data(l_mail_conn, DBMS_LOB.substr(in_attachment, l_step, i * l_step + 1));
          END LOOP;
          utl_smtp.write_data(l_mail_conn, utl_tcp.crlf || utl_tcp.crlf);
        end if;
       EXCEPTION
       WHEN OTHERS THEN
          sbs_error.error_handler(
                 in_error_no   => SQLCODE,
                 in_error_txt  => SQLERRM,
                 in_show_stack => TRUE
    end;
    {code}
    And this is the code which i am running to test the code
    {code}
    declare
      in_sender                                                         varchar2(200);
      in_recipients                                    varchar2(200);
      in_subject                                                         varchar2(200);
      in_message                                                      varchar2(200);
      in_att_mime_type                                        varchar2(200);
      in_attachment                                                blob;
      in_att_file_name                                           varchar2(200);
      in_cc                                                                        varchar2(200);
      in_bcc                                                     varchar2(200);
      out_mail_conn                                               utl_smtp.connection;
      in_mail_conn                                   utl_smtp.connection;
      v_blob                                        blob;
    begin
          in_sender := '[email protected]';
          in_recipients := '[email protected]';
          in_subject := 'Image attachment';
          in_message := 'Test mails ,Please delete';
          in_cc:='[email protected]';
          in_bcc:='[email protected]';
          select image into v_blob
          from table
          where condition
          sbs_util.sbs_p_email_pkg_raunaq1.open_mail
          in_sender     => in_sender,
          in_recipients => in_recipients,
          in_subject    => in_subject,
          in_message    => in_message,
          in_cc         => in_cc,
          in_bcc        => in_bcc,
          out_mail_conn => out_mail_conn
          in_att_mime_type := 'application/x-pdf';
          in_attachment := v_blob;
          in_att_file_name := 'Att1.pdf';
          sbs_util.sbs_p_email_pkg_raunaq1.add_mail_attachment
          in_att_mime_type  => in_att_mime_type,
          in_attachment     => v_blob,
          in_att_file_name  => in_att_file_name,
          in_mail_conn      => out_mail_conn
          sbs_util.sbs_p_email_pkg_raunaq1.close_mail(out_mail_conn);
    END;
    {code}

    And this is the code which i am using :
    There are basically 3 procedures
    1.Open_mail() - Which is used to open a connection and start a mail message, The code is below
    PROCEDURE open_mail (
                        in_sender         IN  VARCHAR2 CHARACTER SET ANY_CS,
                        in_recipients     IN  VARCHAR2 CHARACTER SET ANY_CS,
                        in_subject        IN  VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
                        in_message        IN  VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
                        in_cc             IN  varchar2 character set any_cs default null,
                        in_bcc            IN  varchar2 character set any_cs default null,
                        out_mail_conn     OUT UTL_SMTP.CONNECTION
    AS
      l_mail_conn       UTL_SMTP.CONNECTION;
      l_email_addresses   VARCHAR2(32767);
      l_send_email_add    VARCHAR2(32767);
    BEGIN
      IF in_sender IS NULL OR in_recipients IS NULL THEN
      RAISE e_null_email_add;
      END IF;
      l_email_addresses:=in_sender||','||in_recipients;
      l_send_email_add:=rtrim(in_recipients||','||in_cc||','||in_bcc,',');
      IF (validate_email_address(l_email_addresses) AND validate_email_address(l_send_email_add))   --if none of the email addresses are invalid ,then go for mail
      THEN
      l_mail_conn := UTL_SMTP.open_connection(co_smtp_server, 25);
      --establish the connection
      --The snapon based smtp host is smtp.snapbs.com
    --The default smtp port being 25
      UTL_SMTP.helo(l_mail_conn, co_smtp_server);
      UTL_SMTP.mail(l_mail_conn, in_sender);
      --Incase we have multiple recipients ,we need to loop through the recipient  ,invoking
      --utl_smtp.rcpt once for each recipient ,mutiple recipien
        FOR i IN ( SELECT REGEXP_SUBSTR (l_send_email_add, '[^,]+', 1, LEVEL) AS recipient  -- Replaced in_recipients with l_send_email_add
                    FROM DUAL
                     CONNECT BY REGEXP_SUBSTR (l_send_email_add, '[^,]+', 1, LEVEL) IS NOT NULL )
        LOOP
        UTL_SMTP.rcpt (l_mail_conn, i.recipient );
        --using the same connection established to send mails to multiple recipients
        END LOOP;
      UTL_SMTP.open_data(l_mail_conn);
      UTL_SMTP.WRITE_DATA(l_mail_conn, 'Date: ' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') || UTL_TCP.CRLF);
      UTL_SMTP.WRITE_DATA(l_mail_conn, 'To: ' || IN_RECIPIENTS || UTL_TCP.CRLF);
      UTL_SMTP.WRITE_DATA(l_mail_conn, 'Cc: ' || IN_CC|| UTL_TCP.CRLF); 
      UTL_SMTP.write_data(l_mail_conn, 'Bcc: ' || in_bcc|| UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'From: ' || in_sender || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'Subject: ' || in_subject || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'Reply-To: ' || in_sender || UTL_TCP.crlf);
      utl_smtp.write_data(l_mail_conn, 'MIME-Version: 1.0' || utl_tcp.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'Content-Type: multipart/mixed; boundary="' || co_msg_boundary || '"' || UTL_TCP.crlf || UTL_TCP.crlf);--Ref#3
      if in_message is not null then
        UTL_SMTP.write_data(l_mail_conn, '--' || co_msg_boundary || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, 'Content-Type: text/plain; charset="iso-8859-1"' || UTL_TCP.crlf || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, in_message);
        UTL_SMTP.write_data(l_mail_conn, UTL_TCP.crlf || UTL_TCP.crlf);
    END IF;
      out_mail_conn:=l_mail_conn;
      ELSE
      RAISE e_invalid_email_add;
      END IF;
    2. Add_mail_attachment-To add the attachment to the e-mail , the code is below
    PROCEDURE add_mail_attachment
                  in_att_mime_type  in  varchar2 character set any_cs default 'text/plain; charset=us-ascii',
                  in_attachment     IN  BLOB ,
                  in_att_file_name  in  varchar2 character set any_cs default null,
                  in_mail_conn      IN  UTL_SMTP.CONNECTION
    IS
    l_mail_conn       utl_smtp.connection;
    l_step            PLS_INTEGER  :=24573;
    BEGIN
        l_mail_conn:=in_mail_conn;
        if in_att_file_name is not null then
          UTL_SMTP.write_data(l_mail_conn, '--' || co_msg_boundary || UTL_TCP.crlf);
          utl_smtp.write_data(l_mail_conn, 'Content-Type: ' || in_att_mime_type || '; name="' || in_att_file_name || '"' || utl_tcp.crlf);
          UTL_SMTP.write_data(l_mail_conn, 'Content-Transfer-Encoding: base64' || UTL_TCP.crlf);
          UTL_SMTP.write_data(l_mail_conn, 'Content-Disposition: attachment; filename="' || in_att_file_name || '"' || UTL_TCP.crlf || UTL_TCP.crlf);
          for i in 0 .. trunc((dbms_lob.getlength(in_attachment) - 1 )/l_step) loop
                 UTL_SMTP.write_data(l_mail_conn, DBMS_LOB.substr(in_attachment, l_step, i * l_step + 1));--UTL_SMTP.write_data(l_mail_conn, UTL_RAW.cast_to_varchar2(UTL_ENCODE.base64_encode(DBMS_LOB.substr(in_attachment, l_step, i * l_step + 1))));
          END LOOP;
          utl_smtp.write_data(l_mail_conn, utl_tcp.crlf || utl_tcp.crlf);
    end if;
    end;
    --I have skipped the exception part
    3.Close_mail () - This procedure closes the connection and sends the e-mail , the code is as follows
    PROCEDURE close_mail(
                        in_mail_con IN  UTL_SMTP.CONNECTION
    is
    l_mail_conn       UTL_SMTP.CONNECTION;
    begin
        l_mail_conn:=in_mail_con;
        UTL_SMTP.write_data(l_mail_conn, '--' || co_msg_boundary || '--' || utl_tcp.crlf);
        --Indicates that the e-mail message is complete
        UTL_SMTP.close_data(l_mail_conn);
        --Quit the connection
        UTL_SMTP.quit(l_mail_conn);
    END;
    --This is the complete code , Can you suggest where i am erring?
    I am not able to send e-mails after attaching images.
    The e-mail is sent but the attachment is empty.
    I have skipped the exception part of the code

  • Using header paramter SHeaderX-MS-HAS-ATTACH  in Sender mail adapter

    I am trying to check if an e-mail contains attachment in reciever determintion
    I set the Variable Header XHeaderName1 to be SHeaderX-MS-HAS-ATTACH
    in Sender mail adapter
    I added a condition in the receving determintation
    XHeaderName1 = yes
    I see the DynamicConfiguration tab in sxmb_moni and the value of SHeaderX-MS-HAS-ATTACH is "yes"
    but the message fails with the error
    No receiver could be determined
    any ideas?

    Hi,
    In Receiver determination you need to set SHeaderX-MS-HAS-ATTACH = yes instead of XHeaderName1.
    As far my understanding, in receiver determination you need to verify the condition with  SHeaderX-MS-HAS-ATTACH = yes (check with syntax also ie. case sensitive and all)
    Thanks
    Swarup

  • Am unable to attach my tiscali mail to my ipad

    Am unable to attach my tiscali mail to my ipad.  Have tried several ways but it always tells me that pop tiscali is not responding - can anyone help please?
    Sue

    Hello, ray15ekn. 
    Thank you for visiting Apple Support Communities. 
    Here is the best step by step guide on how to add your email account to your iPad mini. 
    iOS: Adding an email account
    http://support.apple.com/kb/ht4810
    Cheers,
    Jason H.

  • Replying to an email while adding an attachment? ***?

    Maybe I am being obtuse, but when I try to reply to an email and want to include an attachement with my reply, why is there no option to do this? This seems like a farily BASIC funtion of any email program. I hope I am missing something, because if the iPhone can't do something as basic as this... Man, its got serious problems.
    I'm already annoyed that it doesn't allow you to save attachments onto the phone itself in a file tree, but to not be able to reply to someone's e-mail with a saved attachment (whether it be a pic, doc, pdf, etc...)
    (Example: "Hey what was the name of that restaurant we were at tonight? Also, can you send me that pic we took at the table?")
    As of now, I have to find that picture, tell it I want to compose a NEW email, then answer the question in the body of the email. Why couldn't you just "reply" attach the photo in question, and answer the email like you would any other email (that didn't require an attachment?)
    This seems extremely short-sighted on Apple's part.. I mean, come on -- even a Blackberry has these basic functions.
    Am I wrong, or are they missing something really basic here?

    Thanks for the workaround... Not ecxactly the most efficient way to do something as basic as reply and adding an attachment, but it does work.
    For the life of me, I don't understand why you can't save items to a personal folder on the hard drive, which you can then access whenever you need to. I think Apple makes thing WAY more complicated then they need to be.

  • Attaching workitem to mail step

    Dear all,
    I am working on a scenario in which when ever Notification of Type 'N' is created , a workflow get triggered and the workitem goes for approval to a authorized person, now that person can  attach a note to that workitem and make rejection or approval at his wich.
    Now i want to send a mial to the user in SAP inbox only which should have the attachment that the approver has ,made..
    Is it possible if yes then please guide me.
    Thanks and Regards,
    Rachit khanna

    Hi Rachit,
    There are 2 options.
    One is adding the container element to the body of email sent to workflow.
    That is the reject reason entered by the manager is stored in a varaible and you can import that data into a container element and that container element can be added at task level to the body of mail, which will appear in the body of mail.
    Second option is using a SELFITEM-NOTE_CREATE instead of giving the manager an option to enter the reason.
    Allowing him to Enter the subject and body of the mail, which will be mandatory. You need to import attachment from the approval task to workflow and then that attachment to be exported to the mail task, which will have the attachment to the mail sent.
    Let, me know if you need more description or any other clarifications.
    bye,
    Sudhir.

  • How to download / read  text attachment  in Sender Mail Adapter  IN XI

    Hi
    I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
    Please help how to design / resolve this concept.
    Regards
    DSR

    I would like to know how to download / read text attachment in sender mail Adapter & sent same
    attachment to target system using file adapter.
    Take help from this blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    From the blog:
    However in most cases
    our message will not be a part of the e-mail's payload but will be sent as a file attachment.
    Can XI's mail adapter handle such scenarios? Sure it can but with a little help
    from the PayloadSwapBean adapter module
    Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
    Regards,
    Abhishek.

  • On my Mac Pro, when I send emails, it always gives me the option of adding an attachment with a paper clip. Today, the paperclip has vanished. What do I do ?

    On my Mac Pro, when I send emails, it always gives me the option of adding an attachment with a paper clip.
    Today, the paperclip has vanished. What do I do ?
    Simon

    http://www.apple.com/support/mail

  • Facing problem with logo in the PDF attachment when sending mail...

    hi friends,
    i'm facing problem with logo in the PDF attachment to the mail.
    my requirement:
    1. enter spool number and mail id in the selection screen.
    process:
    1. now the program will fetch the spool data and converts it to PDF.
    2. but when i'm trying to send mail with this PDF as attachment.
    when i open the PDF file from the mail, logo is not coming properly (looks disturbed).
    can anyone help me how to resolve this issue...
    thanks in advance, murashali.

    hi dinakar, thanks for your mail...
    logo looks good in spool/script/smartform.
    even it look good when i download this spool to pdf and to the presentation server as pdf file.
    i'm using CONVERT_OTFSPOOLJOB_2_PDF.
    when i used CONVERT_ABAPSPOOLJOB_2_PDF, is gives a msg - 'spool number not found'.
    here i'm using folloing code to pass pdf to the function module: SO_NEW_DOCUMENT_ATT_SEND_API1.
    code:
    Transfer the 132-long strings to 255-long strings
      lt_mtab_pdf[] = pdf[].
      LOOP AT lt_mtab_pdf INTO lwa_mtab_pdf.
        TRANSLATE lwa_mtab_pdf USING ' ~'.
        CONCATENATE lv_gd_buffer lwa_mtab_pdf INTO lv_gd_buffer.
        CLEAR lwa_mtab_pdf.
      ENDLOOP.
      TRANSLATE lv_gd_buffer USING '~ '.
      DO.
        lwa_mess_att = lv_gd_buffer.
        APPEND lwa_mess_att TO lt_mess_att.
        CLEAR lwa_mess_att.
        SHIFT lv_gd_buffer LEFT BY 255 PLACES.
        IF lv_gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    NOTE: problem i believe is with ''.  i'm getting this tilt symbol () in my pdf internal table.  here in the above code the line   TRANSLATE lv_gd_buffer USING '~ ' is changing the existing tilt to space.  so my logo is getting disturbed.
    even i tried with REPLACE this tilt with other char, but it doent work.
    can you give any idea...

  • I can't open the attachment to a mail. I must open it i FileApp. but it says that there no App installed that open this type of file. What can I do? I've got iPad 2, version 4.3.3 (8J2) My age: 69 and not so good at computers.

    I can't open the attachment to a mail. When I'm trying to open it in FileApp, I get the answer: "FileApp doesn't recognise
    this file type.Would you like to try to open in.....
         another App
         as text file
         cancel
    When I open it it in another App I get the answer:"there are no application installed on your device that can open
    this type of file.
    When  I open it as a text file, it's loading and loading.....forever?
    What shall I do?
    PS I'm 70 and not good at computers

    Hello Mats in Sweden!
    I'm from Austria, not so far away! The file that you've received seems to be a Windows Media File and you may need a special software for your iPad to be able to open it. I've found something HERE.
    If you open this link on your iPad it should take you to the App Store, resp. open it. The price for this app is 1,59 €.
    Greets from Vienna,
    Bärbel

  • Open attachment from AOL mail

    when i download a attachment from AOL mail I get a message "Adobe Reader could not open (name of file) it is not a supported etc

    What is your operating system?  Reader version?
    If you download the attachment to your local disk first, then open it from there, does it open?

  • Open Attachment option in Mail opens incorrect invite in Calendar

    My issue: if I double click or use the Open Attachment option in Mail for calendar invites, an invite from 2 years ago opens in Calendar for me to accept. If I use the Add to Calendar function, no problem & reads like it should do.
    I upgraded to ML about 2-3 weeks ago and Mail was spectacularly painful with the merge from SL not working at all. Calendar seemed to be ok, however this usse has started to appear in the last 24 hours.
    Ivites can be accepted no dram using the iPad or my wifes iPhone just seesm to beon the Mac that its a problem.
    Any thoughts/ideas/fixes would be great.
    Cheers.

    This link solved the problem
    https://discussions.apple.com/thread/4165985?start=15&tstart=0

  • How to send ALV list report as html attachment in a mail??

    Hi all,
    I have an ALV report which I want to send as an HTML attachment in a mail to an external id. I know that spool can be converted to HTML attachment in a mail. But I don't want to have 2 programs - one for generating ALV and the other to send mail with the spool-converted of the first report as attachment. I want to send the mail in the same program itself. Is it possible? Helpful answers will be suitably rewarded.

    Hi Sandip,
    In your ALV program after the alv output is build in the program do the following steps.
    1). Export the list to memory
    2). Import the list from mempry
    3). Do a COmpress of the data
    4). Send an email as an attachment using the normal FM.
    Take a look at the following links which will explain how to do the above steps.
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    remember to change the doc type as 'HTM' in the FM to send email.
    Cheers
    VJ

  • Since installing 8.0.1 I cannot send an attachment in AOL mail when I could with previous versions.

    When I try to send an attachment in AOL mail I get an error message "We encountered a technical issue, please try again."
    This happens every time over the past few days.

    Never mind the above message....I uninstalled Firefox 4.0.1 and reinstalled 3.6 and then updated to 3.6.7. Now I've lost all my Bookmarks. This is really getting to be frustrating and ridiculously hard to find answers!! What's up with the brains behind Mozilla?? Are they all hacked??

Maybe you are looking for

  • Keeping Synced Backup of Library - In Project Folders

    Can't find a way to do this online - probably because I can't think of the right way to get any sensible results from a search. Basically, I have my Aperture library which is ~100GB (which is already backed up in a couple of places). I also want JPEG

  • FM for GOS object read/download

    Hi ABAP Gurus, Needs your inputs for the below requirement. Customer will attach the supporting doc's to sales order GOS(Gerneric Object Service) & later i need to read these doc's for a custamized programm & needs to sent it via email to the end cus

  • Epub and ibooks

    Why does iTunes producer change the format of my epub file when I submit it to ibooks?? How do I fix this?

  • Hi i want a help activating my iphone

    hi i have an iphone 4s serial number: C2******TD1 IMEI: ****** ios version : 7.1.1 I bought it second-hand and i can't activate it and i can't even reach the previous owner please help me please <Edited by Host>

  • Performance Issue Of Java Application on Pentium 4

    Dear All I have finished an application program, which runs smoothly in PC with Intel Pentium 3 Processor with high performance, but the performance is highly decreased with Intel Pentium 4 Processor. Is it a limitation of Java? Im using MS Access da