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.

Similar Messages

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

  • Unable to send PDFs as email attachments

    I have become unable to send PDFs as email attachments when using Firefox.
    Depending on the PDF, I either get the message “There was an error opening this document. The file is damaged and could not be repaired.” or it opens as a blank document. This occus when opening the file with both Adobe Reader and Acrobat Pro. The problem seems to be isolated to PDFs. (I am able to send Word files. If a PDF is zipped before attaching, it can be opened without problem.) This occurs on both an institutional email account and personal (Yahoo) email account. This problem is isolated to Firefox (does not happen in Chrome).
    I have reset Firefox to default settings, as well as reinstalling.
    Thank you.

    Update Adobe® Acrobat® Plug-in for Web Browsers, Version 10.1.13 to version 11.
    Also please update all of your plugins and try again.
    Does this happen when you open the pdf in pdf.js, it is possible to change the default viewer by:
    * [[How to disable the built-in PDF viewer and use another viewer]]

  • Am unable to send photos by email or message

    Unable to send photos by email or message

    Hi,
    Ok, adding your email address to my contact list didn't change anything.
    The good news is that your email from your gmail account did get through. It was marked as junk mail but when I declared it safe, the photo appeared.
    I looked into the message content for the ones that didn't work and I think the photo is actually still part of the data. It is as though the message header has been corrupted somehow. Since it happens with your service provider but not mine, it suggests that your service provider is perhaps corrupting the header.
    I'm not sure how we can get this resolved as the fault could be with Adobe, your service provider or other service providers.
    I think the workaround of using your gmail account is probably the best way to go.
    You do get a lot of snow there. I live in the UK on the south coast near Southampton. All I have seen is a very light dusting of snow and that quickly disappeared. There were a few local accidents due to the icy conditions. I supposed that the snow is part of your life there - for us it is an exception and so we are not prepared for it.
    Brian

  • Unable to send or receive email

    We purchased an iPad with Retina display in Nov 2012, since we bought it, we have had issues with email. We are now unable to send or receive email from Microsoft Exchange server on the ipad. The email locks up when trying to open or send. It has gotten progressively worse. At first couldn't open more than 8 different emails before it locked up, now we can't send or receive any emails. Please help!

    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

  • Unable to send or receive emails on my blackberry curve 9320

    Hi, for the last 2 days i have unable to send or receive emails on my phone, i have contacted vodafone and they have not been able to help. I would also like to add that when i click on OPTIONS  - SECURITY - SECURITY STATUS INFORMATION my 4 email accounts show up, could this be the problem, please help if you have a soloution.
    Kind Regards
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Delete and Resend Service Books
    KB05000Delete the service book for the BlackBerry Internet Service email account from the BlackBerry smartphone
    If you have no CMIME entry, then skip the deletion
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should try deleting and re-adding your configurations for the affected email accounts. Otherwise, you should contact your mobile service provider for formal support...consider that you pay them for your services and formal support, and right now they seem to not be delivering either to you. They even have the power to escalate your case formally up to BlackBerry if they cannot resolve it, but you need to not allow them to fob you off with things like "it looks good on our end"...they are responsible for delivering services to you, you pay them for that.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Unable to send or recieve emails

    I am unable to send or recieve emails on my iphone.

    I turned off my phone and turned it back on and it seems to be working  now.

  • Unable to SEND images in BBM and What's App

    I am unable to send images in BB Messanger and What's App. The SEND oprion does not appear when i try to forward an image to bbm contact. In What's App it shows 'Upload Failed'. Apprears to be some common setting problem on the Blackberry. Any ideas of how to resolve

    Could you explain how you're going about to send an image via BBM?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Email delivery failed. unable to send and receive email for da device 9780 bold

    Hellow, I m using
    BlackBerry® 9780
    smartphone (3G, Wi-Fi)
    6.0 Bundle 863 (v6.0.0.285, Platform 6.5.0.54)
    3G Bands 1,2,5,6
    Cryptographic Kernel v3.8.6.5
    Branding Version: 1.0.99.538J
    Micro Edition Configuration: CLDC-1.1
    Micro Edition Profile: MIDP-2.1
    Micro Edition JTWI Version: 1.0
    Micro Edition Media Version: 1.1
    Micro Edition PIM Version: 1.0
    Micro Edition File Version: 1.0
    Micro Edition Bluetooth Version: 1.1
    Micro Edition Location Version: 1.0.1
    Micro Edition Security and Trust Services (APDU) Version: 1.0
    WLAN Version: 4.2.1.40
    www.blackberry.com
    Now the problem is I have my email {REMOVED} associated with this device. But I m unable to send receive the email
    There is an error I get like delivery faliure please resolve meh and assist me
    Mod Edit: Removed personal information to comply with Community Guidelines and Terms and Conditions of Use.

    Hi and Welcome to the Community!
    divyaan wrote:
    There is an error I get like delivery faliure please resolve meh and assist me
    Sadly, from "like", we can't really understand the error message you are receiving...exact and complete content of any errors presented are always better to help us understand rather than vague hints and such.
    In any event, I recommend this. With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Delete and Resend Service Books (pre-BB10 devices only)
    KB05000Delete the service book for the BlackBerry Internet Service email account from the BlackBerry smartphone
    If you have no CMIME entry, then skip the deletion
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should try deleting and re-adding your configurations for the affected email accounts. Otherwise, you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Unable to send iPhoto by email since changing email P/W

    unable to send iPhotos by email since changing email P/W

    What version of iPhoto and system are you using? Are you using iPhoto as the email client or are you going thru Mail?
    Go to iPhoto's Accounts preference pane and delete the email account.  Close iPhoto, reboot, relaunch iPhoto and add the email account back.

  • Unable to send and receive email for external domain

    Hi,
    I just installed Exchange Server on my 2K8 domain controller. I have set up the send connector and made necessary changes to the receive connector as well. I have updated the DNS records as well on my domain registrar. I can access OWA from outside my companies
    network and is able to send and receive emails for my domain but unable to send or receive emails to any other domain. I have checked the delivery report and it says that the message has been queued on the server. 
    I also did nslookup. Results mentioned below:
    C:\Users\Administrator>nslookup www.google.com
    Server:  localhost
    Address:  ::1
    Non-authoritative answer:
    Name:    www.google.com
    Addresses:  2404:6800:4009:802::1014
              74.125.236.145
              74.125.236.148
              74.125.236.146
              74.125.236.144
              74.125.236.147
    C:\Users\Administrator>nslookup www.microsoft.com
    Server:  localhost
    Address:  ::1
    DNS request timed out.
        timeout was 2 seconds.
    DNS request timed out.
        timeout was 2 seconds.
    *** Request to localhost timed-out
    Any help would be much appreciated!

    Hi hg01,
    According to your description, I notice that you installed Exchange server on a DC.
    It is not recommended to install Exchange server on a DC. I suggest install Exchange server on a member server. More details to see:
    Installing Exchange on a domain controller is not recommended
    http://technet.microsoft.com/en-us/library/ms.exch.setupreadiness.warninginstallexchangerolesondomaincontroller(v=exchg.150).aspx
    About your issue, cannot send and receive externally, I suggest make sure the DNS can be resolved first.
    Then, check whether Outlook Anywhere has been enabled. If not, please enable it on both Exchange server and Outlook client side.
    Last, try to configure both Send Connector and Receive Connector.
    More detailed error message will be helpful for the further troubleshooting.
    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.

  • I'm unable to send and receive email through Apple Mail 4.  I've checked my settings on Preferences, and my password to Gmail is up to date for syncing with IMAP, but it still won't connect.  Suggestions?

    I'm unable to send and receive email through Apple Mail 4.  I've checked my settings on Preferences, and my password to Gmail is up to date for syncing with IMAP, but it still won't connect.  Suggestions?

    I think it's trying to open it in a gMail eMail & is losing your gMail password that it needs log into gMail, but not 100% positive.
    Have you tried Right clicking or Control+click on the eMail link & choose Copy? Works on some, not others.

  • Unable to send photo through email using iphoto theme (designs)

    Unable to send photo through email using iPhoto theme (designs) using the SHARE button.
    Error message:
    Your email did not go through because the server did not reply.
    Check your Internet connection.
    If the connection is working properly, the email server may be down.
    Try sending your email again later.

    Your email did not go through because the server did not reply.
    Check your Internet connection.
    If the connection is working properly, the email server may be down.
    Try sending your email again later.
    Are you using Yosemite and not apple's Mail app? Then you may need to set up an app-specific password: See the post below:
    Re: I am using iPhoto version 9.6 and I can no longer get an email sent with a photo attached. I get an error message saying the email did not go through because the server did not reply. I can send the photo with Mail. Help!in response to Gary Kissler
    This solution is for those of you using 2-step verification for your Apple ID and are using iCloud as the mail server that you are trying to mail photos with.
    I too had this issue. The problem in my case occurred because I had setup 2-step authentication for my Apple ID. If you have done this then you will get the error message "the mail server did not recognize your email/password...". To solve the problem go to:
    https://appleid.apple.com
    Click "Manage Your Apple ID"
    Verify your identity with the device you selected (if this step does not show up then you have not likely set up 2-step authentication and this is not your solution)
    Click Password and Security in the left column
    Click Generate an app-specific password
    Enter iPhoto as the name of the app
    Copy the password and paste this into the password box in iPhoto where you would normally enter your apple ID (in the mail account section in iPhoto preferences).
    And...voila' (I hope)

  • Since Febuary 14th, 2013 we are unable to send and recieve email using our hotmail account on our Iphone. We can get our email by loggin in with our computer but not using our Iphone.

    Since Febuary 14th, 2013 we are unable to send and recieve email using our hotmail account on our Iphone. We can get our email by loggin in with our computer but not using our Iphone.

    Hotmail has been discontinued for some time now.  See:
    http://windows.microsoft.com/en-us/windows/outlook/auto-upgrade-outlook-faq

