Issue with sending an image in the body of email using SAP ABAP

Hello All,
We have a requirement to send an email to our external clients that contains an image in the body of the email. We are using cl_bcs class in ABAP to send the email and the mail is sending in html format.
We have uploaded the image in the SAP system using the transaction u2018SMW0u2019 and we are using the Function Module 'WWW_GET_MIME_OBJECT' to retrieve the image while sending the mail. But image is not displayed in the mail by using this approach.
When we tried to use the image URL from the company website with <img> tag of the html code in the ABAP Program, the image is displayed in the mail. But, to display the image we need to use the download option and also it is taking time to download.
Our aim is to download the image automatically in the mail. I have searched sdn but couldn't find complete info.
If anyone worked on the similar functionality, kindly reply.
Thanks in advance for your help.
Best Regards,
Ravi.

Are you trying to send the e-mail with the image embedded? I did it with PHP and Phython... Never done it in ABAP, sadly to say... but I guess it should be possible. You'll need to play with the way the HTML code of the e-mail is being created, using MIME and the right headers. I'm guessing the result of WWW_GET_MIME_OBJECT will be your 'Content-ID'.
Do some google with "Send an HTML email with embedded image". Even if it's related to another programming language it might give you some clues about how to compose the e-mail and you'll be able to replicate the logic by using CL_BCS.
An alternative would be to just attach the image to the e-mail.
Cheers,
Andres.

