JavaMail - HTML with images - Images show up as both inline and attachment

Hi,
I am writing a program to send email which have
1. HTML template which references images via the content-id mechanism
2. A PDF document
The mails are being rendered properly in Outlook, Gmail and Yahoo (the images show as inline and the PDF as attachment), however in hotmail the images are showing up as both inline and as attachment.
When creating the email using JavaMail I am using the following structure
...multipart/mixed
......multipart/related
..........HTML Code
..........Images
......PDF file (as a MimeBodyPart)
Is there something which I missed here or do I need to live with the way hotmail renders the email.
Thanks.

Yes the disposition is being setup correctly .. here is the dump of the mail (without the base64 encoded data)
MIME-Version: 1.0
Content-Type: multipart/mixed;
     boundary="----=_Part_0_17459938.1279571019577"
------=_Part_0_17459938.1279571019577
Content-Type: multipart/related;
     boundary="----=_Part_1_13205705.1279571019612"
------=_Part_1_13205705.1279571019612
Content-Type: text/html; charset='iso-8859-1'
Content-Transfer-Encoding: 7bit
HTML code here..
------=_Part_1_13205705.1279571019612
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename=Img01.jpg
Content-ID: <Img01>
base64 dump here..
------=_Part_1_13205705.1279571019612
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename=Img02.jpg
Content-ID: <Img02>
base64 dump here..
------=_Part_0_17459938.1279571019577
MIME-Version: 1.0
Content-Type: application/pdf; charset=ISO-8859-1; name="Test.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Test.pdf"
base64 dump here..
------=_Part_0_17459938.1279571019577--

