Sending attachments of ME43(RFQ) tcode in mail

Hi All,
We have developed a SmartForm for RFQ and the same we are converting into PDF and sending in a mail as an attachment. Now, user has came up with new requirement, that is, they will attach documents directly in ME42/ME43 tcode using 'Services for Object' which is available as a button in left hand top corner, just above application tool bar. And that attached files along with our RFQ SmartForm should be sent in a same mail as an attachments.
Can anyone guide me how to achieve this?
Thanks,
Aravinth

Hi All,
Finally I got a solution for my requirement , same I am mentioning below,
Table SRGBTBREL is having a list of attachments which we are attaching through Services for Object in all transactions (In my case, ME43 for RFQ).
So I am passing the below values to the fields of table SRGBTBREL,
RELTYPE      =      'ATTA'  
INSTID_A       =      LV_EBELN
TYPEID_A     =      'BUS2010'
CATID_A       =      'BO'.   
and I am getting some hexa value from field INSTID_B.
And this value I am passing to a function module called SO_DOCUMENT_READ_API1, and getting output in DOCUMENT_DATA and OBJECT_CONTENT.
DOCUMENT_DATA - Will have name of attachments, size and other details
OBJECT_CONTENT - Will have a Binary data of attachment
and after getting these information, I am calling a method ADD_ATTACHMENT of class CL_DOCUMENT_BCS , refer a below code
             LV_SUBJECT  = WA_DOCDATA-OBJ_DESCR.
             LV_FILESIZE = WA_DOCDATA-DOC_SIZE.
             CALL METHOD LCL_DOCUMENT->ADD_ATTACHMENT
               EXPORTING
                 I_ATTACHMENT_TYPE    = WA_DOCDATA-OBJ_TYPE
                 I_ATTACHMENT_SIZE    = LV_FILESIZE
                 I_ATTACHMENT_SUBJECT = LV_SUBJECT
                 I_ATT_CONTENT_TEXT   = IT_OBJCONT[].
after calling this method, all attachment which is present in Services for objects will be attached to a mail and then, adding sender and recipients mail ids, I am using a SEND method of class CL_BCS to send mail with attachments.
I referred the below link,
How to send Attachments from Services for Object in Email attachments
Thank you Gokul, for giving me some hint.
Regards,
Aravinth