Maybe you are looking for

  • Safari keeps crashing repeatedly

    It won't stay open long enough for me to go to preferences and clear cache or anything.... all this from attempting to use an Ello invite! here's the error message: Process:         WebProcess [557] Path:            /System/Library/PrivateFrameworks/

  • Mutual authentication for Web services in BPEL

    Hi Guys, We have to call a few web services in bpel and our partners would want us to mutually authenticate the data that is exchanged. So that mean they provide us with a certificate file and we provide them with a certificate file. We have been usi

  • New SO goes through Vehicle Search and finds a match- How is Delivery Date?

    If a new Dealer Sales Order goes through a Vehicle Search and a match is found, I have the following 2 questions: (1) How is the vehicle assigned (2) When Sales Order is created: Will there be an Availability check again How is FDD Calculated

  • SCCM Client Push

    Hi, I have run into a strange issue when setting up SCCM 2012 R2.  I configured the system discovery rule to get machines in the database from AD which was fine but it then did a client push to around half the machines.  I checked the Client Push Ins

  • Flash Player 10.2 latest brings BSOD

    Just upgraded this AM.  Received email from friend with 4 links to youtube vids. Clicked link 1, browser opens, vid plays. Click link 2, browser changes page ... BSOD nv4_disp.dll is the identified culprit on BSOD Happens every time. Uninstall Flash