Help Pls! JavaMail setDataHandler not working without exception
am having trouble sending attachments - although there is no exception thrown. If I don't attach the file sending email works fine. I am using rational development to develop a portlet application.
Any Ideas?
Below is the code:
Properties l_props = System.getProperties();
l_props.put("mail.smtp.host", "*********");
// Get the default Session using Properties Object
Session l_session = Session.getDefaultInstance(l_props, null);
MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
l_msg.setFrom(new InternetAddress(from)); // Set the From address
// Setting the "To recipients" addresses
l_msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
l_msg.setSubject(subject); // Sets the Subject
MimeMultipart multipart = new MimeMultipart();
// Create and fill the first message part
MimeBodyPart bodyPart= new MimeBodyPart();
bodyPart.setContent(body,"text/plain; charset=utf-8");
multipart.addBodyPart(bodyPart);
if ((fileName!=null) && (new File("C:/"+fileName).exists())){
//MimeBodyPart attachment = new MimeBodyPart();
BodyPart attachment = new MimeBodyPart();
FileDataSource fds = new FileDataSource("C:/"+fileName);
attachment.setDataHandler(new DataHandler(fds));
attachment.setDisposition(MimeMessage.ATTACHMENT);
attachment.setFileName(fds.getName());
multipart.addBodyPart(attachment);
// Add the Multipart to the message
l_msg.setContent(multipart);
// Set the Date: header
l_msg.setSentDate(new Date());
// Send the message
Transport.send(l_msg);
Hi,
You can also check if the address and logon data of the Integration Builder is correctly maintained in the
Exchange Profile (http://<IntegrationServer>:<port>/exchangeProfile/index.html
also check if Tcode SLDCHECK works fine.If its a new installation please check if all the post installation steps
are performed correctly.
Regards,
Srinivas
Similar Messages
-
Help, my sound is not working without headphones!
I dropped my phone in the toilet, after quickly receiving it and drying it off, it seemed everything worked fine. I turned it off and on and put in on the charger to see if that worked. But when I tried to use FaceTime, I said I had headphones in while I didn't. Now, it won't work without them. Help me!!
PrintPlaying Audio Publisher details
Issues found
IDT High Definition Audio CODEC has a driver problemIDT High Definition Audio CODEC has a driver problem
There is a problem with the driver for IDT High Definition Audio CODEC. The driver needs to be reinstalled. Not fixed Not Fixed
Reinstall device driver Completed
Check audio deviceCheck audio device
There might be a problem with your audio device. Detected Detected
Potential issues that were checked
Windows Update configured to never install driversWindows Update configured to never install drivers
Driver updates aren't automatically installed when detected by Windows Update. Issue not present
Issues found Detection details
5 IDT High Definition Audio CODEC has a driver problem Not fixed Not Fixed
There is a problem with the driver for IDT High Definition Audio CODEC. The driver needs to be reinstalled.
InformationalDevice information
Name: IDT High Definition Audio CODEC
ID: HDAUDIO\FUNC_01&VEN_111D&DEV_76E0&SUBSYS_103C198B&REV_1003\4&9F7D0F6&0&0001
Error code: 39 -
Help pls ! JSP not working in tomcat
Hi techies,
I have a problem in executing jsp files thru tomcat on windows
The problem is i have my jsp files in a directory, i use virtual directory concept by setting up context in server.xml file to access my jsp, servlets and html files and some jsp files are working properly, but certain jsp files are not working...
It gives an error saying " jsp file not found.." even though the file is in the directory
Can anyone help to come-out of this problem.
Rgds
sathishHi,
if you are trying to map a short name to a jsp page, you should do that in the web.xml file not in the server.xml i think...
Hope this help... -
Do I have to buy Lion or snow lepoard or is there a way to updated from OS X 10.4.11?? I have a new ipod that will not work without the ne itunes, but the new itunes will not install without a newer vesion of Max OS X. Help please
Need to know your Mac model. If it's a PowerPC, the max OS is Leopard 10.5.x. If it's an Intel procesor, you can upgrade to Snow Leopard (for $29) & later to Lion.
*Mac OS X 10.5 Leopard installation system requirements*
http://support.apple.com/kb/TA24950
Leopard is no longer available at the Apple Store *but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753)*.
Installing Mac OS X 10.5 Leopard
http://support.apple.com/kb/HT1544
Mac OS X 10.5 Leopard Installation and Setup Guide
http://manuals.info.apple.com/en/leopard_install-setup.pdf
After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
Cheers, Tom -
My viber is not working without wi fi
viber is not working without wifi
Hello!
Please answer the following questions to help me better assist you:
1. Is this a recurring issue? Does it occur with specific users?
2. When did the issue first begin? After upgrading Viber? After upgrading the operating system?
3. Have you made any changes to your phone’s operating system settings?
4. Where are you from?
5. Who is your provider? Please contact them and make sure you have full access to VoIP.
Awaiting your reply. Thanks for your help! -
Why app store is not working without card details
My app store is not working without entering card details , I lost my olf apple id .
i MADE a new one .What do you mean by 'not working' ? Unless the instructions on this page are followed when creating an account : http://support.apple.com/kb/HT2534
then credit card details will need to be entered before the account can be used to download any item from the store.
If you mean that you are being prompted to review your account then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054
If not then you will either need to enter credit card details (you should be able to delete the card after entering it) or create a new account, and use the instructions on that HT2534 page when creating it.
How did you lose your old account ? If you can't remember its details then try the following :
Recovering a forgotten iTunes Store account name
Apple ID: How to find your Apple ID -
I have a late 2008 Macbook Pro, I am trying to run MW3 but it will not work without crashing a few minuets into the game. The general specs on my computer are a dual processor 2.53 ghz. 4 gb ram and a NVIDIA geforce 9400 (9600 is the alternate card).
Things to note:
I have been unable to update firmware on this computer for about a year now. Im not sure why.
I am running a bootleg copy of Windows XP on this computer, I would not like to spend $149 to get Windows 7 if possible.
any thoughts on the matter would be greatly appreciated, thank you.Why don't you take your 'old' MBP into your local Apple Store and have them check out everything that's wrong with it - and I mean everything? Then, when you get an estimate about how much it would cost to get the machine completely repaired, ask about the Apple flat-rate repair pricing?
It's worth a shot - and with what you may save, you can put in the bank for a new MBP.
Clinton -
F4 help for 0MAT_SALES is not working in BI 7
Hi Gurus,
The F4 help for 0MAT_SALES is not working when distibution channel is selected as (!=02) in Bex Analyzer. But for all other values for distibution channel i am getting values in F4 help.
Since 02 is excluded it is supposed to give values for all other combination. but it not so.
Could anyone of you please help me on this?
Thanks in advance.Closing Thread
-
Help! limewire will not work on my Mac mini 10.4.11 now that i cleaned it
Help! LimeWire will not work on my Mac mini 10.4.11 now that i cleaned it out and had to get the new LimeWire. It keeps asking for Java 1.6 but I'm having no luck. :O( LimeWire was the reason I bought a Mac!
Very weird day in Firefoxland
First on a Powerbook G4 running 10.4.11 I respond to an invitation to upgrade to Firefox 4 (like a lot of others). Long story short, I wind up losing the browser altogether -- including all bookmarks. Why? Because neither the Firefox homepage (or CNET downloads) makes it clear that 4.0 is for OS 10.5 only! Amazing!
Then I try to register to post a reply in a thread that crits Firefox for not making this System Requirements info upfront clear. But the Register page I’m taken to (https://support.mozilla.com/bs/users/register) is in SERBO-CROATIAN!!
Then I try to log into Chat a couple of times and when it’s not CLOSED its a long line waiting and THEN it closes.
WOW!! Are the wheels off the wagon here or what!?! -
I need a refund on my books I purchased from itunes because my ipod will not support them. I was on the apple chat last night and they tried to help but it did not work and they told me my ipod was to old to support them. I was wondering how do I get the refund on them?
Try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
Hi can you help the sound is not working on my Mac I have went into settings and there are no option for interal speaker help
Read the documentation at the links. They won't hurt your data.
Basically smc reset is shutdown, pull your plug for 15 seconds, plug it back in, wait 5 seconds, and reboot. Harmless to you. Resets the smc.
Pram reset is similar but you need to push commnd-option-P-R after the boot chime. Read what does.
smc and pram reset -
Plz help me my facetime not working and no have facetime app
plz help me my facetime not working and no have facetime app
In what way is it not working?
Which iPhone do you have?
Which iOS version?
Where did you purchase your iPhone?
Any info at all about your issue? -
URGENT: Sorry, Expander will not work without the Stuffit Engine...
hallo,
I want to watch a show of myself on Time Warner Cable TODAY live ONLINE while being in Europe, so it is urgent:
sometimes when I try to install a software I get the following error message:
'Sorry, Expander will not work without the Stuffit Engine. Please reinstall the original installer.'
Just now I wanted to install 'Windows Media Player 9 for Mac OS X' and got that error message. Any suggestions?
THANKS YOU!
1 GHz PowerPC G4 (3.3) Mac OS X (10.4.7)"Any suggestions? "
Obviously you need to reinstall Stuffit Expander. Download it from Stuffit.com.
Also, forget about Windows Media Player. It's out dated, and not even made anymore. Download the free Flip4Mac QuickTime plugin from Flip4Mac.com
Hope that was urgent enough... -
The pop-up will not work without locking up
Adobe Muse does not work with the Swedish version in Windows 7. The pop-up will not work without locking up.
I have tried by changing the screen resolutions but the problem continues. What to do?When I try to delete a page in design mode freezes the program.
It is not possible to change tools in the toolbox. -
I have an iPhone 4 and everytime i try to go on safari, mail, or iTunes it does not work without wifi
if your youtube was already running then I would exit out of the application completely by double clicking your home button and then search for your youtube app on the row that will show below and then press and hold down the youtube icon and then click the "X" to exit out of it. Afterwards try to reopen youtube and play a video to see if it works
Maybe you are looking for
-
Transferring my files from my 1.1 Mac pro to my new 5k iMac FireWire to lighting?
i Just ordered the replacement for my antique 1.1 version Mac Pro which is loaded with external FireWire hard drives as well as 3 internal 1 and 2 tearabyte and the one tearabyte SSD boot drive it is of course on 10.7.5 it also has a pair of apple ci
-
Can not properly write on a Speedo Aquabeat 1Go
Hello, I just bought a speedo aquabeat MP3 player, 1Go. I plugged the usb, saw a drive "speedo mp3" and started to transfer my mp3. It went fine, and then I started to listen to them. they were "jumpy, scratchy", the player would not play some few se
-
Full import/export from 10gR2 to 11gR1 / ORA-39083: Object type PROCACT_SYS
Hi, I did a full db export/import (data pump - skipped existing objects) from 10gR2 to 11gR1 (win2003 server). it looks like everything went fine except with this error: is this a serious error? what should I do to fix this error? ORA-39083: Object t
-
PS Script to Automate NIC Teaming and Configure Static IP Address based off an Existing Physical NIC
# Retrieve IP Address and Default Gateway from static IP Assigned NIC and assign to variables. $wmi = Get-WmiObject Win32_NetworkAdapterConfiguration -Filter "IPEnabled = True" | Where-Object { $_.IPAddress -match '192\.' } $IPAddress = $wmi.IpAddres
-
New Mobile Me...
What do we need to do to set up mobile me once it is ready? I already have a .mac acct but curious how this new change will effect our iPod touch?