Similar Messages

  • How do I send attachments larger than 300 kB with Mail?

    When I installed OS 10.2 on my 333 MHz iMac last year, I switched all my e-mail usage over from Outlook Express to Mail. However, now I can't send or forward attachments any larger than about 300 kB. I've looked in System Preferences, and in Mail's Preferences, but don't see any setting that limits the size of attachments. My ISP allows sending and receiving of attachments up to 15 MB. I can receive large attachments (e.g. photos). I never had this limitation using Outlook.
    So what's the problem here? Can anyone help me?
    (By the way, I've run into the same limitation when trying to send attachments or upload files using Safari, Internet Explorer and MSN Messenger.)

    Today I phoned my ISP's technical support line. They were able to make some changes or adjustments on my ADSL, and now I can send larger e-mails. Seemingly, the line was too slow and Mail was timing out.
    I've send a 1M attachment successfully. Will now test Safari and Messenger, to see if all's well there too.

  • Sending attachments to Eudora users using Apple MAIL

    I have recently changed from Entourage to MAIL in Tiger and it seems to work well, however I can't seem to send attachments to anyone using Eudora. They recieve the email but the attachment is missing (apparently the recipient company's server is stopping the attachment getting to the recipient). When I change back to Entourage it works fine???
    Can anyone help
    Thanks

    I have the same problem now in Mountain Lion, (and previously in lion).
    As this is a continuing problem, perhaps someone who has recently bought a Mac could use their free (for a year) sub. to <whatever it is called> and ask the specific question.
    Also, if someone can post the address to send Apple suggestions, I (and all of us) could send a firm request for this to be sorted once and for all.
    I have just search Google on this and found a complaint dated 2007! It advised the zip route.

  • Cannot send attachments in Mail using .mac account, pop account is fine!

    Within my Mail.app, I have 2 accounts: one is a .mac account, the other a pop account.
    When I send attachments (jpg always and sometimes pdf) with the .mac account, they do not get encoded properly and my recipients cannot view them -- or they can view, say, 10% of the photo.
    When I send the same attachments with the pop account, and within the same Mail.app, I do NOT have this problem.
    Furthermore, if I send the attachment from my .mac webmail, I do NOT have the problem.
    Does Mail.app have a problem with attachments sent via IMAP accounts?
    I have tried Repairing Permissions, deleting the outbox.mbx (and emptying the trash).
    Does anyone have any other suggestions? This is driving me crazy.
    I am running Mail 2.0.5 on Tiger 10.4.3
    Thanks a lot in advance, Neil
    Long live the sunflower iMac, iBook G4   Mac OS X (10.4)  

    Hello Neil.
    Does Mail.app have a problem with attachments sent via IMAP accounts?
    None that I'm aware of.
    The Mail.app uses MIME 1.0 for message/attachment encoding (which is the internet standard) for all email accounts.
    Is your POP account and the SMTP server used for the account provided by your ISP used for connecting to the internet?
    If so, try selecting/using your ISP's SMTP server (the same SMTP server used to send mail via your ISP's POP account) to send mail via your .Mac account as a test.

  • Mail can no longer send attachments

    Mail recently lost the ability to send attachments.  If I drag an image, PDF, etc. in to the composer, it shows up as an icon with a filename below it, but clicking on the link results in a dialog that says "The file xxx could not be opened because it is empty".  Attachments used to just show up inline and send properly.  I'm not sure when this behavior started, but I can't seem to get attachments to work any more.  Even if I right-click on a JPG and share via email, the attachment created is empty.  What's going on?
    Thanks,
    Scott

    Update...  I tried all of the recommended solutions for resetting user permissions and ACLs, none of which solved the problem.  I finally relented to re-installing the Mountain Lion upgrade and that fixed whatever was keeping Mail from adding attachments.  One notable change is that when I was having the problem adding attachments, I would see warnings in the console from sandboxd complaining that Mail was missing file_read_xattr and file_read_data for the files I was trying to attach.  Now that attachments work again, I don't see those messages.  Perhaps something was hosed with Mails runtime configuration with sandboxd?

  • File extensions become corrupted when sending attachments in Mail

    Hi,
    Since I upgraded to Leopard the file extensions on attachments that I send in Mail are corrupted in transit. The problem is not irremediable: .doc may change to .doc00 or .docis or something like that. The recipient can delete the extra characters when saving or opening the attachment, and the file is intact. But this is a bit of a bore, as I have to send attachments all the time. It doesn't matter whether I send from my iMac G5 or my MacBookPro, and it doesn't matter whether the recipient has a Mac or a PC.
    Any collective wisdom out there?
    Many thanks,
    Anna

    Some people have found that not having accented characters or spaces in the file name cures it. The bug has been reported.
    AK

  • .Mail won't send attachments

    Since upgrading to OS X 10.7, Mail usually won't send attachments. It does not matter if the attachment is small (~300kb) or larger (~3MB). Mail will try to send it (and if you watch the progress bar in the lower right corner of Mail, you can see that it starts uploading the message), but then it stops. Then I get the message: "Cannot send message using the server..." Occsaionally, attachments will work, but I haven't been able to determine why. This is the case for both my desktop (10.7.2) and my laptop (10.7.3).
    The e-mail affected is a g-mail account configured through IMAP. I have verified that I have internet connectivity while experiencing this problem and I can even send other e-mails w/o file attachments. I opened the Connection Doctor and everything logs in/out correctly. The details from Connection Doctor are below.
    Any ideas?
    Thanks.
    WROTE Feb 08 08:18:55.309 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba68d5220 -- thread:0x7f9ba68ce300
    CONNECTED Feb 08 08:18:59.021 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    CONNECTED Feb 08 08:18:59.022 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    READ Feb 08 08:18:59.066 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    220 mx.google.com ESMTP li19sm4211728pbb.17
    READ Feb 08 08:18:59.066 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    220 mx.google.com ESMTP a5sm2518813pbh.15
    WROTE Feb 08 08:18:59.085 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    EHLO [192.168.0.74]
    WROTE Feb 08 08:18:59.101 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    EHLO [192.168.0.74]
    READ Feb 08 08:18:59.132 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    250-mx.google.com at your service, [64.126.140.239]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250 ENHANCEDSTATUSCODES
    WROTE Feb 08 08:18:59.144 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    STARTTLS
    READ Feb 08 08:18:59.146 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    250-mx.google.com at your service, [64.126.140.239]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250 ENHANCEDSTATUSCODES
    CONNECTED Feb 08 08:18:59.151 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba6b5ffc0
    CONNECTED Feb 08 08:18:59.154 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba6b45550
    WROTE Feb 08 08:18:59.171 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    STARTTLS
    READ Feb 08 08:18:59.190 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    220 2.0.0 Ready to start TLS
    READ Feb 08 08:18:59.217 [kCFStreamSocketSecurityLevelNone]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    220 2.0.0 Ready to start TLS
    WROTE Feb 08 08:18:59.462 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    EHLO [192.168.0.74]
    READ Feb 08 08:18:59.508 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    250-mx.google.com at your service, [64.126.140.239]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH
    250 ENHANCEDSTATUSCODES
    READ Feb 08 08:18:59.514 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba6b5ffc0
    * OK Gimap ready for requests from 64.126.140.239 au13if1327927vdc.13
    WROTE Feb 08 08:18:59.528 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    AUTH PLAIN  (*** 52 bytes hidden ***)
    WROTE Feb 08 08:18:59.541 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba3d925a0
    1.29 CAPABILITY
    READ Feb 08 08:18:59.547 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba6b45550
    * OK Gimap ready for requests from 64.126.140.239 aj13if1332717vdc.2
    WROTE Feb 08 08:18:59.586 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba67202d0
    1.30 CAPABILITY
    READ Feb 08 08:18:59.686 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba3d925a0
    * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH
    1.29 OK Thats all she wrote! au13if1327927vdc.13
    READ Feb 08 08:18:59.692 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba67202d0
    * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH
    1.30 OK Thats all she wrote! aj13if1332717vdc.2
    WROTE Feb 08 08:18:59.701 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba3d925a0
    2.29 LOGIN (e-mail address edited out) **********
    WROTE Feb 08 08:18:59.715 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba6d41cd0
    2.30 LOGIN  (e-mail address edited out) ********
    WROTE Feb 08 08:18:59.816 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    EHLO [192.168.0.74]
    READ Feb 08 08:18:59.866 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    250-mx.google.com at your service, [64.126.140.239]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH
    250 ENHANCEDSTATUSCODES
    WROTE Feb 08 08:18:59.885 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    AUTH PLAIN  (*** 48 bytes hidden ***)
    READ Feb 08 08:18:59.998 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    235 2.7.0 Accepted
    WROTE Feb 08 08:19:00.016 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6d4edc0 -- thread:0x7f9ba6514970
    QUIT
    READ Feb 08 08:19:00.067 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba6d41cd0
    * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE
    2.30 OK (e-mail address edited out)  (name edited out) authenticated (Success)
    WROTE Feb 08 08:19:00.081 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba7419930
    3.30 CAPABILITY
    READ Feb 08 08:19:00.139 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba3d925a0
    * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE
    2.29 OK (e-mail address edited out)  (name edited out) authenticated (Success)
    WROTE Feb 08 08:19:00.159 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba6867290
    3.29 CAPABILITY
    READ Feb 08 08:19:00.197 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba7419930
    * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE
    3.30 OK Success
    WROTE Feb 08 08:19:00.218 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba3d925a0
    4.30 ID ("name" "Mac OS X Mail" "version" "5.1 (1251.1)" "os" "Mac OS X" "os-version" "10.7.2 (11C74)" "vendor" "Apple Inc.")
    READ Feb 08 08:19:00.340 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba3d925a0
    * ID ("name" "GImap" "vendor" "Google, Inc." "support-url" "http://support.google.com/mail" "remote-host" "64.126.140.239")
    4.30 OK Success
    WROTE Feb 08 08:19:00.360 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba3d925a0
    5.30 LIST "" ""
    READ Feb 08 08:19:00.363 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba6867290
    * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE
    3.29 OK Success
    WROTE Feb 08 08:19:00.387 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba7419930
    4.29 ID ("name" "Mac OS X Mail" "version" "5.1 (1251.1)" "os" "Mac OS X" "os-version" "10.7.2 (11C74)" "vendor" "Apple Inc.")
    READ Feb 08 08:19:00.474 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba3d925a0
    * LIST (\Noselect) "/" "/"
    5.30 OK Success
    WROTE Feb 08 08:19:00.496 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba6814e40 -- thread:0x7f9ba67202d0
    6.30 LOGOUT
    READ Feb 08 08:19:00.606 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    235 2.7.0 Accepted
    READ Feb 08 08:19:00.623 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba7419930
    * ID ("name" "GImap" "vendor" "Google, Inc." "support-url" "http://support.google.com/mail" "remote-host" "64.126.140.239")
    4.29 OK Success
    WROTE Feb 08 08:19:00.626 [kCFStreamSocketSecurityLevelTLSv1SSLv3]  -- host:smtp.gmail.com -- port:25 -- socket:0x7f9ba6720aa0 -- thread:0x7f9ba68ce300
    QUIT
    WROTE Feb 08 08:19:00.643 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba7419930
    5.29 LIST "" ""
    READ Feb 08 08:19:00.847 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba7419930
    * LIST (\Noselect) "/" "/"
    5.29 OK Success
    WROTE Feb 08 08:19:00.869 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.gmail.com -- port:993 -- socket:0x7f9ba62c7ae0 -- thread:0x7f9ba7419930
    6.29 LOGOUT

    I am going to try removing the account from mail and then setting it up again to see if it solves the issue.

  • How send attachments to mail using oracle alerts

    Hi All,
    I am working on Oracle Alerts in oracle applications. how to send attachment to mail.
    Thanks in Advance,
    Reddy.
    Edited by: user9540785 on Mar 22, 2009 4:48 AM

    As a workaround, you can kick start a custom workflow in actions rather than sending mail. In that custom workflow you can send attachments as part of the notification to the respective recipients.
    Thanks
    Nagamohan

  • Error sending attachments mail

    I am trying to send attachments using javamail and i tried out the example at:
    http://developer.java.sun.com/developer/onlineTraining/JavaMail/exercises/MailAttach/index.html but I get an error on this line Transport.send(message), has anyone faced this problem, if you have, please do help me out man.
    thanks
    topraj

    try this code..
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class MailExample1 {
    public static void main(String a[]) throws Exception {
         try {
         String host = "<your smtp server address here>";
         String to = "<to mailid here>";
         String from = "<From mail id here>";
         Properties props = new Properties();
         props.put("mail.smtp.host",host);
         Session session = Session.getDefaultInstance(props,null);
         MimeMessage message = new MimeMessage(session);
         BodyPart bp1 = new MimeBodyPart();
         bp1.setText("This is a message with multi media content sending gif files with text");
         Multipart mp = new MimeMultipart();
         mp.addBodyPart(bp1);
    BodyPart bp2 = new MimeBodyPart();
         DataSource ds = new FileDataSource("Ivy.gif");
         bp2.setDataHandler(new DataHandler(ds));
         mp.addBodyPart(bp2);
         message.setFrom(new InternetAddress(from));
         message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
         message.setSubject("Test mail from java");
         message.setContent(mp);
         javax.mail.Transport.send(message);
         System.out.println("Message sent to: "+to);
         } catch(Exception e) { e.printStackTrace(); }
    hope this will help you..
    regards,
    ashok

  • Using Outlook express mail and system 10.9, sending attachments

    I have a new Mac, operating system 10.9. Trying to use Outlook Express Mail from work, I am unable to send attachments. Thanks

    One thing in there jumps out - the long time taken to connect to the internet after NetProtect was installed. McAfee is a notorious resource hog and that behaviour is typical of the symptoms which persuaded me and others to look for another AV. Microsoft Security Essentials has a light touch and many would recommend it, though there are several other effective, free AVs available. If you do uninstall NetProtect you should make sure to run the McAfee Removal Tool also.
    I would advise you to get NetProtect out of the way and return with an update for advice on the email issues.
    You can click the white star next to this message if you think it was helpful.

  • I can't send attachments with MAIL

    Please help me. Since I have installed Leopard, I have problems to send attachments by mail. People to whom I send, they don't receive them.
    Does anybody have any idea about to solve this trouble?
    Andrea from Italy

    so you look in your Sent folder and the email with attachment is shown as sent, and you do not receive an error message on your computer.
    then i would say it is purely a recipient error, and i am not sure how we can help on these pages not knowing what system they use or if on the web. do you have a friend to whom you can send an attachment that also uses a mac by any chance? does he/she receive the attachment fine, or no attachment either?
    hope this helps

  • Exhange mail on iPhone5 - Cannot send attachments, only view

    I have recently switched from BB to iPhone5....As per our Corporate Exchange server policy, there is No Restriction on attachments...I was able to send the same via BB and even today my firends on Android & MS phones are able to do so....in my case after configuring my exchange credentials in the default app, I am able to send & receive mails, view & forward attachments BUT Cannot send attachments to any New Mail or Reply Mail....
    Please help in the same
    Thanks
    Atin

    When I click "Reply" or "New Message", i do not get any icon for ading an attachment.
    But when I am in separate app like "Photo" or "Adobe Reader", I am able to select the file and choose sent as mail.

  • Cannot send attachments with mail

    All of a sudden I cannot longer send attachments using the Mail app in OS 10.8.4 
    Any attachment, any file, any type, using the iCloud server or my internet provider, Mediacom.
    Any help?
    Thanks.

    This may seem a bit basic, but it has worked for me in the recent past - have you quit Mail, relaunched it and tried again? Or, if that doesn't help, try again after restarting the Mac.

  • Mail 3.3 won't send attachments

    Ever since upgrading to Leopard 10.5.4 I haven't been able to send attachments over about 30Kb. I have dialup with NetZero and have checked all of the modem and Network settings. I've been using this same dialup for 5 yrs or so and have never had a problem with previous OS's. The last was 10.4.11. When I attempt to send an attachment of over 30Kb, Mail will spin for 5 min. or so and finally generate the following: "Cannot send message using the server smtp.netzero.com". I checked with NetZero and that is the correct address for their outgoing mail server.To check that I didn't have some other problem I tried FTPing a file via an FTP client and that worked fine.
    I did try sending an attachment using the browser based email program from NetZero and had a similar problem...I'm using Safari 3.1.2 for that BTW. In NetZero it spun it's wheel for a few minutes and simply didn't load the attachment. This leads me to think that this is more of an OS issue in that it does the same thing with 2 different programs.
    Anyone have any thoughts? Thanks in advance.

    I'm having similar trouble with Mail 3.3 after upgrading to Leopard despite years of trouble-free use with exactly the same set up on previous OSs and versions of Mail.
    It boils down to frequent but erratic SMPT errors - sometimes the mail goes, sometimes it doesn't. I've found that clicking the Connection Doctor button sometimes helps. But sometimes it doesn't.
    Sometimes it's only emails with attachments that get snagged, other times it's all emails.
    Why does something that used to work fine have to get worse with an upgraded version? iPhoto seems to have got worse too (no dragging to folders from full-screen view). Come on, Apple, sort it out or we'll all have to abandon your Apps.

  • Mail app won't send attachments

    A few days ago my macbook pro stopped sending email with attached files, and so did my wife's macbook (both running snow leopard at the start of the problem). Regular mail is sent but both sending an receiving is painstakingly slow. Progress bar appears but near the end the transfer rate slows to reach zero and stays there forever.
    Webmail access to my account won't let me send attachments either.
    Problem happens with yahoo plus, hotmail and workplace mail servers. Also from home (through broadband telephone access connected to an airport extreme base station) or from wifi access at work, at work downloading messages is fast though. Doesn't happen when sending through my ipad2.
    I have reset the broadband modem and base station, rebuilt permissions in both computers, changed MTU settings and upraded my macbook pro to lion with no success.
    Any ideas?

    I don't think so because I used to send 2MB or 3 MB files with no problem and now it won't let me send a 60K word document. It also happened out of the blue, no system updates or preference tweaking whatsoever.

Maybe you are looking for

  • How do I use two external monitors with my laptop?

    I have a new Pavilion dm4-301 d cl Entertainment PC.   My OS is Windows 7.   I am used to using two external monitors with a docking station.   This new laptop does not have a docking station.  What do I need to get  to use two external monitors?  Th

  • Automatic goods movement at the time of confirmation in IW42

    Hey gurus, In a maintenance order i ve reserved some materials to be issued from the stores. Now i am not issuing the reserved materials from the stores and going to iw42 for confirming the operations of the order. If i select the item overview of th

  • How can you backup your iPhone without using the front button?

    My front button doesn't work again. Had this fixed a week ago and it stopped working again. So how do I backup the iPhone without being able to close the email account it is in now and get to the Settings without using the front button?

  • BRFPlus Email action : not triggering emails

    I executed the email action from within a rule set. Simulation shows that email action was called without errors. The email was never received in the inbox. Q1. Does the direct recipient field expect an email id or the user id? Q2. Can we pass in a t

  • HDMI capture on MAc Book pro

    Hello, I post a new topic on this forum because I'll become crazy. I received my TV channels by the internet. My TV box has the capability to "record" movie as a hard disk, but my provider doesn't allow to create a backup on a DVD or external support