How to attach a file to a mail using htmldb

Hi all,
can u help me how to attach a file in htmldb.
iam able to send a mail using the inbuilt package but unable to attach a file.
advance thanks in helping out.

The APEX_MAIL package doesn't support sending emails with attachments.
See Send E-Mail with attachment from HTML DB for some alternatives.

Similar Messages

  • How to attach a file to a mail in iPad

    How to attach a file in my mail in iPad

    You cannot. The Attach code in browsers means let user browse file system. You cannot access the file system, therefore the mobile version of Safari doesn't allow it.

  • How to attach a file to the mail

    How to attach a file to the mail

    I know that this can be done when going to any PDF program and push (send as  email)
    This also can done with multiple files or even with separate pages from that PDF file (Many programs can do that, like: PDF expert, Adobe Reader, iBooks, PDF Provider, Documents, etc)
    But what if I begin to wright an email, then I wanted to attach a file (such as PDF, or word, or any file) , FOR BASIC APPLE MAIL IT IS UNAVAILABLE
    You can attach Photo or Video but not PDF or other document
    There are some email programs that can attach files to email such as my.mail (as you can see from the photo)
    But why Apple don't provide such simple service ???

  • How to attach multiple file in one mail

    Hi,
    I've problems with sending multiple files via Gmail account (Ipad version)  When sending the photo or video, I've to just click the photo and choose send to mail one by one. Any simpler way?  Sometimes i did sent both mpg and jpg but the reciepient didn't see any attachment too
    Anyone can help advise how to attach different file (doc, video, photo) in one mail will be a lot appreciated. Thank you so much

    You can attach multiple pictures to an email on an ipad2. Don't know about original iPad.
    Choose a photo or take a screen shot (hold down home button and button next to volume control at same time--screen shot now will appear in photos).
    Go to photos and edit your picture or screen shot, save it, then hold down on the image and copy it.
    Go to mail, create a new mail and paste it in.
    Save you mail as a draft.
    Go back to photos and select a different photo, copy it, and return to your draft, and paste it in. Repeat if you need to add more.
    Anything that you can take a screen shot or have an photo of can be pasted in one at a time into that draft email.
    If mail gets uncooperative, during this process, then double click on home button and quit multitasking mail, then open up mail again and send your draft. Uncooperative means gets frozen.

  • How to attach a file to the mail in jsp

    hi.i would like to send mails with in local server with files as attachments.i wrote this code but its not working.please help
    <%@ page import="javax.mail.*,javax.mail.internet.*,java.util.Date,java.io.*,java.net.InetAddress,java.sql.*,java.util.Properties,java.net.*,javax.sql.*,javax.activation.*,java.util.*,java.text.*" %>
    <%@ page import="java.io.*,java.sql.*,java.net.*,java.util.*,java.text.*" %>
    <%
         String Attachfiles1="";
    if("Send".equalsIgnoreCase("send"))
    try
         String subject="",from="",url = null,to="";
         String mailhost = "local server";
         Properties props = System.getProperties();
    String msg_txt="";
         String strStatus="";
    String mailer = "MyMailerProgram";
    to=request.getParameter("to");
    from=request.getParameter("from");
    subject=request.getParameter("subject");
    msg_txt=request.getParameter("message");
    Attachfiles1=request.getParameter("fieldname1");
    props.put("mail.smtp.host", mailhost);
    Session mailsession = Session.getDefaultInstance(props, null);
    Message message = new MimeMessage(mailsession);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
    // message.setSubject(subject);
    // message.setHeader("X-Mailer", mailer);
    // message.setSentDate(new Date());
    message.setText(msg_txt);
                   // Final message = part1 + part2
                   Multipart mp = new MimeMultipart();
                   message.setContent(mp);
                   // Message part 1 is text - add to multipart
                   MimeBodyPart m1 = new MimeBodyPart();
                   m1.setContent(msg_txt, "text/plain");
                   mp.addBodyPart(m1);
                   // Message part 2 is binary (file to send)
                   MimeBodyPart m2;
                   // Support multiple file send (separated by ";")
                   FileDataSource fds = new FileDataSource(Attachfiles1);
                        m2 = new MimeBodyPart();
                        m2.setDataHandler(new DataHandler(fds) );
                        m2.setFileName( new File(Attachfiles1).getName() );
                        mp.addBodyPart(m2);     // add to final message (part 2)
    //message.addAttachment(new Attachment(new File(Attachfiles1)));
    //BodyPart messageBodyPart = new MimeBodyPart();
    //BodyPart messageBodyPart2 = new MimeBodyPart();
    //Multipart multipart = new MimeMultipart();
    ////messageBodyPart = new MimeBodyPart();
    //javax.activation.DataSource source = new javax.activation.FileDataSource(Attachfiles1);
    //messageBodyPart.setDataHandler(new DataHandler(source));
    ////messageBodyPart.setFileName(new File(Attachfiles1).getName());
    //messageBodyPart2.setText(msg_txt); // set the txt message
    //multipart.addBodyPart(messageBodyPart);
    //multipart.addBodyPart(messageBodyPart2);
    //message.setContent(this.multipart);
    Transport.send(message);
    out.println("Message Sent");
    catch (Exception e)
    e.printStackTrace();
    %>
    <html>
    <body>
    <div class="frame">
         <form action="Composemailpp.jsp" method="post">
              <b>SelectPosition:</b> <select name="cars" >
    <option value="ABAP">ABAP
    <option value="JAVA">JAVA
    <option value="DOTNET">DOTNET
    <option value="SAP">SAP
    </select><br><br>
    <table border="1" cellpadding="2" cellspacing="2">
    <tr><th>
    Name<br><input type="text" name="Name"><br>
    </th>
    <th>
    EmailId<br><input type="text" name="EmailId"><br>
    </th>
    <th>
    ContactNumber<br><input type="text" name="ContactNumber"><br>
    </th>
    <th>
    Position<br><input type="text" name="Position"><br>
    </th>
    </tr>
    </table><br>
    <b>SelectUser :</b><select name="cars">
    <option value="Administrator">Administrator
    <option value="User1">User1
    <option value="User2">User2
    <option value="User3">User3
    <option value="User3">User4
    </select>
    <br>
    <b>To :</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="to" size="72"><br>
    <b>From :</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="from" size="72"><br>
    <b>Subject :</b>&nbsp&nbsp&nbsp<input type="text" name="subject" size="72"><br>
    <b>Message:</b><br>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<textarea rows="10" cols="50" name="message">
    </textarea> <br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname1" value="filename" size="50"><br><br>
    <!--<b>AttachedFile:</b>&nbsp<input type="file" name="fieldname2" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname3" value="filename" size="50"><br><br>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="submit" name="attachfiles" value="Attachfiles">
    -->
    <center>
    <input type="submit" name="send" value="Send" >
    </center>
    </form>
    </div>
    </body>
    </html>

    message.setText(msg_txt);Don't do this. You want a multipart message. You want the msg_txt
    to be the first part of the multipart, which you do below.
                   // Final message = part1 + part2
                   Multipart mp = new MimeMultipart();
                   message.setContent(mp);
                   // Message part 1 is text - add to multipart
                   MimeBodyPart m1 = new MimeBodyPart();
                   m1.setContent(msg_txt, "text/plain");m1.setText(msg_txt); // would be better
                   mp.addBodyPart(m1);
                   // Message part 2 is binary (file to send)
                   MimeBodyPart m2;
                   // Support multiple file send (separated by ";")
    FileDataSource fds = new
    new FileDataSource(Attachfiles1);
                        m2 = new MimeBodyPart();
                        m2.setDataHandler(new DataHandler(fds) );
    m2.setFileName( new File(Attachfiles1).getName() );Since you're using JavaMail 1.4, you can replace much of the above
    with simply:
    m2.attachFile(Attachfiles1);
    But none of the problems above should prevent your code from working.
    You do understand, of course, that the name of the file is a filename
    on the server, not the client that's running the browser, right?
    When you say "its not working", what exactly do you mean?

  • How to attach a file to tomcat server using SERVLETS

    Hello friends,
    I want to enable users to attach a file and send it to my server. This is a very common feature seen anywhere like e-mail attachments.
    Iam using tomcat server. I tried HTTP put but it did not work.
    Please give some suggessions.
    Thanks
    Goldy

    check this url:
    http://www.servlets.com/cos/index.html
    follow the link MultiPartRequest
    Spieler

  • How to attach PDF file along with mail from SAP to external

    Hi Experts,
          Whenever I am creating PO I should get that creation information ( PO is created & PO no is ‘XXX’….) in the form of PDF file & I have to send this PDF file through mail to external. I have to do all this in one development…How can I proceed …Help me..
    Thanks

    Check this Code>>>>>>>>>>>
          FORM MAIL_OBJECT                                              *
    Compiled: Thomas, Satyam Computers Services Ltd.
          This routine receives OTF data. OTF data is converted to PDF
          format and send to the Partner's email address
    FORM mail_object TABLES otf_data STRUCTURE itcoo .
      DATA: pdf_size TYPE i,                             " PDF Size
            pdf_itab_size TYPE i,                        " Attachment size
            mailtxt_size TYPE i,                         " Text in mail size
            l_vbeln LIKE vbdka-vbeln.                    " Order Doc
      DATA:
      it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,    " Mail Text
      it_pdf TYPE TABLE OF tline WITH HEADER LINE,           " OTF output
      it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
      it_mailhead LIKE solisti1   OCCURS  1 WITH HEADER LINE," Header data
      it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,   " Rec List
      it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE.  " Attachment data
      DATA: it_doc_att LIKE sodocchgi1.                 " Attri of new doc
      DATA: BEGIN OF it_pdfout OCCURS 0,                " PDF in 255 length
               tline TYPE char255,
            END OF it_pdfout.
    Sales doc and Customer
      DATA: BEGIN OF i_vbeln OCCURS 0,
              vbeln LIKE vbpa-vbeln,       " Sales Document
              adrnr LIKE vbpa-adrnr,       " Customer
            END   OF i_vbeln.
    Sender Address no and SMTP address
      DATA: BEGIN OF i_addrs OCCURS 0,
              addrnumber LIKE adr6-smtp_addr,
              smtp_addr  LIKE adr6-smtp_addr,
            END   OF i_addrs.
    Convert OTF to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format       = 'PDF'
        IMPORTING
          bin_filesize = pdf_size
        TABLES
          otf          = otf_data
          lines        = it_pdf.
    Make each line 255 characters
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        TABLES
          content_in  = it_pdf
          content_out = it_pdfout.
    Create the PDF File
      CLEAR it_pdfdata.
      REFRESH it_pdfdata.
    it_pdfdata[] = it_pdfout[].
      LOOP AT it_pdfout.
        MOVE it_pdfout-tline TO it_pdfdata-line.
        APPEND it_pdfdata.
        CLEAR it_pdfdata.
      ENDLOOP.
      DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
    Text in the mail.
      it_mailtxt-line  = 'ORDER ACKNOWLEDGEMENT'.
      APPEND it_mailtxt.
      it_mailtxt-line  = ' This is a test mail-Thomas, Line Number--1'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--2' &
                        ' This is a test mail-Thomas, Line Number--2'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5'.
      APPEND it_mailtxt.
      DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
    Document Number for Output
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = vbdka-vbeln
        IMPORTING
          output = l_vbeln.
    Attributes of new doc
      CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
                  INTO it_doc_att-obj_descr SEPARATED BY space.
      it_doc_att-sensitivty = 'F'.
      it_doc_att-doc_size   = mailtxt_size * 255.
    Create Pack to text in mail body.
      CLEAR it_mailpack-transf_bin.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 0.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = mailtxt_size.
      it_mailpack-doc_type     = 'RAW'.
      APPEND it_mailpack.
    Create Pack to PDF Attach.
      it_mailpack-transf_bin   = 'X'.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 1.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = pdf_itab_size.
      it_mailpack-doc_type     = 'PDF'.
      CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
      CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
      it_mailpack-doc_size     = pdf_itab_size * 255.
      APPEND it_mailpack.
    *Get email addresses based on Sales document.
      SELECT vbeln adrnr INTO TABLE i_vbeln
             FROM vbpa
             WHERE vbeln = vbdka-vbeln AND
                   parvw = nast-parvw.
      IF NOT i_vbeln[] IS INITIAL.
        SELECT addrnumber smtp_addr INTO TABLE i_addrs
               FROM adr6 FOR ALL ENTRIES IN i_vbeln
               WHERE addrnumber =  i_vbeln-adrnr AND
                     smtp_addr NE space.
      ENDIF.
      IF i_addrs[] IS NOT INITIAL.
        LOOP AT i_addrs.
          it_reclist-receiver   = i_addrs-smtp_addr.
          it_reclist-express    = 'X'.
          it_reclist-rec_type   = 'U'.
          it_reclist-notif_del  = 'X'. " request delivery notification
          it_reclist-notif_ndel = 'X'. " request not delivered notification
          APPEND it_reclist.
          CLEAR: i_addrs.
        ENDLOOP.
      ENDIF.
    Call FM to send email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = it_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = it_mailpack
          object_header              = it_mailhead
          contents_txt               = it_mailtxt
          contents_hex               = it_pdfdata
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorizationfiltered= 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " MAIL_OBJECT
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    -Mohan.
    *Reward if helpful**

  • How do I attach a file to a mail message with my new iPhone?

    My daughter wants to know how to attach a file to a mail message and even send a file from iCloud to someone via iPhone mail.
    How do we do that?
    Thanks,
    Rookie

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access web mail, you need to seek support from your service provider or a forum for that service.
    If your problem is with Thunderbird, see this forum for support.
    http://www.mozillamessaging.com/en-US/support/https://addons.mozilla.org/en-US/firefox/browse/type:3https://addons.mozilla.org/en-US/firefox/browse/type:3
    or this one
    http://forums.mozillazine.org/viewforum.php?f=39

  • How to attach a file

    Dear All,
    I want to send an email but I don,t know how to attach a file. I am using gmail on my ipad2 now I wish to send an email to my friend along with my mail I wish to attach a PDF file.
    Kindly please help me out because it is not showing the option for attaching the file.
    Thanks in advance.

    Unfortunately you can't. But other apps will allow it, like Goodreader. Goodreader is free and lets you open PDFs which can then be emailed. Pages, which is a document-layout programme also allows documents to be emailed within itself.

  • How to Attach a File Without Embedding It on Mail?

    How to Attach a File Without Embedding It on a Mac?
    Tamer is not working and I prefer not to use TERMINAL (defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes)
    Right click send as icon is not a solution.
    Any other options? Thanks!

    bbp@bcn wrote:
    I always receive the same response, "Can you send it as an attachment?"
    and I think It does something to do with the way I send files.
    Thanks
    It's nothing to do with the way you send them. Every mail client chooses how to cope with attachments: in some there is a preference setting but in many cases it automatically displays embedded images. Even where there is a preference setting it's up to the person receiving the email: you can't control it. Why are they so fussed about your sending as an attachment? The image can be saved easily enough, usually by dragging it to the Desktop, or by a button to save attachments. If they really want this you are going to have to zip it, there isn't any other way round it.

  • HT2128 Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Luis
    Good question - and one that a lot of (business) people would like solved!
    Your question prompted me to do some research, and I found this workaround posted by Scott Grossberg:
    His solution actually addresses a second problem too - how to attach a document when replying to an email message. In your case you may not need to consider the "reply" aspect - but if not right now, it'll come in useful someday!
    I've pasted it verbatim - if it works for you (it does for me) then all credit goes to Scott for solving the problem. There's just one thing I'd add to his solution: you will probably want to rename the message, as by default Goodreader gives it the Subject line: Mail with GoodReader attachments.
    THE GOODREADER OPTION
    1.  CREATE the document you want to send.
    2.  SAVE it to GoodReader (this will require you to buy and install the app).
    3.  Go to your email and OPEN the email thread to which you want to Reply and attach your file.
    4.  COMPOSE your Reply.
    5.  DOUBLE TAP the message.
    6.  TAP SELECT ALL. This will copy the entire email thread.
    7.  OPEN GOODREADER on the iPad and go to the file you want to send as part of your Reply.
    8.  At the bottom of the GoodReader screen you will see an EXPORT icon (it looks like a rectangle with an arrow pointing to the right).
    9.  TAP the Export button.
    10.  TAP EMAIL FILE. Depending on your needs, tap either SEND FILE “AS IS” or “FLATTEN ANNOTATIONS.” This will open a compose message screen with the chosen document already attached.
    11.  TAP in the body of the email screen. TAP PASTE. This will place your composed Reply and the prior email thread into the message.
    12.  ENTER the Recipients’ names in the TO: field of your message.
    13.  SEND your email Reply.
    The modified version (= when composing a new message rather than a reply):
    1 Make sure that the doc you want to attach is saved in GoodReader
    2 In the message you are composing, double tap, select all, and then copy.
    3 Open GoodReader and select the file you want to attach
    4 Select the export button at the bottom of screen
    5 Select e-mail file
    6 Position cursor in body of the email message, tap and paste. You may want to delete the "sent from GoodReader" text that precedes the attachment.
    7 Rename your message (as by default it will be Mail with GoodReader attachments)
    8 Add the recipient's address in the To field.
    Hope this helps! All thanks to Scott for this workaround.

  • How do I attach a file to a Mail doc without the file being opened in the Mail document?

    How do I attach a file to a Mail doc without the file being opened in the Mail document?

    You will (often) see a preview of the attachment, depending upon the file type.  To get rid of the preview: control click on the attachment select "View as icon".
    (What the recipient of your message sees is dictated by that person's email application.  If you want to make sure the person gets an attachement which is not previewed, you can zip it (control-click, "Compress...") and then attach the zipped file(s).  Or you can try something like Attachment Tamer.)

  • When I attach a file to outgoing mail it shows up in the body of the e-mail. How can i make it only show up at the end or elsewhere?

    When I attach a file to outgoing mail it shows up in the body of the e-mail. How can i make it only show up at the end or elsewhere?

    Edit > Attachments > Insert Attachments at End of Message. If a new message is the active window, the option applies only to that message. If you don't have a new message open, then the option becomes Always Insert Attachments at End of Message.

  • How to attached Two file in Email.

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

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

  • How to attach a file in iphone

    how to attach a file in iphone 4s

    Immposible , iPhone is the most advanced OS without Bluetooth and File attachment Option.You can't add Photos from the album to mail directly, you have to go album folder and send ,you cant send more than 5 images at a time.This really ***** ..They sholud stop says worlds most advanced Operating system.

Maybe you are looking for

  • Acrobat does not allow connection to

    Need help with this error message please.  Using Win7, saved a Word 2010 table of contents with multiple links to pdf files across internal servers as a PDF.  Also created the word doc w/multiple pdf links as a PDF file using acrobat9 standard and ha

  • Help with restored files...

    My computer hard drive recently crashed.  We were able to find the files and restore them onto another computer- however all of the files are a jumbled mess.  The files are large which makes me believe the data is there... but they will not open.  I

  • Library file not the same when inserted.

    Hello all. In Dreamweaver 8.0, I have a library item. When I insert it into a page, I thought Dreamweaver kept inserting an older version. I open the library file from the Assets panel, make sure it is correct, save it, hit the refresh button in the

  • Boot Start Error

    I have a G62 HP laptop/windows 7 home premium. Sometimes my notebook wont boot and give me system boot error, how do I fix this?

  • Why are sequences so bad?

    OK, Am I the only one who beleives that sequences are OK and even a good thing?