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.

Similar Messages

  • 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

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

  • After updating to the new ios5 with my 4S , no wifi connection (at home), problem when sending or receiving email

    After updating to the new ios5 with my 4S, no wifi connection and problem when sending or receiving email. I had no issue before the update... I am very disappointed

    Did you already try to reset your network settings in Settings/General/Reset?

  • Problem in sending images

    Hi All,
    I have a problem in sending HTML mail with images.I am able to get the image in my mail if i place the image part and the html part in two different tables I am able to get the image along with the html message but if i use the following code i.e using single table i am not able to get the image someone plase help me to get this done and tell me where am i going wrong?
    Properties props = System.getProperties();
                    props.put("mail.smtp.host", smtpServer);
                    Session session = Session.getDefaultInstance(props, null);
                     Message message = new MimeMessage(session);
                   message.setFrom(new InternetAddress(from));
                    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
                     message.setSubject(subject);
                   message.setSentDate(new Date());
                    MimeBodyPart messageBodyPart = new MimeBodyPart();
              MimeBodyPart messageBodyPart1 = new MimeBodyPart();
              MimeBodyPart messageBodyPart2 = new MimeBodyPart();
    StringBuffer msgStrBuf = new StringBuffer();
    msgStrBuf.append("<html><head></head> <body><table  width=\"640\" align=\"center\"  height=\"293\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#D3D3D3\" ><tr><td><img src=\"cid1:image1\" width=\"640\" height=\"92\"></td></tr>");
    DataSource fds1 = new FileDataSource("webimages\\sampleimage.jpg");
    messageBodyPart.setDataHandler(new DataHandler(fds1));
    messageBodyPart.setHeader("Content-ID1","<image1>");
    String headerbody = "";
    msgStrBuf.delete(0,msgStrBuf.length());
    msgStrBuf.append("<tr><td width=\"640\" align=\"center\"   bgcolor=\"#E6E6E6\" height=\"50\" valign=\"top\"><font size=\"2\" color=\"#4C4C4C\" face=\" Arial,Verdana, Helvetica, sans-serif\">����Dear "+locUserName+","+"<br><br>����"+"Here is the updated status report on your project.</font></td></tr>"+"  <tr> <td bgcolor=\"#E6E6E6\" height=\"100\" align=\"center\" valign=\"middle\">  <table width=\"95%\" height=\"100\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"4C4C4C\" >" +"<tr> <td width=\"200\" align=\"left\" valign=\"middle\"><strong><font  size=\"2\" face=\" Arial,Verdana, Helvetica, sans-serif\" color=\"#FFFFFF\">��PROJECT:</font></strong></td><td><font  size=\"2\" face=\" Arial,Verdana, Helvetica, sans-serif\" color=\"#FFFFFF\"><strong>"+getProjectName+"</strong></font></td></tr>"+"   <tr> <td  width=\"200\" align=\"left\" valign=\"middle\"><font  size=\"2\" face=\" Arial,Verdana, Helvetica, sans-serif\" color=\"#FFFFFF\"><strong>��LAST UPDATE:</strong></font></td><td><font  size=\"2\" face=\" Arial,Verdana, Helvetica, sans-serif\" color=\"#FFFFFF\"><strong>"+concatTime+"</strong></font></td></tr></tr></table></td></tr> "  );
    msgStrBuf.append("<tr> <td  bgcolor=\"#E6E6E6\" height=\"50\" valign=\"middle\"><font size=\"2\" color=\"#4C4C4C\" face=\" Arial,Verdana, Helvetica, sans-serif\">����" +"In case you have any questions, please send an email to <a href=\"mailto: </a>. Our customer <br>����service representative will contact you to address any  concerns. ");
    msgStrBuf.append("<br><br>����Thank You,<br> ���.</font></td></tr>");
    msgStrBuf.append("<tr><td  bgcolor=\"#E6E6E6\" height=\"100\" valign=\"top\"> <br><hr><font color=\"#666666\" size=\"-6\" face=\" Arial,Verdana, Helvetica, sans-serif\">����This is an automatically generated email. Please do not reply to this. If you need further information, contact the email address <br>����given above.<br>����If you wish to change your contact email address, please log in to follow the link and modify your<br>����preferences. You can also change the frequency of email updates in the project settings link.</font></td></tr>");
    msgStrBuf.append("</table></body></html>");
    headerbody = msgStrBuf.toString();
    messageBodyPart1.setContent(headerbody,"text/html");
    // Part two is attachment
    String mailingFileId = "";
    if(locGroupClass.equals("2"))
    mailingFileId = "XL Data/"+getProjectID+".xls";
    else{
    mailingFileId = "GPXL Data/"+getProjectName+".xls";
    System.out.println("mailingFileId :"+mailingFileId);
    System.out.println("locGroupClass :"+locGroupClass);
    String mailingFileNAme = getProjectName+".xls";
    DataSource source = new FileDataSource(mailingFileId);
    messageBodyPart2.setDataHandler(new DataHandler(source));
    messageBodyPart2.setFileName( mailingFileNAme);
    multipart.addBodyPart(messageBodyPart);
    multipart.addBodyPart(messageBodyPart1);
    multipart.addBodyPart(messageBodyPart2);
    // Put parts in message
              message.setContent(multipart);
                       Transport.send(message);
                    System.out.println("Message sent OK.");
                  } catch (Exception ex)
                              ex.printStackTrace();
                        }Message was edited by:
    rameshr

    messageBodyPart.setHeader("Content-ID1","<image1>");The name of the header is "Content-ID", not "Content-ID1".
    Of course, if you used the setContentID method on MimeBodyPart,
    the compiler would find this error for you.

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

  • Problem with Sender in RFx emails

    Hi Folks,
    I have some problems in sender of RFx documents.
    The e-mail of sender is the buyer e-mail, but in sometimes the system
    use the WF e-mail for send smartforms.
    I checked in SOST, and sometimes the sender and email is correct sometimes no.
    Can anyone please tell me how I can solve this issue?
    Regards and tks a lot!

    Hello,
    The SRM system uses Smartform BBP_OUTPUT_COVER to create the content of e-mails sent to bidders.
    I feel current setting is,
    Sender:     E-mail address of the last user to change the document
    You can look at the option of using
    Sender: E-mail of the user created the document.
    Useful Transaction SPPFP / Program RSPPFPROCESS
    Hope this helps.
    Thanks
    Ashu

  • Problem with embedded images in emails

    After downloading OS X Yosemite onto my Mac , the images embedded in my emails have now turned to question marks. How do I re-instate ?

    I ask the sender of the email to use tiny url or other service which are usually free. I also use the select feature but again i get the same results as you.
    Be a Shepard and not an iSheep.

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

  • I have a problems on sending out hotmail email using my ipad

    i hv a ipad 1st generation i set up my hotmail email but i can only rec'd mails cant send out mails thru the acct
    i'm not sure if my setup is correct, pls see below:
    incoming mail:
    host pop3.live.com
    username:
    ssl is on
    port 995
    outgoing mail:
    host stmp.live.com
    ssl is on
    port 587
    <E-mail Edited by Host>

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Send images in email with sapconnect

    hello friends, do you know how include images with sapconnect in a email??, but not as a atachment file, but inside of email´s body.
    thank you at all.

    I thought I might add some more detail for anyone who might be interested.<br>
    I can get the below url and any for that matter to work within the framework of APEX. <br>
    I had to strip the HTML tags so you can see it below. <br>
    I place the below code inside HTML tags, inside the Source Code for the PL/SQL anonymous block of the Send Email notification and it all works great. <br>
    The problem is I need the image to open back into the application on a certain page and I have been struggling with the exact code to make that work.<br>
    <br>
    Any help or comments are greatly appreciated.
    <br>
    <br>
    Here is the block of code without the proper right and left angle brackets:<br>
    <br>
    div align="center"<br>
    center<br>
    table border="0" cellpadding="0" cellspacing="0" width="450"<br>
    tr<br>
    td width="100%"<br>
    a href="http://nl.internet.com/c.html?rtr=on&s=1,33pt,1,c946,chaf,fxb0,cybi"<br>
    img border="0" src="http://www.jupitergreetings.com/images/jg_news/2007/con_head.jpg"
    width="535" height="230"<br>
    tr<br>
    table<br>
    center<br>

  • 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 data through email in brodcasting

    HI All
    i am trying to send the data through email in the broadcasting. but as i execute the broadcasting the message comes
    "Online processing is not possible for user 1"
    further its is saying
    "You want to execute a broadcast setting online. Processing this setting requires switching to another user (for example, with the user-specific precalculation of Web templates for a user other than your user). This is only possible in background processing."
    but i dont know how to login as seperate user. as i have to send the data through my login and not someone else.
    Hope i am clear.
    Please help me on this its very urgent
    Thanks

    The solution to this problem is that:-
    1. this is not an error
    2. it gives the warning beacuse we cannot execute the broadcast setting at that moment (with different users in reciepient list) i.e. we have to schedule the broadcast settings.
    Thanks
    Prat

  • Why is there more problems with sending photos in emails than before. I never had problems before.

    I am having problems that I never used to have sending photos in a Yahoo email. I can't load as many photos and it takes a very long time to load. I always check my attacment by going to the sent file and when I download a photo it is way bigger than the screen and I have to zoom down to 20% in order to see the photo at it's intended size.

    Larry HN~If you want to control the size of the photos select them in iPhoto and export to a desktop folder using the various size options available during export - then attach to your e-mail from the folder
    I followed the above instructions and it worked very well. I found I could click on the photo in iphoto and drag it to the desktop as well and then attach to my email from the desktop. If I choose the export method I can choose a different size as there are 4 sizes to choose from and that seems to work well for Yahoo Mail altho I noticed that the larger size photo I chose the longer it took to download as an attachment in a Yahoo email.

  • Is anyone else having a problem when sending the first email of the day from iCloud?

    For the past week I startup my iMac and send an email via my iCloud account. I finish typing it out, it says the whole time that it is saving the message. I hit send, the task bar comes up and shows that the meessage has been sent. I look in the 'sent' box and nothing! It didn't send and there is no trace of it in the 'outbox' or junk or drafts, not sure if it something that iCloud has had fixed in the 'Drafts' section but my very first email is lost to cyberspace every morning.
    Very irritating when you have just typed a huge email and forgot to copy it to the clipboard (in case) it dissapears. Just happened asgain so I thought I'd post it here and see who else is experiencing it.
    Any help would be

    Anyone?  I was hoping my problem would just 'fix itself'...  but I still have some clients telling me they're not receiving any email from me.  I've since deleted that account on my computers and re-added it.  But still having the same issue. 

Maybe you are looking for

  • Not to able to transfer file from pc to Blackberry Device

    Hi, I  have a problem of text file not getting transffered from PC to device.It shows error.How to solve it,It happens to work in one PC,Is there any configuration change needs to be done. Thanks Rakesh

  • Flex 2-14 speaker noise, driver problem ?

    hi all, recently bought flex-2 14 then noticed that the speaker is making noise like hisss, or static noise, that happen when playing sound, even when the speaker is set to mute or plugging in a headphone, after the sound had played, the noise gone.

  • Organization, Backups, iPhoto, and PCs

    I was in the Apple Store today for training on iPhoto. I still working on understanding the whole Library/Folder/Album thing but my question is this: If I backup my photos to a CD or DVD will the organization that I've created for my photos using Fol

  • How to add header in flash builder 4

    Hi, I want to add header to my code in flashbuilder (sdk4.1) for the purpose of accessibilty . the Flex Theme of my project is Halo(2). and I cannot see any header tags in properties of any of my components. I need something like htm header tags , so

  • Javascript frameworks

    Hi, I am planning to make a web application with a bling value attached to the user interface. After going through prototype, scriptaculous, mootools, highslide etc etc., I am confused. What I want to know is that - which framework is best to work wi