Similar Messages

  • When i attach my iphone 4 with computer it shows one of the USB devices attached to this computer has malfunctioned and windows does not recognize it,now what can i do ..plz help me

    when i attach my iphone 4 with computer it shows one of the USB devices attached to this computer has malfunctioned and windows does not recognize it,now what can i do ..plz help me

    I would first try unplugging All the USB devices plugged into your computer, and then plug back in just the iPhone and see if that is recognized.  Also, do you have the latest version of iTunes for Windows installed on your PC, as you need to?
    Hope this helps

  • I'm in a multi-page document, how can i rearrange the pages or insert blank pages in front of pages? Also, is there a way to show the ruler both horizontally and vertically?

    I'm in a multi-page Pages document, how can i rearrange the pages or insert blank pages in front of pages? Also, is there a way to show the ruler both horizontally and vertically?

    Not on my document. I have a 7 page document open. The "flashing vertical bar" is at the top of page 3. I have the thumbnail view showing. I click page break and two blank pages are added to the end of my document. I have to scrool thru the pages to see that the 2 pages were added as they do not appear in the layout view... I'm not sure if it is inserting a "section" as it adds two blank pages.. But I am clicking on "INSERT PAGE BREAK".. So guess there are still a lot of bugs to fix..
    Thanks again

  • How to export PDF to HTML with JPEG image format (not PNG)?

    Hello,
    When I export a ".pdf" file to ".html", using Acrobat 11 Pro, the program creates a subdirectory with ".png" image files.
    I need these images to be in the ".jpg" format, not ".png".
    Do any of you know how to change this setting? I am assuming that it is not a permanent default...
    Thank you,
    brivera0

    Alas, I checked on my Acrobat XI before posting. That setting was removed.

  • Email Shows Up in Both Work and Personal Account

    I use a Blackberry 8820 for my work email. I just set up a personal email account on the Blackberry. When I receive
    personal email, it shows up in both my work email inbox AND my personal email inbox.
    Anyone know how I can stop my personal email showing up in my work email inbox?

    I tried to get my head around this as well the first days, as my Gmails appeared in my @operator.blackberry folder and vice versa. After I deleted my POP Gmail box and created a new one with IMAP it didn't re-occur. Possible, it could just have been outgoing messages that turned out in the wrong box, which I guess would make sense since the outgoing message service option will affect all mailaccounts, even though the setting is accessed from one of the boxes. Why this is so, I would like to know as well
    - hope this make sense to you 

  • Sending emails with both body and attachment to multiple recipients

    I have a requirement to send email with body and attachment to multiple recipients.
    Body of the email is a standard text. It is a proxy-to-mail scenario.
    Here is what I've done: (I'm using PI 7.11)
    One mapping from Source to Target structure (format of the attachment text file)
    Second mapping from Target Structure to Mail Package format.
    In the second mapping I'm concatenating the output of first step into "Content" of the Mail Package.
    "XIPAYLOAD" is the message protocol used.
    The "Keep attachments" option in the Mail adapter allows only to send "Content" as attachment or as body of the email.
    How to send an email with both content and text?
    The other problem is even with using ASMA, I can't send email to multiple recipients. I can only do CC and TO for 1 person each - a total of 2. Although I can resolve this by creating mailing lists, it is better if this can be addressed in PI.
    Thanks for any input you can provide!
    Edited by: crazylad on Jan 18, 2012 3:39 PM

    Thank you for your response Mikael.
    For the first question, I was able to find the solution in the following blog:
    XI Mail Adapter : Dynamically building attachment and message body content using a simple UDF
    (I just needed to search with the right set of key words )
    The key is to set the "Content Encoding" as "None" in the mail adapter. If this is not done, the mail will be sent with an attachment - untitled.bin containing both the mail body and the attachment text. Also, don't forget to check the "Keep Attachments" checkbox in the mail adapter.
    Multiple recipients could be added by separating the email IDs with a Comma. I have used ASMA to set the recipients.

  • Airport Extreme with NTFS external HD solutions for both Mac and Windows

    I recently bought an apple extreme when friends who have them say you can shared both printers and external harddrives really easily. However, it seems I am unable to share my many NTFS harddrives. I see after searching forums that it does not support NTFS but does FAT32.
    One day I will convert all my home laptops to mac's but at the moment I am using XP and Vista for the time being so converting them to the apple format is not an option.
    The problem i have is that if I convert them to FAT32 then I will only be be to have ISO's that are less than 2gig in size, an only be able to format up to 30 gig. If I have a 500 gig disk I'll be left with 470 gig of wasted space that cannot be used.
    Can anyone suggest a good solution for me? perhaps someone has worked out how to format FAT32 greater than 30gb. or perhaps there is another disk format that would be better to use and can be read/write from XP/Vista PC as well as being recognised by Airport extreme. Any help would be good as I am reluctant to get a refund on it, but will have to if I can get it to work with large files/partitions.

    I think I answered my own question. I found this on the web:
    http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm
    Seems to suggest that using this third party exe to format it instead of windows inbuilt one will allow for partitions greater than 32GB. So this looks the way to go. And the 2GB limit per file is just for FAT16 not FAT32 apparently, but even if it is I only have a few iso/video files bigger than 2 gig so will just use a splitter on them.
    Hope this is useful to someone else

  • Messages aren't showing up on both iPhone and iPad Mini like they used to -

    everyone in the Apple Store said that it's probably the software on the Mini.  I already toggled on and off. also reset the Mini.
    I don't have time to make an appointment with the genius bar, so I thought I'd check here.  Thanks!

    Two other things I would suggest are
    1.  Log on to the Apple ID website and make sure the email associated with your Apple ID is there and is consistent with the email addresses in the iMessage app on both the iPhone and iPad.  If you update or change this information, be sure to log out of iMessage on both devices, and then log in again so the devices have the updated info.
    http://www.apple.com/support/appleid/
    2.  Make sure you've added your email address to the list of "Receive At" addresses on the iPhone.

  • HT201210 I am trying to restore my I phone but I get a message that says "The Iphone "Iphone" could not be restored. The device cannot be found. Now my phone won't work at all. The only screen image it shows is the Itunes icon and a USB cable.

    I am trying to restore my Iphone but get a message that reads "The Iphone "Iphone" could not be restored. The device cannot be found.
    Can anyone help?
    Thank you.

    That screen indicates that you need to connect the iPhone to your computer with the USB cable and restore from iTunes
    Allan

  • Images darken after editing in both Lightroom and PS

    My apologies if this topic has been recently addressed, I've canvassed both Adobe's online documentation as well as several archival pages of this thread without finding mention of it.
    I'm shooting JPEGs on a D70, importing them in Lightroom. LR has been working fine for me, except when I do adjustments on a jpg and then export it to PS with the 'Export Copy with LR Adjustments' option. The image shows up fine in PS as a .psd, and I can do all my editing on it fine, but when I then save it as a jpg, the resulting file will look dark and desaturated when viewed in Windows Picture and Fax Viewer, or when uploaded online. However, when viewed again in PS, the color looks fine.
    This occurs whether I export the file in ProPhoto or AdobeRGB color.
    Again, this issue only occurs if I edit the same file both in LR and PS. Files edited exclusively in either LR or PS look fine when saved as jpgs.
    I'm a little baffled here, and obviously it's a hindrance to my workflow not being able to do edits in both programs, so any help would be greatly appreciated.

    Jao,
    Thanks for taking the time to reply. I've come back to checking LR vs PS and the images look so much closer than they did last night. These are the same images without any further adjustments or change in the application prefs. I'm using two monitors but I've been viewing the images from both applications on the same monitor. My PS prefs are set-up correctly and my monitor was hardware calibrated less than a week ago.
    The only thing I can put this down to is that I launched LR after changing my main monitor from one to the other in the System prefs (where you drag the white top bar across to specify which is the start-up monitor) whereas last night I seem to remember having LR already launched before I switched monitors. As the monitor profiles are slightly different for each monitor because they're not the same LR must have adjusted the way it displayed according to the monitor profile at launch time. This is my best guess.
    Anyway, now I have a really good match from exporting JPG's from LR to a colour profile of sRGB so I didn't have to do any kind of conversion/adjustment/batch process in PS which is a relief as I've got 188 images I need to get printed at a lab at various sizes.
    Cheers
    Nas

  • All my external Hard Drives stopped showing up in both Finder and Disk Utility

    Hello there.
    i have this strange issue that occured just out of nowhere without me (knowingly) having contributed anything to it.
    yesterday i launched my iMac and my external firewire drive wasn't showing up in neither the finder nor on the desktop. i instantly thought about a hard drive crash, but soon tried other things to evaluate (or not) my guess.
    for instance, i unplugged the drive waited a few minutes before i plugged it in again. since this iomega drive is also equipped with a regular usb port i also switched cables and tried connecting it via the iMac usb sockets as well as via an usb hub without any luck. the drive still won't show up. so i launched the Disk Utility, to see if the drive needs some checking/repairing, but to my surprise it wasn't showing in Disk Utility either.
    thus far i only considered this to be an issue with only this particular external drive, but when i eventually switched on a 2nd external drive (this time an usb drive i use for Time Machine) that drive also refused to show up in either the Finder or the Disk Utility app.
    curious as i was, i then fired up a 3rd and 4th external drive and now had all 4 drives running at the same time. none of which were showing up, just as if they weren't even connected with the iMac.
    this strikes me as more than odd. i've heard about hard drive failures and crashes. they just occur over time. maybe and under some very strange coincidences it is possible that two external hard drives quit their jobs at the very same time, but seriously .... 4 of them?? i hardly think so.
    well, maybe it's the iMac's usb/firewire controller that's causing the trouble, i thought. but then again, my other connected devices (iPhone, iPad, Printer, Scanner, eyeTV) are functioning and get detected just fine as far as i can tell.
    i have no idea what's going on. i dismiss the idea of 4 external drives having crashed all at the same time just as much as i don't think that the iMac's usb/firewire controller has got any issues. re-formatting any of the 4 drives is out of the question and even if i'd consider such desperate measures, the Disk Utility wouldn't let me re-format anything anyhow, because the drives aren't listed there. i wish i could just use my Time Machine to resolve the issue but, as i mentioned earlier, i can't access the Time Machine because it also won't show up.
    please, i need an expert's help here. please, somebody bring back my 4 external drives so i can access them in finder again.
    any help will be much appreciated.
    thank you in advance..
    ..Otis

    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    diskutil list
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.
    If any personal information appears in the output, edit before posting, but don’t remove the context.

  • Issue with long gaps between lines in both Mail AND Address Book

    Hey folks,
    I'm having a weird problem... I've done a bit of research on here but I have yet to find my exact issue... I was wondering if anyone can shed some light on this for me!!
    This problem has been happening in my Address Book app for awhile now, but more recently started happening in Mail - there are long gaps in between lines such as Name, Date, Subject, From, ect...etc... Plus, in Mail, when I hover over the To and From names, the highlight bubble is really large! It's very strange... check out this screen grab...
    I've tried repairing permissions but that didn't seem to help.
    My Mail only did this after quitting the program and starting it back up, but now it does it all the time. Address Book has been having this issue for quite some time.
    Any help would be much appreciated!!!
    Thanks in advance...
    - Joe Ciaramella
    G4 Dual 1ghz   Mac OS X (10.4.4)  

    Ernie,
    Thanks so much for your help... To answer your question, yes I did research those topics but finding things in bits and pieces didn't seem to do the trick. Well, tonight I ran Font Finagler AND I reinstalled Library > Fonts from my OS X install disc... And low and behold, MY PROBLEMS ARE CURED!!!!
    So thanks for giving me the link to those other posts which seemed to have all the info I needed.
    Take care...
    - Joe Ciaramella

  • I am trying to import songs to my new macbook pro from my old computer using home sharing. Both computers say that home sharing is now on but neither show up in each other's library menu. I am logged on with the same apple id for both computers.

    I am trying to import songs to my new macbook pro from my old computer using home sharing. Both computers say that home sharing is now on but neither show up in each other's library menu. I am logged on with the same apple id for both computers. and both are on a stable wireless connection

    Logging into itunes store on each machine wth different Apple IDs is OK Autorising each others machines with the other Apple ID is OK. This is completley separate from Home Sharing
    For Home Sharing to work you need to
    File > Home Sharing > Create Home Share.
    You need to select one of the two Apple IDs you are using and ENTER THIS ON BOTH MACHINES WHEN CREATING THE HOME SHARE.
    Home sharing will then work

  • Spotlight starts indexing after every restart and there is a scrolling delay with both mouse and track pad.

    I had to restart my MBP three time, two after it crashed. Every time Spotlight starts to index the content on my Mac
    which takes two hour. Then there is a delay when I start scrolling, both with the mouse and with the track pad.
    I also notised that after changing the icons with Candybar they still appear unchanged in Launchpad, which makes
    it confusing. Launchpad isn't consitent when putting the apps in aphabetic order, but jumble up some of the apps.
    i don't get back the wab sites after restart as i was to believe I would.
    As Jobs sez; And more thing.
    Well one more might OK, there are more bugs then that, but I to tired to tell them all.
    I have never found so many bug in such a short time (only in two hours with Lion now) with any other OS and I have worked with Macs since -91.
    God help us.

    Hi, me again, more data.
    I have found that some plugins are accessing the internet without my permission.
    And when I went into the plug in menu via the addons options through the Tool Menu option, I found the plug ins there.
    BUT I never installed those plugins, and now they are there and they are accessing the Internet. Here are two images to show the plug ins disabled and yet another image showing them still accessing the Internet even when disabled.
    I then removed them from the system (I did back them up first, just in case).

  • IPhone no longer showing up in (My) Computer and photos no longer synching

    I recently switched from a desktop to a laptop, both of which run Vista Ultimate. The desktop synched fine but the laptop will not sync pictures. I noticed that the desktop shows the iPhone in Computer as a camera but the laptop does not.
    I have:
    1. Uninstalled iTunes and reinstalled iTunes in numerous ways
    2. Manually deleted all references to Apple, Apple Computer, Quicktime and iTunes from the registry and all folders off of the hard drive
    3. I have done a soft and hard reset of the iPhone
    4. I have restored the iPhone to factory from within iTunes
    I know it has something to do with it not showing up in Computer. And if I delete the iTunes driver from Device Manager and tell it to delete the driver from the hard drive, the PC then detects the iPhone as a camera and it shows up in Computer but it no longer shows up in iTunes and I cannot manually copy any files to it
    Any suggestions would be apprectiated!!

    I fixed it!
    You have to go into your Pictures folder and delete the iPhone Photo Cache folder....then it will recreate it and successfully sync!!
    It still does not show up in My Computer but I think if I reconnect my iPOD and enable Disk-Access, that that may resolve that small problem as well

Maybe you are looking for

  • Vendor Scorecard Performance Report

    The Vendor Scorecard Performance Report data is based on dates entered in the PO (dates provided by the vendor to us at the time we cut the PO or even months after the PO is cut-this date can change) as opposed to our expected lead time (lead time pr

  • "WARNING: loghost could not be resolved."

    Hello: When I boot Solaris 10 on an x86 machine I receive the following message: "console login: Syslogd: line 24: WARNING: loghost could not be resolved." Would someone please assist in this matter. Thank you.

  • Link to Reporting Services

    Good day.  Back in SCCM 2007, one could run a report and the results you would be able to share the link with management. Now with SCCM 2012 and SSRS, I do not find a way to provide management with a link providing the results being asked.  If I prov

  • Can not back up anything on icloud

    please help trying to back up to icloud and it says not able to back up i turned wifi on and it dowloads half way then turn off and does not back up all the way or anything at all

  • Any ideas as to when the HTC One (M7) will receive Andriod Lollipop?

    Any ideas as to when the HTC One (M7) will receive Andriod Lollipop?