Sending an image in Email

Hi.
We have to send an external email in HTML format. The email can also have a logo/photo.
How can we achieve this?
Also, if it is possible to achieve this, can this be done in backgound also?
We are not displaying when user runs the report. Only send an email.
Thanks in adv.

Hi Durai.
I am using your code to send email, but I am sending to SAP inbox. Everything is fine, except the image does not show up.
Here is what my HTML table looks like :
<html  dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Report output</title>
<style>table.list    { border-collapse: collapse; }</style>
</head>
<!script!>
<body bgcolor="#E8EAD8">
<blockquote>
<p align=left><font size=+2><b> </b></font></p>
<p align=left>
<font style="font-family:monospaced"><font face="courier new" size="2"><nobr><strike>----
</strike></nobr></font><br><font face="courier new" size="2"><span style="white-space:nowr
ap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0002002>                             &nbs
p;   CONFIDENTIAL</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0003002>        &nb
sp;                        </nobr></font><font face="courier new" size="2"><nobr style= color:#0273bc id=l0003035>----
</nobr></
font><font face="courier new" size="2"><nobr style= color:#0273bc id=l0003047>         Page    : 1     </nobr></font></span></font><br><font face="courier new"
size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0004002>Program ID: ZGECVPR019                  
              Run Date: 15.06.2006      </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font
face="courier new" size="2"><nobr style= color:#0273bc id=l0005002>Printed By: VNCSSAA       PHOTO ALBUM OF OFFICER(S)   Run Time: 19:05     &nbs
p;     </nobr></font></span></font><br><font face="courier new" size="2"><nobr><strike>----
</strike></nobr></font><br><font face="courier new" size="2"><s
pan style="white-space:nowrap"><font face="courier new" size="2"><nobr style= background:#E8EAD8 id=l0007002> </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr s
tyle= color:#0273bc id=l0008002>Selection Criteria</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= background:#E8EAD8 id=l0009002> </nobr></font></s
pan></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0010002>    Personnel number         &
nbsp;           :       00000033 </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" siz
e="2"><nobr style= color:#0273bc id=l0011002>                                   
              00000044 </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273
bc id=l0012002>    Present Organizational Unit          :</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier
new" size="2"><nobr style= color:#0273bc id=l0013002>    Owner Organizational unit            :</nobr></font></span></font><br><font face="courier new" size="2"><sp
an style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0014002>    Number of Levels                 
    :</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0015002>    Present Position  &
nbsp;                  :</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr st
yle= color:#0273bc id=l0016002>    Owner Position                       :</nobr></font></span></font><br><font face
="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0017002>    Date of Appt to Service         &nbs
p;    :                 </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" si
ze="2"><nobr style= color:#0273bc id=l0018002>    Personnel Group                      :</nobr></font></span></font><br>
<font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0019002>    Appointing Ministry           &
nbsp;      :</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0020002>    Substantive 
Appointment              :</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc
id=l0021002>
<br class="pagebreakhere">
                  </nobr></font></span></font><br><font face="courier new" size="2"><nobr><strike>----
</strike></nobr></font><br><font face="courier new" size="2"><span style="whi
te-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0023002>                           &nb
sp;     CONFIDENTIAL</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0024002>      &n
bsp;                          </nobr></font><font face="courier new" size="2"><nobr style= color:#0273bc id=l0024035>----
</nobr></font><font face="courier new" size="2"><nobr style= color:#0273bc id=l0024047>         Page    : 2     </nobr></font></span></font><br><font face="
courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0025002>Program ID: ZGECVPR019               &nbsp
;                Run Date: 15.06.2006      </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:n
owrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0026002>Printed By: VNCSSAA       PHOTO ALBUM OF OFFICER(S)   Run Time: 19:05   &nb
sp;       </nobr></font></span></font><br><font face="courier new" size="2"><nobr><strike>----
</strike></nobr></font><br><font face="courier new
" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0028002>                       
                           </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:no
wrap"><font face="courier new" size="2"><nobr style= background:#E8EAD8 id=l0029002> </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0
030002>
<img BORDER=0 height=170 width=132 SRC="SAPR3://SAPR3CMS/get/102/Z1/95DB4054845B6042970BF6E8D5F6335D/data">
<img BORDER=0 height=170 width=132 SRC="SAPR3://SAPR3CMS/get/102/Z1/8DEB78F36C3D784BB9AF63EA9AD9F8C5/data">
                                                                                </nobr></font></span></font><br><font face="courier new" size="2"><span style="w
hite-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0031002>00000033                         &nbsp
;       00000044 </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0032002>James   &nb
sp;                                Lenny         &
nbsp;          </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0033002>   
                                      Customer Relations&nbs
