Email attachment from fop

i am creating a pdf by using fop. the issue is that i want to attach the pdf file to an email.
but i am wondering if there is any way to attach file to an email without generating an actual file. i am looking for info that i can use stream or object to send out emails...
thanks in advance...

Now multiple jpgs won't send.  Other people have posted that problem. Looks like Mt. Lion has a bug with email attachments.  It's not just a matter of pngs in iphoto.

Similar Messages

  • Send report as an email attachment from a page

    Hi
    I have page which generates a report based on two filters. After the report is generated, 'I want to send that report as an email attachment from that page, when button is clicked "Send Email"
    Thanks a lot in advance.'

    I accomplished functionality I believe similar to what you are looking for in an application once by querying a report into an html e-mail message. This approach gives you all kinds of flexibility. At least this would be one way of doing it. I am going to include a simplified sample here of what the script looked like. I hope this is at least helpful.
    DECLARE
    l_body_html CLOB;
    BEGIN
    l_body_html :=
    '<html>
    <head>
    <style type="text/css">
    body{font-family: Arial, Helvetica, sans-serif;
    font-size:9pt;
    margin:30px;
    background-color:#ffffff;}
    </style>
    </head><body>
    ' || UTL_TCP.crlf;
    l_body_html :=
    l_body_html || '<table border="1"><tr bgcolor="#999999">
    <th width="75" scope="col">
    Department
    </th>
    <th width="75" scope="col">
    Course
    </th>
    </tr>' || UTL_TCP.crlf;
    FOR c1 IN (SELECT some_table.DEPARTMENT, some_table.COURSE FROM some_table)
    LOOP
    l_body_html :=
    l_body_html || '<tr><td>
    ' || c1.DEPARTMENT || '
    </td>' || UTL_TCP.crlf;
    l_body_html := l_body_html || '<td>
    ' || c1.COURSE || '
    </td>' || UTL_TCP.crlf;
    l_body_html := l_body_html || '</tr>' || UTL_TCP.crlf;
    END LOOP;
    l_body_html := l_body_html || '</table>' || UTL_TCP.crlf;
    apex_mail.send(
    p_to => '<some email address>',
    p_from => '<desired from address here>',
    p_body => NULL,
    p_body_html => l_body_html,
    p_subj => '<desired subject line here>');
    END loop;
    apex_mail.push_queue;
    END;
    Edited by: stbrownOSU on Dec 8, 2009 2:53 PM
    I think something must have happened when I copied and pasted the code from TOAD. I have corrected the above code. Please try it again.

  • Email attachment from ibooks or file manager

    When I email a attachment from ibooks or file manager, the  text added to the email witch is visible in the send email on the ipad is not send except for the inserted file  Only the attachment is received but no text.  Is it possible to ad a text and signature?

    That issue has nothing to do with FileVault. The recipient's mail server is misconfigured.

  • Sending as email attachment from Word 2013 gets stuck in Outbox

    I am using Office 2013 and use the send document as attachment option within Word to email documents. The documents that I email are from a shared exchange mailbox. Whenever I do this the emails get through to the receiver but are stuck in my personal outbox
    rather than sending and heading to the shared sent box.
    This only occurs when I use this option from Word, eg: I can send Excel attachments from within Excel and it goes to the shared Sent box.
    I am also able to successfully send emails from with Outlook via the shared account.
    I am unable to find any settings in Word that affect this behavior, any ideas?

    Hi,
    Please run Word in Safe Mode to test if it's 3rd-party add-ins related:
    Press Win + R and type “word.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    We can also refer to the link below, to learn more and check the possible settings that may affect this behavior:
    http://www.msoutlook.info/question/278
    Regards.
    Melon Chen
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Email attachment from spool...not to go on printer for printing

    Hi,
    I am sending email attachement whenever I find email address on customer. To send email I am reading from spool and then sending.
    My requirement is I should not send the document for regular printing whenever I find email of customer. Since we are already sending the PDF to customer.
    But right now in my program both printing and sending email is happening. How to stop printing when I find email ID of customer?
    Thanks

    Hi,
    in your print program try to set the attribute TDNOPRINT of the OUTPUT_OPTIONS (structure SSFCOMPOP) with X in case you find the email.
    Cheers.

  • Sending Email Attachment from UNIX using UUENCODE Command

    Hi,
    We are using "uuencode" command to send the mail with attachment to particular user but we are getting the mail without attachment, it's printing ASCII characters in mail body.
    The command is:
    uuencode $XXAR_TOP/out/${v_request_id}.csv.gz ${v_request_id}.csv.gz) |
    mailx -s "Invoice Information Extract" $v_email_recipient
    My requirement is to send the PDF file as an attachment.
    Any setups or configuration required in UNIX box to get an attachment.
    Advance Thanks
    Subbu

    I need to send the PDF or zip file as an attachment through mail,
    I tried with uuencode, it's not giving any error message but the mail recipient has only a mail with unreadable text because the pdf/zip file is directly in the mail (not as attachment).
    How to send the file as an attachment from unix?
    Advance Thanks
    Subbu

  • Setting up the File Name of email Attachment from Received File Name

    Hello All,
    I have to send the Received File in attachment to an Email if there is any exception. Here I can attach the file, but I cannot set the file name of attachment as the Received File Name. Is there anyway of doing this without using custom pipeline component.
    Here I am using the Orchestration and SMTP Adapter.Any help is greatly appreciated.
    Thanks

    It might work if you use a custom pipeline component on your send port and in the Execute method populate the MIME.FileName property of the body part.
    Something like:
    public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
    string filename = inmsg.Context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
    inmsg.BodyPart.PartProperties.Write( "FileName", "http://schemas.microsoft.com/BizTalk/2003/mime-properties", "filename);
    return inmsg;
    You can take reference from similar post here
    SMTP - Setting attachment filename
    Anther good article with MIME is here
    Setting attachment filename with the SMTP Adapter
    For MIME case your SMTP message construct statement would be like below
    multipartMessage.MessagePart_1= InMSG;
    multipartMessage.MessagePart_2="This is message part2 as a string";
    multipartMessage(SMTP.Subject) ="Email From Dynamic Port";
    multipartMessage(SMTP.From) ="[email protected]";
    multipartMessage(SMTP.SMTPHost) ="yoursmypserver.com";
    multipartMessage.MessagePart_2(MIME.FileName) = "Attachment_Name";
    multipartMessage(SMTP.SMTPAuthenticate) =0;
    Thanks
    Abhishek

  • Email attachment from i photo

    Very strange:  I Originate an email from iPhoto.  The images mount in an email.  The email will NOT send if the images are screen shots.  The email WILL send if the images are photos from a camera.  Why should mac mail treat these differently?...when the screen shot was imported into iPhoto, iPhoto turned it into a jpeg, right?  I also tried this:  converting the screen shots into jpegs using my Image Well app, and then importing the jpegs into iPhoto.  These would not send! Finally:  If I originate the email in the email app, and attach the screen shots, the email will send.  

    Now multiple jpgs won't send.  Other people have posted that problem. Looks like Mt. Lion has a bug with email attachments.  It's not just a matter of pngs in iphoto.

  • Transfer Word Document Email Attachment from my iPhone to My Computer

    How can I transfer a word document attached to an email on my iPhone to my Desktop Computer?

    "Both connected to the same WiFi" is where the problem lies. I am often out of the house and away from an internet connection. I have the same problem - I know I have received the email with the attachment, as my iphone tells me, but I cannot get it onto my Mac in order to edit the file and send it back again. My problem is more to do with excel files (where you cannot see anything other than the first page of the workbook), but is basically the same problem.
    Will some techno-genius please tell me if buying and carrying a second wireless router in my computer bag will solve the problem? This would enable both devices to be on the same wifi network, and then the app called WePrint would work. It thinks it can work over a peer to peer network.....but it doesn't. It only works over a proper wireless network.

  • Sending emails+attachment from a servlet

    Hi all,
    I'd like to send emails from within my servlet. There must be a possibility to attach a file that has been uploaded to the server in a previous request.
    Currently I'm using sun.net.smtp.SmtpClient to send simple emails.
    Does the sun-smtp-package provide a way to attach a file to an email?
    regards
    Steffen

    I'm not sure but I think the sun.net.smtp package is part of J2EE. I didn't need to download it. You will need a Base64-Encoding algorithm for transforming the file-data (the attachment) into the email message. OReillys servlet package provides a class for this (www.servlets.com).
    Below is an example how to send an email with a file attached to it. You will have to specify the name of an SMTP-Server. If you do not have one you can (for testing purposes) direct the email into a text file.
    try{
         String host = /** @todo place your smtp-server name or IP here */
         SmtpClient smtp = new SmtpClient(host);
         smtp.from(from);
         smtp.to(toList);
         PrintStream out = smtp.startMessage();
         Base64Encoder b64e = new Base64Encoder(out); // Base64Encoder is also a Stream which we will only use for the attachment-data
         /* uncomment this if there is no smtp-server. The email will be stored in a file
         File fEml = new File(/** @todo add your filePath here */+File.separatorChar+"out.eml");
         PrintStream out = new PrintStream(new FileOutputStream(fEml));*/
         out.println("From: "+from);
         out.println("To: "+toList);
         out.println("Subject: "+subject);
         out.println("Date: "+date.toString());
         out.println("MIME-Version: 1.0");
         // we have to declare the email multipart/mixed to notify the email client that this mail contains sub parts of different content-types
         out.println("Content-Type: multipart/mixed;");
         // the boundary-string separates the sub parts (just like in HTTP-Multipart-Requests)
         out.println("\tboundary=\"----=_next_part\"");
         out.println("\r");
         out.println("This is a multipart message in MIME format.");
         out.println("\r");
         // first sub part starts here - its the text message
         out.println("------=_next_part");
         // this sub part contains only plain text
         out.println("Content-Type: text/plain;");
         out.println("\tcharset=\"iso-8859-1\"");
         out.println("Content-Transfer-Encoding: 7bit");
         out.println("\r");
         // Message text goes here
         out.println(/** @todo place your message here */);
         out.println("\r");
         // now the attachment
    out.println("------=_next_part");
    out.println("Content-Type: application/octet-stream;");
    out.println("\tname=\""+fileName+"\"");
    out.println("Content-Transfer-Encoding: base64");
    out.println("Content-Disposition: attachment;");
    out.println("\tfilename=\""+fileName+"\"");
    out.println("\n");
    // encode file piece by piece
    File f = new File(/** @todo place your filepath here */+File.separatorChar+fileName);
    FileInputStream fis = new FileInputStream(f);
    int i = 0;
    do{
    byte[] content = {0, 0, 0};
    i = fis.read(content, 0, 3);
    if (i != -1){
                   b64e.write(content);
         }//if
    }while(i != -1);
    fis.close();
    fis = null;
    f = null;
         // this is it, all there's left to do is to flush our output-stream and clean up
         out.flush();
         b64e.close();
         out.close();
         b64e = null;
         smtp.closeServer();
         out = null;
         smtp = null;
    }catch(IOException ioe){
         ioe.printStackTrace();
    }//catch
    HTH
    Steffen

  • Send Email Attachment From Workflow

    Hi Experts,
    I am working on the requirement of a Workflow. A mail has to be triggered to the customer with attachments. These attachments should be attached on the fly by the User, i.e, the User should be prompted to attach docs to the mail from WF before it is sent to customer. How can I acheieve this functionality?
    Regards,
    Prasad

    Hai Shiva Prasad
    Iam Sending a sample Code
    Check this
    REPORT ZRICH_0003.
    DATA: ITCPO LIKE ITCPO,
          TAB_LINES LIKE SY-TABIX.
    Variables for EMAIL functionality
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: MAILHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: MAILBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: SOLISTI1   LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    PERFORM SEND_FORM_VIA_EMAIL.
          FORM  SEND_FORM_VIA_EMAIL                                      *
    FORM  SEND_FORM_VIA_EMAIL.
      CLEAR:    MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
      REFRESH:  MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    Creation of the document to be sent File Name
      MAILDATA-OBJ_NAME = 'TEST'.
    Mail Subject
      MAILDATA-OBJ_DESCR = 'Subject'.
    Mail Contents
      MAILTXT-LINE = 'Here is your file'.
      APPEND MAILTXT.
    Prepare Packing List
      PERFORM PREPARE_PACKING_LIST.
    Set recipient - email address here!!!
      MAILREC-RECEIVER = '[email protected]'.
      MAILREC-REC_TYPE  = 'U'.
      APPEND MAILREC.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                PUT_IN_OUTBOX              = ' '
           TABLES
                PACKING_LIST               = MAILPACK
                OBJECT_HEADER              = MAILHEAD
                CONTENTS_BIN               = MAILBIN
                CONTENTS_TXT               = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
    ENDFORM.
         Form  PREPARE_PACKING_LIST
    FORM PREPARE_PACKING_LIST.
      CLEAR:    MAILPACK, MAILBIN, MAILHEAD.
      REFRESH:  MAILPACK, MAILBIN, MAILHEAD.
      DESCRIBE TABLE MAILTXT LINES TAB_LINES.
      READ TABLE MAILTXT INDEX TAB_LINES.
      MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
    Creation of the entry for the compressed document
      CLEAR MAILPACK-TRANSF_BIN.
      MAILPACK-HEAD_START = 1.
      MAILPACK-HEAD_NUM = 0.
      MAILPACK-BODY_START = 1.
      MAILPACK-BODY_NUM = TAB_LINES.
      MAILPACK-DOC_TYPE = 'RAW'.
      APPEND MAILPACK.
    Creation of the document attachment
    This form gets the OTF code from the SAPscript form.
    If you already have your OTF code, I believe that you may
    be able to skip this form.  just do the following code, looping thru
    your SOLISTI1 and updating MAILBIN.
      PERFORM GET_OTF_CODE.
      LOOP AT SOLISTI1.
        MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
        APPEND MAILBIN.
      ENDLOOP.
      DESCRIBE TABLE MAILBIN LINES TAB_LINES.
      MAILHEAD = 'TEST.OTF'.
      APPEND MAILHEAD.
    Creation of the entry for the compressed attachment
      MAILPACK-TRANSF_BIN = 'X'.
      MAILPACK-HEAD_START = 1.
      MAILPACK-HEAD_NUM = 1.
      MAILPACK-BODY_START = 1.
      MAILPACK-BODY_NUM = TAB_LINES.
      MAILPACK-DOC_TYPE = 'OTF'.
      MAILPACK-OBJ_NAME = 'TEST'.
      MAILPACK-OBJ_DESCR = 'Subject'.
      MAILPACK-DOC_SIZE = TAB_LINES * 255.
      APPEND MAILPACK.
    ENDFORM.
         Form  GET_OTF_CODE
    FORM  GET_OTF_CODE.
      DATA: BEGIN OF OTF OCCURS 0.
              INCLUDE STRUCTURE ITCOO .
      DATA: END OF OTF.
      DATA: ITCPO LIKE ITCPO.
      DATA: ITCPP LIKE ITCPP.
      CLEAR ITCPO.
      ITCPO-TDGETOTF = 'X'.
    Start writing OTF code
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                FORM     = 'ZTEST_FORM'
                LANGUAGE = SY-LANGU
                OPTIONS  = ITCPO
                DIALOG   = ' '
           EXCEPTIONS
                OTHERS   = 1.
      CALL FUNCTION 'START_FORM'
           EXCEPTIONS
                ERROR_MESSAGE = 01
                OTHERS        = 02.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                WINDOW        = 'MAIN'
           EXCEPTIONS
                ERROR_MESSAGE = 01
                OTHERS        = 02.
    Close up Form and get OTF code
      CALL FUNCTION 'END_FORM'
           EXCEPTIONS
                ERROR_MESSAGE = 01
                OTHERS        = 02.
      MOVE-CORRESPONDING ITCPO TO ITCPP.
      CALL FUNCTION 'CLOSE_FORM'
           IMPORTING
                RESULT  = ITCPP
           TABLES
                OTFDATA = OTF
           EXCEPTIONS
                OTHERS  = 1.
    Move OTF code to structure SOLI form email
      CLEAR SOLISTI1. REFRESH SOLISTI1.
      LOOP AT OTF.
        SOLISTI1-LINE = OTF.
        APPEND SOLISTI1.
      ENDLOOP.
    ENDFORM.
    Thanks & regards
    Sreenivasulu P

  • How at send a Word document as an email attachment from an ABAP program?

    Hi all,
    i got request to develop background run program which check which staff is due CONFIRM and able to attach confirmation form (Microsoft Word file) to HR and CC staff manager as recipients.
    I try almost all relevant FM but still face problem below, please assist.
    1) FM SO_DOCUMENT_REPOSITORY_MANAGER
    - A window pops up requesting Recipient email ids. I couldn't get the window suppressed.
    2) FM SO_NEW_DOCUMENT_ATT_SEND_API1
    - Since the attachment is a pre-formatted Word Document and not an Excel or Text document, couldn't process the contents into the internal table (most sample in forum is Excel not word)
    Appreciate ABAP folks who have sample code attach a word file will help on this.
    Thanks and regards,
    Felicek

    Hi ,
    sorry for my request but I have to send an e-mail with word attachment and I would appreciate if someone could give the code for
    the first part of this link: http://www.divulgesap.com/blog.php?p=ODI=
    (I mean 'ZDIV_SEND_EMAIL' ) . The problem is that I have to load in an internal table the file word (by using "open dataset in binary
    mode" I suppose ) and then pass this table to a FM or a method for sending e-mail with this file WORD but I 'm facing some
    problems....  any suggestion would be very appreciated ... I'm in a "impasse"  ! It's seems there is no way out !!!
    Thanks in advance
    Andrew

  • Email attachment from shell script

    I am not sure where to post this message, but I would like some information on emailing an attachment using xmail. If anyone has any information it would be greatly appreciated.

    www.xmailserver.org is a better place to try. There have xmail forums.

  • How can I copy an email attachment from my iphone to my windows pc without using itunes

    Is there a way to transfer or copy a .zip file attachment in my mail on my iphone to my windows 7 PC without using iTunes?

    diesel vdub
    He is saying he doesn't have internet on the computer.
    it is a business situation where the PC has no connectivity to the internet

  • Opened ".pdf.exe" attachment from email

    Using win7... received email attachment from inside my company with .pdf.exe suffix.  Unfortunately, I opened it.  Now all .exe files go to acrobat where error message is displayed that ".exe file cannot be opened".  Even 'task manager' and 'regedit' can't open.
    Was able to uninstall acrobat (version X) and now laptop back to normal.  Tried installing version XI, but same thing happened again.
    Pls help

    This forum is only to discuss how the forums operate, not products
    If you go to the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the Adobe product(s) you use
    You may also search http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US to learn how to set program associations
    But, do what Gilad said first to be sure you don't have an infected computer

Maybe you are looking for

  • FAQ: Will my Elements 11 software be able to automatically sync and back up files to Revel?

    Q: Will my Elements software be able to automatically sync and back up files to Revel? A: Revel offers easy publishing from Elements to the iOS platform and the web. We look forward to adding more automated features in the future. Elements 11 is inte

  • My happy place

    ARRRRRRRRRRGHHHH!!!! Will someone one please come to my house and smash my computer for me-I've lost the strength to do it. I need to figure out how to create an animated drawing effect. (looks like something is being drawn on the screen) Straight li

  • Query modification

    hi i have this query taken from the data model of report named "prepayment status report" the rdf is APXINPSR.rdf the query SELECT     AID.invoice_id      C_prepay_inv_id,      AID.distribution_line_number          C_prepay_dist_number,      nvl(AID.

  • GenericFailure Error

    Hi All, We are receiving the following error when we are trying to update the HANA table using a Store Proc. SQL submitted to ODBC data source <ServerName> resulted in error <[SAP AG][LIBODBCHDB SO][HDBODBC] General error;2048 column store         er

  • Delay after Windows XP loads

    Ok guys I fell alittle better about this board now (although I have 12 days left on my RMA #).  I have the MSI 875P Neo-FIS2R with a Seagate 120GB 8MB cache SATA Hard dive installed on the South Bridge.  When Windows XP Professional is finished loadi