473,563 Members | 2,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaMail attachments (.msg and .eml)

I've accomplished to write attachments of messages to a file:

message is attachment (original message . getContent())
1) message.getInpu tStream()
2) write stream to file

The problem is;
- when the attached file is a .eml file (Outlook Express) is works
fine. The outputted file is readable for the mail client.
- When the attached file is a .msg file (Microsoft Outlook) is is not
readable for the mail client

Is the InputStream formatted to produce an eml file format?
Can anyone tell me how to save a attached .msg file?
Thanks in advance
Jul 17 '05 #1
0 4920

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5919
by: John P | last post by:
Hello, I'm building email messages and attachments via the JavaMail API, which are then sent via sendmail. The attachments are mime attachments of type "application/octet-stream". They are received via fine via lotus notes and outlook, but in outlook express, yahoo, and hotmail the attachment does not appear. Yahoo will even report the...
4
6423
by: Li Weng | last post by:
Hi, I have two questions: 1) If there are more than one attachments, can I still use urn:schema:httpmail:attachmentfilename to get the file names? How? Or I need to use X-MS-ENUMATTS method? 2) After I get the filenames of the attachments, how do I download them to a local folder? Thanks in advance.
1
1309
by: JulioHM | last post by:
Hi all, My question is quite simple. It´s about JavaMail API 1.3 and how it handles file attachments. I've been googling around, but without luck. Well, question is: How exactly does it handle attachments? Consider a MultipartMessage with a 50MB attachment file. As I create the message and pass the file's InputStream to it, does it load...
14
3191
by: Stingray | last post by:
I think this is more of a general IE/HTTP question but I didn't know where to post. If this is not the place for it, please point me to the right group. Thanks. Here's my question: I have an application that reads incoming email from a POP server and saves email messages as EML files, which OE can open and read. I'd like to save these...
2
11192
by: Vikas Gupta | last post by:
I need to extract all information from .eml file without using outlook express. I am able to extract all the information except Attachments. Can somebody please suggest some solution ??
0
2578
by: vidya226 | last post by:
Hi all, I have the following requirement: There is an .EML file saved on my computer and I need to send it as an email.How can I do this? The .EML file could be in plain/text format or html format. It could also contain attachments I found many samples on the internet for sendin emails but did not find any for this particular one.
0
1570
by: sandeepk84 | last post by:
Hi all... I am facing a problem in getting attachments from Yahoo Classic using JavaMail. My program reads the attachments from gmail and Yahoo Beta. But attachments of type pdf or txt from classic Yahoo are having the problem. I use isMymeType function to check the type, can anyone say how the type should be checked for files from classic...
1
17742
by: dansam | last post by:
Hi everyone, My question is how to download emails from a pop server and save them as *.eml or *.mht files to localdisk as oultlook does ? Now what I know is that an .eml file can have images,attachments and all the e-mail formatting in it. So if I use a simple pop3 client to download message it will download the text part of the e-mail not...
1
3792
by: pnd1234 | last post by:
Hi, to everyone.I am doing a maill program that analyses eml file for its attachments. I have to parse those files and extract all the information and even files that are attached with the eml file.I tried to google it but there was no progress. The problem i am facing is that i cant buy any external libraries or so. Plz help me with...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.