p;      </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0034002>       &nb
sp;                                 Officer       &nbsp
;          </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0035002>
<br class="pagebreakhere">
                                                                                </nobr></font></s
pan></font><br><font face="courier new" size="2"><nobr><strike>----
</strike></nobr></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courie
r new" size="2"><nobr style= color:#0273bc id=l0037002>                                 CO
NFIDENTIAL</nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0038002>            &
nbsp;                    </nobr></font><font face="courier new" size="2"><nobr style= color:#0273bc id=l0038035>----
</nobr></font><font face="couri
er new" size="2"><nobr style= color:#0273bc id=l0038047>         Page    : 3     </nobr></font></span></font><br><font face="courier new" size="2"><span style="
white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0039002>Program ID: ZGECVPR019                     &nbs
p;          Run Date: 15.06.2006      </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" siz
e="2"><nobr style= color:#0273bc id=l0040002>Printed By: VNCSSAA       PHOTO ALBUM OF OFFICER(S)   Run Time: 19:05         &n
bsp; </nobr></font></span></font><br><font face="courier new" size="2"><nobr><strike>----
</strike></nobr></font><br><font face="courier new" size="2"><span style="white-space
:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0042002>                            &nbsp
;                     </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size
="2"><nobr style= background:#E8EAD8 id=l0043002> </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= background:#E8EAD8 id=l0044002> </nobr></font></s
pan></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= color:#0273bc id=l0045002>                &nbs
p;    No of records selected :     2 </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= ba
ckground:#E8EAD8 id=l0046002> </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= background:#E8EAD8 id=l0047002> </nobr></font></span></font><br><font
face="courier new" size="2"><span style="white-space:nowrap"><font face="courier new" size="2"><nobr style= background:#E8EAD8 id=l0048002> </nobr></font></span></font><br><font face="courier new" size="2"><span style="white-space:nowrap"><font face
="courier new" size="2"><nobr style= color:#0273bc id=l0049002>                             ** End o
f Report **</nobr></font></span></font><br>
</p>
</blockquote>
</body>
</html>
===================
Notice the two IMG tags there. If I pass the same table to HTML container as in :
  CALL METHOD html_control->load_data
    IMPORTING
      assigned_url = url
    CHANGING
      data_table   = html
  CALL METHOD cl_gui_cfw=>flush.
  CALL METHOD html_control->show_data
         EXPORTING
               url      = url.
In this case, photo comes up perfectly fine. But in email somehow the photo is not coming up.
Any clues?
Thanks again.

