Questions tagged [eml]

Filename extension used by many email clients including Microsoft Outlook Express, Windows Mail and Mozilla Thunderbird. The files are plain text in MIME format, containing the email header as well as the message contents and attachments in one or more of several formats.

241 questions
3
votes
0 answers

How to open .eml file instead of downloading with javascript

I am working on a requirement where I need to open html formatted email after clicking on a button in a html page. After reviewing different technics I found below solution which creates an .EML file. funcion openEmail() { var…
3
votes
1 answer

Create eml file in memory without saving it on disk

I'm working with C# on Windows servers for a web application stored on the IIS Server. I would like to create an eml file from : an html content (string) some attachments that are loaded in memory a string subject string recipients string…
Kirjava
  • 226
  • 1
  • 11
3
votes
2 answers

How to parse an EML format file and extract meta-data information

I have an EML file with some attachments. I want to read the text content of the EML file extract the meta-data, such as: sender, from, cc, bcc, subject. I also want to download the attachments. With the help of the code below I am only able to…
DGS
  • 475
  • 1
  • 4
  • 16
3
votes
1 answer

Perl: Can't use 'defined(%hash)'

On MacOS 10.13.6 High Sierra, I want to convert a list of mails that I have exported in eml format files (with Thunderbird), to HTML files. To perform this, I have installed the tool called "mhonarc". But at the execution, when I do : mhonarc…
user1773603
3
votes
1 answer

AttributeError: 'str' object has no attribute 'copy' when parsing Multipart email message

Python 3.6 email module crashes with this error: Traceback (most recent call last): File "empty-eml.py", line 9, in for part in msg.iter_attachments(): File "/usr/lib/python3.6/email/message.py", line 1055, in iter_attachments …
Larrax
  • 87
  • 1
  • 8
3
votes
1 answer

How do I preview EML file in a web application?

I need to be able to preview EML file in a web application built on Angular/.Net core api. I was able to find a service here by microsoft that previews Word, Excel, or PowerPoint documents only. I can embed this page within the web app and preview…
3
votes
0 answers

Creating .eml file from dynamic web components (React/Vue/Angular) [string of compiled html]

The title may be confusing, so let me expand a little more: My goal is to have a front end framework/(library), like React, Vue, or Angular, that has a normal user interface stuff, such as the user inputting data or an uploading an image to a…
Kenny
  • 2,124
  • 3
  • 33
  • 63
3
votes
0 answers

Python email library - Parsing message/rfc822 attachments

I'm using python 2.7 and trying to parse emails that are being forwarded as an attachment to an inbox. I can't seem to parse the headers/email of the attached message. I see it as 'message/rfc822' but when i try to parse it, it shows empty. I pull…
callingconvention
  • 183
  • 1
  • 1
  • 8
3
votes
1 answer

javax.mail: Get nested attachments in EML attachment

I have an existing code that downloads and processes some emails correctly. The email to process must have one or more xml as attachment, now I'm migrating this process from the current standard mail account to a certified system that wrap that mail…
Alessandro
  • 4,382
  • 8
  • 36
  • 70
3
votes
1 answer

Python: Modify Values in eml file (email header)

I would like to have a changes of "To" and "From" field's email addresses using Python. So far now I did following which is working for reading required field. Any one please suggest, How to make change in them. from email.parser import Parser fp =…
jaymin581
  • 165
  • 3
  • 15
3
votes
0 answers

Modify CDO.Message and save it to a file

Following Ries Vriend's answer in regards to loading CDO.Message from EML file, I'm trying to modify the message's body and attachments and save it back to a file (while keeping the original format of the file). I wrote the following, which doesn't…
elad-ep
  • 333
  • 1
  • 9
3
votes
2 answers

Converting EML's to MSG's

We have a webapplication that allows users to view emails in a table and double click on them to open them in outlook. For that we use the (simplified) piece of code: var email = Session.OpenSharedItem(filename) as MailItem; This works for .msg…
Antoon Meijer
  • 89
  • 1
  • 9
3
votes
1 answer

Returning a MimeKit message as a file to the browser

I'm trying to return an eml file via the browser to a user. Thing is, there is no static eml file - the page builds it. I can build a sample message in MimeKit using the following method public FileResult TestServe() { var message = new…
roryok
  • 9,325
  • 17
  • 71
  • 138
3
votes
1 answer

Reading EML files from Windows SMTP service. Any reason not to use StreamReader?

I'm going to be reading and parsing the EML files dropped by the Microsoft SMTP service. I am a newbie to using the various stream classes. The implementation I have seen that parses these files uses a variation on System.IO.Stream to read byte by…
Chris Simmons
  • 6,924
  • 5
  • 31
  • 47
3
votes
1 answer

PST handling using Ruby

I am in the process of writing some code to extract information about the contents of PST files such as the total messages, sub folder listing, number of messages per folder, email subject name and sent/received date for each message. It is a work…
Craig Hendley
  • 239
  • 2
  • 4
  • 14
1 2
3
16 17