Similar Messages

  • Issue of Image in the body of email

    Hi All,
    I have the following requirment:
    To enter email id and image which is stored in se78 as parameters and execute it so that the respective image entered is sent to email id entered in the body of the email.
    I have checked with available blogs and forums but it is not exactly meeting my requirement.
    I am able to find th soultion to send the report ouptut in the body of the email.
    But I need soultion to send the Image in the body of the email.
    Please let me know the solution when you have the time.
    Regards.
    A.Srinivas
    Edited by: Thomas Zloch on Jan 21, 2011 5:17 PM - urgency reduced

    If you want to reference an image for an email body via HTML, you should either store it in the MIME repository or on an external content server.  The graphics manager is for form development, though you could extract the data, it would be a painful and unnecessary process.

  • Not able to see the Image in the body of email

    Hi
    I need to send email having image in the body. I have created a file in mime repository but not able to take its value in my abap program.
    I am using  WWW_GET_MIME_OBJECT to be used in the body of the mail.
    Anybody having clue about it.
    Thanks & Regards,
    Ravi Grover

    Hi Ravi,
    you may compose an email that looks like the one you want to send.
    If you analyze the source, you will see that the image is included as an HTML reference. Check this [stone-old thread that can be found by simple search|Image embed in email with ABAP; .
    Regards
    Clemens

  • Since I Updated Firefox I Cant Paste Images In The Body of Emails

    I use go daddys web mail, i use to be able to paste images in the body of the email on my godaddy email and gmail but since i updated Firefox it dosent let me do that any more, all i get is a broken file. what can i do?

    Try to read raq here;
    * http://www.roboform.com/support/faq/roboform#toolbar

  • Sending a picture to the body of email ( not as an attachment)

    Hello everyone,
    I have an abap program that sends an email to a list of users. In that email i have to send an image posted in the background of the email message. I have tried the following links but was unable to get the result.
    a) Using CL_BCS to send email from ABAP
    b) Send an picture to body of an email
    I have tried uploading the image as a mime object and then get the url through function module. Also i have tried to implement it using html.  I need your reply.
    Thanks in Advance
    Regards
    Kulwant Boparai

    Hi Anshu,
        Can you please let me know is the ERMS configured in your system or you are sending
        the mail to the customer using Action Profiles. If you are sending the mail using a smartform
        assigned to an Action profile  then you can display that report internal table data or etc.. in
         the smartform itself so that the output data will be available in the e-mail body itself.
        Please let me know the way you are sending the e-mail if the above ones are incorrect.
    Thanks
    Arun

  • Re: Sending report output in the body of Email (Not as an attachment)

    Hi,
    My requirement is to send the report output in body part of the mail itself.  I am able to send the mail with the output as an attachment but requirement is it shoud be in the body part not as an attachment..
    Thanks,
    Anshuman.

    Hi Anshu,
        Can you please let me know is the ERMS configured in your system or you are sending
        the mail to the customer using Action Profiles. If you are sending the mail using a smartform
        assigned to an Action profile  then you can display that report internal table data or etc.. in
         the smartform itself so that the output data will be available in the e-mail body itself.
        Please let me know the way you are sending the e-mail if the above ones are incorrect.
    Thanks
    Arun

  • Lately, I'm unable to paste any image into the body of any email I compose. I did not have this issue before today. Please help.

    Could this issue with not being able to copy and paste any image within the email body, be virus or malware related?
    Though I don't think I have any virus problems. Also I have all the latest updates for Thunderbird.
    I read some suggestions posted elsewhere and tried those but none of these worked :
    DID NOT WORK #1 :
    (If your Thunderbird email message is displaying strange-looking code (tags) after each link, images are missing (it looks like images have been stripped out), and the font appears different, or bold, then you’ve most likely changed the message body view inadvertently. To switch it back, simply:
    Browse to View -> Message Body As -> and select Original HTML.)
    DID NOT WORK #2 :
    Email message looks fine, but doesn’t contain images
    If the rest of your Thunderbird email message looks okay, but is missing images, or they appear to have been stripped out, it’s very possible that you’ve changed a setting that won’t let attachments (ie. pictures) appear inline (within the message body). To change this back, simply:
    Browse to View -> and select Display Attachments Inline. )
    DID NOT WORK #3 :
    If you made the above changes to your Thunderbird settings and images still aren’t appearing in some of your messages, it may be that Thunderbird is blocking them because it thinks they are spam. To adjust your privacy settings and prevent the images from being stripped out, or not displaying at all (ie. being blocked), simply:
    Click on the button to the above right of the email message asking you whether you would like to load images.
    If the email message is from a trusted sender, you can click the link above the message specifying you would always like to load images in messages from this particular sender.
    DID NOT WORK #4 :
    If you’re still having troubles, or your changes aren’t being saved (ie. next time you open Thunderbird the images won’t display again) you can directly specify the default format Thunderbird should display email messages as in the config editor. To access it, simply:
    Browse to Tools -> Options -> Advanced tab -> Config Editor
    Search for mail.default_html_action and make sure it is set to 3 (allow original HTML). If you would like messages to open as text only (more secure, but you won’t see images, change the setting to 1).
    Could you please suggest what possibly has caused this issue? Thank you for your time.

    Thank you for your response.
    After searching around for any pointers to my problem, the above fixes I listed were the things that came closest to maybe addressing the issue, that I was able to locate. But since none worked, and as you pointed out, it is now clear they will only help towards viewing sent images rather than helping with inserting any images in the body of the email, which is the problem I suddenly started facing today.
    Coming to your suggestion, on opening the Write window, the Insert choice on the menu bar is indeed available. And I had already tried using that, by clicking on the '''Insert ----> Image''' option listed. That opens
    up the "Image Properties" box but using that has not resolved the matter either. It results in an image box getting inserted within the email but without the actual image itself.
    Plus, normally I am able to use the '''Paste''' function in the Edit menu or through right-click, but today the (Cut/Copy/Paste) functions have gone inactive, thereby disallowing me to use that to place an image within the email.

  • How do I send photos by email as file attachments, as opposed to images in the body of the email?

    I know this has come  up before but I have not come across a satisfactory answer. Someone suggested removing my signature. I did that. It didn't help. I have a batch of photos I want to send to my computer to print out. I do not want to print out the emails, just the images. I know I can copy and paste the images into a word doc, other application doc etc., but that seems gratuitously laborious. I started off emailing the photos from the photos app, and the first couple arrived as files which I can right click and save, open etc. so I know it's possible, but the rest were sent as images in the body of the email.
    Can anyone suggest anything? I am fairly new to apple products, so please don't assume I know all the ins and outs of them!
    Thanks!

    Hello philip21,
    You may need to remove the email account from your iPhoto Preferences, and then readd it.
    iPhoto '11: Accounts preferences
    http://support.apple.com/kb/PH2340
    Cheers,
    Allen

  • Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • Can't put image into the body of Yahoo Email.

    Although easily done using I.E or Outlook, any attempt to paste an image into the body of a Yahoo Mail results in nothing happening when using Firefox. I do NOT want to use I.E.
    This is a major problem. Attachments are no solution. In many industries, including mine, we like to send flyers as images or IN-LINE documents via email.
    Will Firefox / Mozilla address this issue?
    Is there a solution already?

    I have 2 FF windows open. One to view my picture and one with Yahoo mail. If I click and drag the picture into my Yahoo mail body, it works. Can't do copy/paste like in IE.

  • TS3276 Having trouble sending jpeg images as attachments in Mac email.....they go thru as images and PC users can't see the SAVE or QUICK LOOK boxes that Mac mail has.  One friend scrolled over the image, right clicked on it and saved as a PNG file.

    Having trouble sending jpeg images as attachments in Mac email.....they go thru as images and PC users can't see the SAVE or QUICK LOOK boxes that Mac mail has.  One friend scrolled over the image, right clicked on it and saved as a PNG file.

    Apple Mail isn't going to change the format of any of your attachments. it isn't going to corrupt them either.
    Exchange is a transport protocol and server. The issue you describe is not related to Exchange.
    There are many different versions of Microsoft Outlook in use and they all have e-mail bugs. Different versions have different bugs. Some Apple Mail hack to get around a bug in Outlook 2003 may cause the same message to be problematic in Outlook 2000. Fix them both and another issue will cause trouble in Outlook 2007. You can't fix this. Apple can't fix this. Microsoft can and has but that is irrelevant if your recipients are using older versions.
    One specific problem is that Apple Mail always sends image attachments inline, as images, not as iconized files. You can change this with Attachment Tamer. Just be aware that use of this software will break other things such as Stationery. E-mail is just a disaster. To date, no one outside of Apple has ever implemented the e-mail standards from 1993. Apple has continually changed its e-mail software to be more compatible with the de-facto standards that Netscape and Microsoft have unilaterally defined and people documented as "standards" after the fact. The e-mail messages that Apple Mail sends are 100% correct and do not violate any of the original standards from 1993 or the Microsoft/Netscape modifications. The problem is entirely bugs and limitations in various versions of Outlook.

  • Issue with Sender File FCC

    Hi Experts,
    I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
    The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
    The Error thrown is :
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
    I have two questions:
    1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
    2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
    Thanks,
    Arkesh

    Hi Arkesh,
    I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
    In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
    I hope this helps you....
    Thanks,

  • So, about a week ago my macbook pro started having lots of issues: wifi connectivity, slow performance, sound issues, spotlight wasn't working. After going through the issues with apple support, they decided the best course of action was to erase it...

    So, about a week ago my macbook pro started having lots of issues: wifi connectivity, slow performance, sound issues, spotlight wasn't working. After going through the issues with apple support, they decided the best course of action was to erase the hard drive and do a reinstall. Since I have a recent backup this seemed like a good enough option. They were kind enough to send me a copy of the snow leopard disk to do the install since we couldn't get it to complete through the disk utility. Not sure why, since it says we are fully connected, it just never completed.
    Anyway, so now that you have the background here is the new issue. The macbook pro keeps spitting out the disk I'm trying to install from. Disk utility and using the 'Startup Disk' function from the apple menu doesn't read the disk.
    Can anyone suggest a solution to this vexing problem?
    Thanks in advance.

    Jeremy.Laurin,
    have you tried agb76’s approach here?

  • Having issues with sending attachments via iMail to PC users

    Having issues with sending attachments via iMail to PC users. Either they do not see all the attachments or the attachment comes across blank. Is there any suggested ways to resolve this?

    You can also use Dropbox. 2GB free. Put files in the Public folder and you can send them links of the files instead.
    You can use my referral link http://db.tt/MXNpy62 to create an account.

  • Sending an image to the system clipboard

    I've been trying to figure out how I can send an image to the system clipboard. At this state I'm beginning to think it's just not possible. This is the case:
    I've got an applet running in a browser which creates a new window. I now want to copy the contents of this window to the system clipboard. So far I can only transfer text to the clipboard, but what I need is to copy a screenshot of the new window to the system clipboard.
    Does anybody know how this can be done with Java or any kind of scripting language?

    Since I already found the answer I rewarded 2 people for there help. This is the answer I found. Some code was found on the JDC Forum, but I can't remember who posted it or where I found it. So sorry that I can't give him credit...
    Using JDK 1.4 the code could look like this:
    -> This is how the policy file should look like:
    grant
    { permission java.awt.AWTPermission "accessClipboard";
    permission java.awt.AWTPermission "createRobot";
    permission java.awt.AWTPermission "readDisplayPixels";
    -> This is the code for the applet:
    import java.awt.*;
    public class ClipboardTest extends java.applet.Applet {
    public void init() {
    initComponents();
    initialiseer();
    private void initComponents() {
    setLayout(new java.awt.BorderLayout());
    public void initialiseer() {
         // Here I create the actual frame that I can send to the clipboard
    MySystemClipboard cb = new MySystemClipboard();
    cb.setBounds(200,200,200,200);
    cb.setVisible(true);
    -> And here is the code for MySystemClipboard:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.datatransfer.*;
    public class MySystemClipboard extends Frame implements ActionListener,
    ClipboardOwner
    private Button myButton;
    private Clipboard myClipboard;
    private PrettyPicture myPicture;
    public MySystemClipboard()
    add(myButton = new Button("Clip"), BorderLayout.SOUTH);
    add(myPicture = new PrettyPicture(), BorderLayout.CENTER);
    myButton.addActionListener(this);
    myClipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
    public void actionPerformed(ActionEvent anEvent)
    try
    ClipImage ci = new ClipImage(new Robot().createScreenCapture(getBounds()));
    myClipboard.setContents(ci, this);
    catch (AWTException ae){}
    public void lostOwnership(Clipboard clipboard, Transferable contents)
    private class ClipImage implements Transferable
    private DataFlavor[] myFlavors;
    private BufferedImage myImage;
    public ClipImage(BufferedImage theImage)
    myFlavors = new DataFlavor[]{DataFlavor.imageFlavor};
    myImage = theImage;
    public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
    if (flavor != DataFlavor.imageFlavor)
    throw new UnsupportedFlavorException(flavor);
    return myImage;
    public DataFlavor[] getTransferDataFlavors()
    return myFlavors;
    public boolean isDataFlavorSupported(DataFlavor flavor)
    return (flavor == DataFlavor.imageFlavor);
    private class PrettyPicture extends Panel
    public PrettyPicture()
    setBackground(Color.gray);
    add(new Button("Button1"), BorderLayout.NORTH);
    add(new Button("Button2"), BorderLayout.CENTER);
    add(new Button("Button3"), BorderLayout.SOUTH);
    Hope this can help some other people

Maybe you are looking for

  • What's the phone number I should call for help with my iPhone and ihome dock?

    What's the phone number I should call for help with my iPhone and ihome dock?

  • Set the thumbnail/poster frame?

    I use iMovie to generate QuickTime files, which I embed in HTML web pages. Is there a way to specify the frame which displays when the embedded movie is not being played? I.e. the image that appears in the QuickTime player in the webpage, prior to hi

  • OSB check script with WLST

    Hi I have a requirement to produce some output which lists the OSB services currently deployed and their state (enabled or disabled). Using the CommonServiceConfigurationMBean described here: http://docs.oracle.com/cd/E28280_01/apirefs.1111/e15033/co

  • Converting Colors

    I am a beginner in the artwork world. I have taken a photo, converted it to grayscale, then did a live trace. I then expanded the output and deleted alot of background elements and 1.5 hours later, I saved my file.  My intention is to create a 1 colo

  • Windows 8.1 Enterprise Preview Now Available

    Windows 8.1 Enterprise Preview is now available for download for customers to start testing the operating system in their environments. http://technet.microsoft.com/en-us/windows/hh771457.aspx?ocid=wc-blog-wfyb