[Mail] BCS - Outlook emmbedded image (cid)

Hi,
I would like to send images to Outlook and, for my emails not to be considered as spam, I use the <i>cid</i> like this
<img src="cid:photo.jpg" />
text-line  = 'photo.jpg'.
APPEND text TO t_header.
CALL METHOD document->add_attachment
  EXPORTING
    i_attachment_type    = type
    i_attachment_subject = subject
    i_att_content_hex    = content_hex
    i_attachment_header  = t_header.
Indeed, the image is embedded BUT it is also shown as attachment because the <i>Content-Disposition: inline</i> is not set.
Is there a way to do so with BCS (Business Communication Service, a.k.a class CL_BCS) ?
Thanks in advance.
Best regards,
Guillaume

Hi Fred,
I am importing the image from MIME directory by using below code.
CALL METHOD gv_mr_api->get
   EXPORTING
     i_url              = '/SAP/PUBLIC/Recruiting_Header.jpg'
   IMPORTING
     e_is_folder        = is_folder
     e_content          = gv_content
     e_loio             = l_loio
   EXCEPTIONS
     parameter_missing  = 1
     error_occured      = 2
     not_found          = 3
     permission_failure = 4
     OTHERS             = 5.
Can u please help to rectify this issue..
Sudheer.

Similar Messages

  • I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I may be way out, but do you know about this product, would it help integrate the Macs for you.
    https://www.thursby.com/sites/default/files/images/ADmitMacv8_SPD.pdf

  • Mail not showing embedded images

    This problem has been bugging me for a while.
    I am getting some emails (from my company communications) that are incorrectly formatted by Mail. I see big boxes labeled "Missing Plug-in". The rest of the text is there, but those big boxes make the mail hard to read.
    So today I decided to look a bit deeper into the problem. I brought it down to the presence of image tags that call for embedded images (included as attachments) using the "cid:" protocol. For example:
    <img src="cid:[email protected]" alt="Find" border="0">
    Is this a restriction in mail (I am running mail 6.1 on Mountain Lion). Or is there some config parameter I need to tweek to enable support for embedded images ?
    Thunderbird has no problem. I also did a quick check with Google Mail and Yahoo Mail, and neither show the images. But they just show nothing, so the resulting email is still readable. Mac OSX Mail shows big boxes with the "Missing Plug-in" note. I would be happy if Mail just ignored the images.
    I should point out that mail on iPhone and iPad work fine (they display the images).
    Albert

    Try this - worked for me...
    https://discussions.apple.com/message/20652845#20652845
    If that doesn't link properly, here's the original solution, cut and pasted:
    "MailPluginFix"
    From the Code2K:Labs site: http://code2k.net/products/mailpluginfix/
    From MacUpdate: http://www.macupdate.com/app/mac/37804/mailpluginfix
    Just download the fix and double-click it - next time you open mail, you'll see your attachments.

  • Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"

    Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"
    What are the correct mail account settings and more importantly the correct DNS settings
    Thank you for any help you may be able to provide
    Cheers
    Chris (iMac i7)

    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
              •          Server name: imap.mail.me.com
              •          SSL Required: Yes
              •          Port: 993
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    SMTP (outgoing mail server) information:
              •          Server name: smtp.mail.me.com
              •          SSL Required: Yes
              •          Port: 587
              •          SMTP Authentication Required: Yes
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • Cannot send mail from apple mail or outlook- HELP- tried everything on Google- nothing works!

    Getting really disheartened after the thrill of getting a brand new iMac!
    I cannot get my email to work on Apple Mail or Outlook (which I pay for) at all!
    I can get the messages but not send any- and I have honestly tried EVERYTHING to get it to work- all port changes etcetc    
    Someone has mentioned you can change a smtp relay number which may be set to 0 as a default with Mac!
    I have been a PC for years so I am not sure what to do here and there is no tutorial that makes any sense on google.
    Someone please help me before I burst into flames!
    This is a work account and not being able to send emails doesnt help me.
    Ps- the email still works on old pc laptop and my android phone.
    Thanks

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    OUtlook was already set as the mail client for FF, and is my operating system (XP)'s default mail programme. therefore problem not solved at all. what I get whenever I follow a link in a webpage to send an e-mail is a little pop up window asking me to sign in to gmail or open an account. any other suggestions?

  • How to get All Mails from outlook

    Hi am reading mail from outlook.. It reads only unread mails. But i want to read all mails. if any one knows please help me..My code is..
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    public class AllPartsClient {
      public static void main(String[] args) {
    Properties props = new Properties();
        String host = "myhost";
        String username = "myuser";
        String password = "mypass";
        String provider = "pop3";
        try {
          Session session = Session.getDefaultInstance(props, null);
          // Connect to the server and open the folder
          Store store = session.getStore(provider);
          store.connect(host, username, password);
          Folder folder = store.getFolder("INBOX");
          if (folder == null) {
            System.out.println("Folder " + folder.getFullName() + " not found.");
            System.exit(1);
        folder.open(Folder.READ_ONLY);
          // Get the messages from the server
          Message[] messages = folder.getMessages();
          for (int i = 0; i < messages.length; i++) {
            System.out.println("------------ Message " + (i+1)
             + " ------------");
            // Print message headers
            Enumeration headers = messages.getAllHeaders();
    while (headers.hasMoreElements()) {
    Header h = (Header) headers.nextElement();
    System.out.println(h.getName() + ": " + h.getValue());
    System.out.println();
    // Enumerate parts
    Object body = messages[i].getContent();
    if (body instanceof Multipart) {
    processMultipart((Multipart) body);
    else { // ordinary message
    processPart(messages[i]);
    System.out.println();
    // Close the connection
    // but don't remove the messages from the server
    folder.close(true);
    catch (Exception e) {
    e.printStackTrace();
    // Since we may have brought up a GUI to authenticate,
    // we can't rely on returning from main() to exit
    System.exit(0);
    public static void processMultipart(Multipart mp)
    throws MessagingException {
    System.out.println("mp.getCount() = "+mp.getCount());
    for (int i = 0; i < mp.getCount(); i++) {
    processPart(mp.getBodyPart(i));
    public static void processPart(Part p) {
    try {
    String fileName = p.getFileName();
    String disposition = p.getDisposition();
    String contentType = p.getContentType();
    if (fileName == null && (Part.ATTACHMENT.equals(disposition)
    || !contentType.equalsIgnoreCase("text/plain"))) {
    // pick a random file name. This requires Java 1.2 or later.
    fileName = File.createTempFile("attachment", ".txt").getName();
    if (fileName == null) { // likely inline
    p.writeTo(System.out);
    else {
    File f = new File(fileName);
    // find a version that does not yet exist
    for (int i = 1; f.exists(); i++) {
    String newName = fileName + " " + i;
    f = new File(newName);
    FileOutputStream out = new FileOutputStream(f);
    // We can't just use p.writeTo() here because it doesn't
    // decode the attachment. Instead we copy the input stream
    // onto the output stream which does automatically decode
    // Base-64, quoted printable, and a variety of other formats.
    InputStream in = new BufferedInputStream(p.getInputStream());
    int b;
    while ((b = in.read()) != -1) out.write(b);
    out.flush();
    out.close();
    in.close();
    catch (Exception e) {
    System.err.println(e);
    e.printStackTrace();
    In this code if Content is Multipart then it is not displaying content..
    Thanks

    Hi
    if i use String provider = "imap"; then it shows the following error message..
    javax.mail.MessagingException: Connection refused: connect
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:479)
    at javax.mail.Service.connect(Service.java:275)
    at javax.mail.Service.connect(Service.java:156)
    at javamail.AllPartsClient.main(AllPartsClient.java:39)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
    at com.sun.mail.iap.Protocol.<init>(Protocol.java:84)
    at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
    ... 3 more
    pls any one give idea

  • Since switching to Firefox this week, when I click on a hyperlink in an e-mail in Outlook, I get this message, "General failure. An error occurred in sending the command to the application." It doesn't open a new window or do anything.

    Since switching to Firefox this week, when I click on a hyperlink in an e-mail in Outlook, I get this message, "General failure. An error occurred in sending the command to the application." It doesn't open a new window or do anything. Any work around to fix this?

    See this lnk for a fix, it worked for me!
    http://www.pcworld.com/article/200103/fix_outlook_general_failure_error_for_email_links.html

  • In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.

    In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.

    Nurit,
    The point is that that button should not be there, if the preference setting is as you say. This indicates the preference setting is stuck, and that is what I was trying to help you resolve.
    The full purge is done as follows:
    Quit Mail, and in the Finder open Home/Library and locate the Mail folder. Control-click over the Mail folder, and choose Duplicate -- then drag the resulting copy to the Desktop for temporary backup. Next, open Home/Library/Preferences and find the com.apple.mail.plist file and drag it to the desktop.
    Relaunch Mail, which will open as though new, and when prompted to import anything DECLINE. Instead, re-enter your account info, and Mail will re-discover the account folders for your accounts, and all should be well, after setting preferences as you desire.
    Ask any needed questions, and keep us posted.
    Ernie

  • How can I read my incoming emails in one folder?Like I do in Live mail and Outlook express.

    Now we can only read emails in different folders if I am managing multiple email accounts.
    It does not feel so comfortable as we use Live mail and Outlook express.

    '''Unified Inbox for pop and Imap mail accounts:'''
    If you use the Unified folder view, this will show an Inbox with all emails from all accounts, with sub folder Inboxes for the individual Inboxes for the various accounts. Then you can choose to view the collective Inbox or the individual Inbox.
    This method can be chosen simply and quickly.
    * View > folders > Unified
    '''Setting up Pop mail accounts to use Global Inbox.'''
    Pop mail accounts can be set up to use a Global Inbox in Local Folders.
    Imap mail accounts cannot be set up to use Global Inbox, but can use the Unified view.
    To change Pop mail accounts to use Global Inbox, you would need to move all emails into Local Folders Inbox.
    Then change the settings for each pop mail account.
    Tools > Account Settings > Server Settings for the pop mail account
    click on 'Advanced' button
    select 'Inbox for a different account' and 'Global Inbox (Local Folders)
    click on OK
    You need to do this for each Pop mail account.
    Then close Thunderbird. You must do this before downloading anything otherwise the emails may continue to go to the wrong Inbox.
    Wait a few moments for Thunderbird to fully close and then restart Thunderbird.
    Please read more info on global inbox here:
    * http://kb.mozillazine.org/Global_Inbox

  • Sending a mail to Outlook as a Meeting Request

    Hey!
    I am having problem while sending a mail to Outlook as a meeting request using JavaMail. If any of know or worked on it, please help me. Please send me sample code if you have.
    Thanks in advance,
    /Krishna.

    Hi,
    Can you please send the working piece of code you have to : '[email protected]'.
    I am trying to implement the vCalendar format, but still it is sending as a normal JavaMail. I tried sending it as content type "text/calendar".
    Please help me,
    Thanks in advance,
    Krishna.

  • Can't send or receive mail from Outlook

    just purchased a wireless router and hooked up recently. Can access the internet & outlook express but can't get my mail from outlook which is my main email account. Message says can't find exchange server. I can access Outlook from my laptop wirelessly at work but not at home.
    Any suggestions?

    checked the ip address of the computer when its connected to the router using the command promt.(example.....ip address: 192.168.1.100; Default Gateway:192.168.1.1).
    Open an internet browser (ie, mozilla, netscape,etc.). Type at the address bar the default gateway (192.168.1.1). and you will see a username and password promt for your router. Leave the username blank and use admin for your password, if it doesn't work use the password you setup the router to..
    Once you see the setup page.... you'll be at basic setup sub tab under setup. Look for MTU. Set it to MANUAL and LOWER IT TO 1300.  Save the settings. Check your outlook if its working....If its Does't work do this
    Go to Applications and Gaming tab.
    Look for a port triggering sub tab. type it this way
    Application NameTrigger Port RangeIncoming Port Range
    application       triggered range     forwarded range
    E-mai                 l25 ~ 25                   113 ~ 113
    forwarded range is equevalent to incoming port rage...
    hope this will solve your concern.... 

  • Export Apple mail to Outlook 2011 for Mac

    Hi everyone,
    I don't like the serie Mail/iCal/Carnet d'adresses from Apple, reason why I bought Outlook 2011 for Mac.
    I succeed transferring all my contacts to Outlook.
    I try now to transfer all my mails with their categories to Outlook too but I don't succeed.  I read some discussions on this forum but they are obsolete as they were with snowLeopard and Outlook 2011.  Would someone have good news for me and find a way to transfer all the mails with their categories from Apple Mail to Outlook 2011 for Mac ?
    It would be nice and to receive a positive answer.
    Thank you for your help
    Renée

    INFORMATION on Emailchemy from another Forum
    I’ve found a way in which you can import Apple Mail into Outlook 2011 on Mac OS X Lion.
    The software I’m running is Mac OS X 10.7.2 on a 2011 MacBook Pro.
    You need to purchase an app called Emailchemy. It’s 29.99 for an individual license, and 49.99 for a family license. There are enterprise versions available as well.
    Once you run the app, you need to do the following:
    1. Export all mailboxes from Apple Mail to your desktop (or any other suitable location on your computer). You do this by selecting the mailbox, and then clicking on “Mailbox”, and then “Export Mailbox”. Save the destination, and the file is saved automatically.
    2. Then you open Emailchemy and do the following:
    - click on “toolbox” in the bottom left hand corner
    - click on the second box on the top left hand called “advanced email conversion”
    - click on “add file”
    - select the folder (s) you just exported from Apple Mail (e.g. Inbox.mbox)
    Now here comes the trick
    - select format “apple mail 1.0 in the format option at the bottom
    - then 3 sub-folders will appear “info-p.list”, “mbox” and “table of contents”
    Select “mbox”
    - click on “convert” and choose a save file name. Choose the format “MBOX file (standard mbox)”
    - click on save
    And you then have a folder created which Outlook 2011 recognizes and can import.
    I just imported all my Apple Mail into Outlook 2011 – it works really well too – the formatting, attachments, etc are all there!
    Hope this helps.

  • Inline HTML + Inline Text + attachment all 3 in 1 mail  in Outlook

    Hello All,
    I am trying to compose and send a mail using JavaMail library using which I can send a mail with
    1) HTML in the body of the mail
    and
    2) 4 -5 line of text (along with HTML , not as alternative text)
    and
    3) an attachment (which will also be an HTML file )
    Now here are the issues I am facing --
    --> When I try to view above composed mail in Outlook it shows either the text or HTML depending on whichever i add first to the MimeMultipart object using addBodyPart(). I wish to view both in Outlook.
    --> As I am attaching the same HTML file and displaying the same in body is there a way to do both using same file hence keeping the size of mail does not contain the size of HTML file only once , not twice .
    here is the code I am trying to use . Any kind of advice or corrections would be greatly appreciated.
    BufferedReader in = new BufferedReader(new FileReader("filename.html"));
            String tempStr;
            String finalStr="";
            while ((tempStr = in.readLine()) != null)
               finalStr= finalStr + tempStr+"\n" ;
            in.close();
            Multipart mp = new MimeMultipart();
            MimeBodyPart mbp1 =  new MimeBodyPart();
            mbp1.setContent(finalStr, "text/html");
            mbp1.setDisposition(Part.INLINE);
            mp.addBodyPart(mbp1);
            MimeBodyPart mbp2 =  new MimeBodyPart();
            mbp2.setContent("\n\nPlease open attachment if html not viewable in body\n\n","text/plain");
            mbp2.setDisposition(Part.INLINE);
            mp.addBodyPart(mbp2);
            String       attachfilename = "filename.html";
            MimeBodyPart mbp3           = new MimeBodyPart();
            DataSource   fds            = new FileDataSource(attachfilename);
            mbp3.setDataHandler(new DataHandler(fds));
            mbp3.setFileName(attachfilename);
            mbp3.setHeader("Content-Type" , "text/plain");
            mp.addBodyPart(mbp3);
            message.setContent(mp);Thanks

    Hello bshannon
    As you said that "Different mailers will display the same content in different ways." i was wondering if any of the outlook will be able to display more than one mimebodypart(s) if a mail is sent using javamail or is Outlook suposed to show just one body part
    I read this text on wikipedia for Outlook [http://en.wikipedia.org/wiki/Outlook_Express]
    "Handling of PGP/MIME signed messages
    Outlook Express does not correctly handle MIME,[4] and will not display the body of signed messages inline. Users get a blank e-mail and two attachments (one of the message text and one of the signature) and therefore need to open an attachment to see the e-mail. If the email has been forwarded several times, users need to open attached email messages one inside the other multiple times till they reach the parent e-mail message. This bug has still not been rectified."
    So does the above bug applies to the mails sent by JavaMail ?
    Thanks

  • I WANT TO IMPORT MAIL FROM OUTLOOK TO TALKTALK

    i want to direct mail from outlook to talktalk.

    Do you mean Outlook, the application included with Microsoft Office, or Outlook Express, the application included with Windows XP, or Outlook.com, the new incarnation of Hotmail/Windows Live Mail?
    Does talktalk have documentation on importing mail? Or on forwarding your old address to your new address?
    I suspect Firefox is not at the center of the process in any case.

Maybe you are looking for

  • What do I need to travel to S.E Asia and Europe?

    Wondering if any one can help me here, I'm not the most tech savvy person and I've looked over allot of information and none of it is concise. I'm totally confused as to what EXACTLY I need in order to charge and run my 2012 Macbook air and an Iphone

  • Podcast description does not show in Ticker feed

    I am having bit of a problem with embedding the podcast description in the ticker feed. If I have 'description' but nothing else turned on for the ticker settings in the workflow, the ticker bar will show only for an instant and then fade out. The de

  • Lenovo 1 Year Warranty Status appears incorrect on H430

    I am new to Lenovo  and  this forum...   (Thank you to Andy for getting me started with my other problem, "H430 Recovery Disk".) My next problem:    The  One Year Lenovo "Warranty Expiration" is not correct as displayed on the Lenovo on-line  "Warran

  • How to show items in the menu bar

    I'd like to know how to add and/or delete items from the menu bar.

  • IDOC FINSTA01 information

    HI All, Could anybody provide some information on the mapping of data from BAI2 format to idoc FINSTA01. I checked the program FF_5 which accepts a text file (comma separated) as input to update data in SAP (direct insert into FEBKO), but we need to