Similar Messages

  • Not able to see the output in sost when sending the image in email body

    I am sending the image in email body and when m trying to see the output in SOST then it showing a page 'you are not connected to the internet'
    I am able to see the output when m saving local objects but when m saving it in some package its showing me this page
    Kindly help it
    Regards
    Pratham Kapoor

    Hello Prakash,
    Thanks for the reply
    I am able to see the mail in SOST but when I click on the Display Document to see the content of the mail then I am getting this error of 'you are not connected to the internet'
    My Program is to put the logo in my email body
    I am sending you the attached image

  • Sending SAP image to email

    Hi all,
    I have to send image stored in SAP (Se78 or OAER) to email.
    Please help me in this regard.
    Thanks,
    Ananth

    Hi Ananth,
    You can search a lot in SCN for this.make advance search
    Check out the thread below,similar thread like yours.
    Re: Sending an image in Email
    regards
    Sachin
    Edited by: sachin sharma on Feb 26, 2009 3:28 PM

  • Send gif image to email

    after i send my page to email, the header don't show because it will send as an attachment. i have uploaded my header to server. i'm using web browser to send email.can i know how to send my page that will look nice in email. i dont want the header send as an attachment. how can i do that?

    pls don't crosspost.

  • Nokia E72-1 send image via Email

    Hi
    After one of the latest firmware upgrades, the options for sending an item via email has dissapeared. For example, when I take a picture with a camera and then click the envelope icon, the only two options I get are: "Via message", "via Bluetooth" and "upload". In the past there was an option called "Via email" but is now missing. Anyone have any idea how to fix that? It's really annoying, since to send an image via email I have to create a new email and then browse the file system to find the image (there are also no thumbnails there so finding the right one is even more frustrating).
    Thanks

    Your'e right.
    nokia has removed this item to let you send email via nokia instead. This is a commercial feature i think.
    you can add attachments when you create a new mail in your mailbox though......
    msonic.

  • Send logo in an Email

    Hi,
    I am sending a mail to vendor using the FM SO_DOCUMENT_SEND_API1.
    Here, I have put the body of the mail in standard texts and i am attaching the PO as attachment. But we also need the company logo in the signature of the mail.
    Now, I can not insert the logo in standard text, but we need it in the body. Can you please suggest a better function module or a work around?

    Hi
    Please see this link,
    Re: Sending an image in Email
    Regards,
    Richa

  • 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.

  • How best to send images by email, esp. to Windoze machines?

    I'm having trouble getting mails to people with just a couple of jpegs, total about 1MB. I use Panther, and Mail 1.3.11. I do check "send Windows-friendly attachments". One recipient is an AOL user, dial-up.
    Another complains that my mails were zipped, and he doesn't have the software to un-zip! This one has good cable modem service.
    Does it matter if I send the images within a folder? Or should I send them without the enclosing folder?

    Sending attachments is pretty tricky, especially to AOL users. I believe that AOL does not allow multiple attachments on a single email. Otherwise, AOL will compress the files together into a single file as it passes through their email server.
    This may and probably does happen on other email servers as well.
    Try sending a single image and see if they receive it ok.
    Also, is there any text included with the emails (comments, signatures, etc)?
    Bronson

  • Problem in Sending image in Email Notification

    Hi All,
    In our implementation we have to send customer logo in each email notification.
    We have SIM 7.1 deployed on SUN JES Application server 8.2.
    I tried to send the image using two ways but nothing got succeed.
    1) Using <IMG src"http<machine name>:<port number>/idm/images/<image name>"/>
    2) Deployed another trial.war file having only image folder and then using <IMG src"http<machine name>:<port number>/trial/images/<image name>"/>
    Where "machine name", "port number" and "image name" have suggestive values as per our environment.
    But i am not able to send the image. however second options works well with Tomcat.
    If anybody has any prior experience or some idea please share. it will really be helpful for us.

    Hi all,
    Its done.
    Actually there is some issue related with the intranet (may be they are blocking the image to get diaplayed) as its working for gmail and all.
    Thanks

  • Unable to send images in Email

    Hi,
         I am trying to send site logo image in Email whenever a Email action is performed.
    My email template jsp is as :-
    <img src='<%=getServletContext().getRealPath("/images/e-commerce_header_img1.jpg")%>' />
    <dsp:importbean bean="/atg/userprofiling/Profile"/>
    <p>Dear <dsp:valueof bean="Profile.firstName"/>
    <p>Thank you for Registering with us.
    <p>Your Login Id is  : <dsp:valueof param="login"></dsp:valueof><br>
       Your Password is : <dsp:valueof param="password"></dsp:valueof>
       <a href='<%=getServletContext().getRealPath("/registration.jsp") %>'></a>
    </p>
    <p>Sincerely,
    The Customer Service Team
    [email protected]
    But the <img src=' '/> and the <a herf=' '/> is not displayed in the Email.
    My debug log is showing the appropriate path of the image and the hyperlink.
    Debug Log:-
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <img src='D:\MyApp\jboss-5.1.0.GA\server\atg_production\deploy\Storefront.ear\storefront-web.war\images\e-commerce_header_img1.jpg' />
    <p>Dear <username>
    <p>Thank you for Registering with us.
    <p>Your Login Id is  : <userID><br>
       Your Password is : **********
       <a href='D:\MyApp\jboss-5.1.0.GA\server\atg_production\deploy\Storefront.ear\storefront-web.war\registration.jsp'></a>
    </p>
    <p>Sincerely,
    The Customer Service Team
    [email protected]
    </body>
    </html>
    ------=_Part_4_7060822.1386214829362--
    09:10:31,781 INFO  [STDOUT] 250 OK id=1VoPnm-4gfN7a-5y
    09:10:31,783 INFO  [TemplateEmailSender] DEBUG email sent to Profile[4150003] ([email protected])
    09:10:31,783 INFO  [STDOUT] NOOP
    09:10:31,997 INFO  [STDOUT] 250 OK
    09:10:31,997 INFO  [STDOUT] QUIT
    09:10:32,212 INFO  [STDOUT] 221 smtpcorp.com closing connection
    What can the problem..?

    <img src='<%=getServletContext().getRealPath("/images/logo.jpg")'%>
    Above code is not displaying image coz when browser is rendering email content, It's expecting logo.jps to be present in image directory relative to browser temporary folder, Which is not..
    If u wan to display image in mail, U have two options:
    Either attach image in mail as suggested by Prateek.
    Make Image url a absolute url.
    Usually Sites send email with absolute ur, When u read email, ur browser gets the image and render the content along with image.
    Thanks,
    Nitin.

  • I cannot send dng images with the Adobe emailer?

    I am unable to send my dng images as email attachments using the Adobe emailer.  I get a message telling me that dng images cannot be converted?  What do I need to do to send them using the Adobe email?
    Thank you.
    Dwight

    You need to contact your ISP and find out what you need to use as your out going email server SMTP Server is.  Is should be the same as the one you use on your email on your PC (Windoze or Mac). if you are using gMail they have a guide for setting up your email on a email client.

  • Can i send images by email as attachments rather than embedded in email

    can i send images by email as attachments rather than embedded in email

    How the email message looks in Mail is fairly irrelevant to how it will look to the recipient.  An image attached to an email message is an attachment regardless of how the client displays it.  Some will display it inline, others as an icon in a list of attached files.  Regardless, it is an attachment and should be capable of being opened, saved to another location, etc.
    Unfortunately, some Windows email clients (*cough* Outlook *cough*) are absolutely crippled when it comes to email standards, and make it difficult for recipients to view or save some attached images.  You can better ensure success with Outlook by using Windows-friendly attachments and only sending plain text email, rather than HTML email.  However, Outlook is still Outlook, and it does not play well with others.
    If you must communicate with people who use Outlook  try uploading your photos to an album on Picasa, Flikr, Shutterfly, etc, and then send people a link instead.  Or convince them to use a real email client, like Thunderbird.

  • How can i send a image of a page by email?

    I have a kobo vox image to send to someone by email.     How can i do this?                     Can any one help?

    Hi cyasetoud,
    That really depends on the email client that you're using, but attaching a file is usually a pretty straightforward operation. For example, many use a paperclip icon for attachments. Please check the Help for your email application for information about attaching files.
    Best,
    Sara

  • Problem in sending images in Email

    Hi,
         I am unable to send images in Email.
    My template jsp is as :-
    <img src='<%=getServletContext().getRealPath("/images/logo.jpg")'%>
    In Email its not displaying .
    Please help..
    Thanks

    <img src='<%=getServletContext().getRealPath("/images/logo.jpg")'%>
    Above code is not displaying image coz when browser is rendering email content, It's expecting logo.jps to be present in image directory relative to browser temporary folder, Which is not..
    If u wan to display image in mail, U have two options:
    Either attach image in mail as suggested by Prateek.
    Make Image url a absolute url.
    Usually Sites send email with absolute ur, When u read email, ur browser gets the image and render the content along with image.
    Thanks,
    Nitin.

  • Sender's image no longer displays in received email

    I have become fond of seeing the images of people that I have loaded pictures of into my Address Book but, recently (not sure when it started), some sender's images are displayed and some are not. Even messages that I cc to myself have my own picture displayed in some messages and not in others. It seems quite random, actually. I see the same behavior in Leopard and Snow Leopard (with the OS 10.6.4 update installed).
    I have tried rebuilding the mailboxes, repairing permissions, re-importing my Address Book database, but nothing has worked. I have seen some threads reporting similar behavior on the iPhone.
    Any suggestions or insights?
    Thanks,
    Robin

    Google updated the plugins recently to correct this problem:
    https://support.google.com/nikcollection/answer/4400822?hl=en&ref_topic=3001406
    Version 1.109 (December 11/2013) is the latest:
    Fixed black or white tile artifacts that might have occurred after returning to Photoshop from plug-ins
    You can find out the version you have installed by launching Photoshop:
    On Mac: Select Photoshop>About Plug-in>Analog Efex Pro… (or any other NIK Plug-in)
    On Windows: Select Help>About Plug-in>Analog Efex Pro… (or any other NIK Plug-in)

Maybe you are looking for

  • Synchronous Send Step

    Hi Can someone tell me about sync send step in detail because in my scenario I am using a sync. send step and the other end is oracle database which uses a SP(stored procedure) for updation. problem is that I am able to see updation process successfu

  • Conditions: Variables on date key figures

    Dear Sirs, I am trying to create a condition on a key figure of type date (subtype: dats). I want the user to select a date interval for this condition, using variables. The problems seems to be that the variable input screen thinks the user should e

  • URGENT: Document help

    Hi folks, I need urgent help from u guys. I have involved in one small project,development work complete successfully. Now I need to prepare a PPT for this project (what actually we have done,what's client expectations,what are the learning's from th

  • Struts portlet url posting

    Hi all, I am experimenting with a struts file upload portlet, trying to work around the fact that file upload directly to the PPE is not supported. Things work (quite) fine when I use the Struts HTML form (instead of the PDK Struts HTML) tag for the

  • Expdp

    hi, while data pump export i am getting the following error C:\>expdp parfile=dp1.par; LRM-00109: could not open parameter file 'dp1.par;' LRM-00113: error when processing file 'dp1.par;' please give me the solution for this