mime

How to encapsulate image files into emails ?

Hi, Can someone explain me how to create "simple" email with embedded images files ? I know that there are tons of RFC that explain it but I don't really succeeded to do it. I have to build the body text of the email programmatically, without using any framework. Don't ask me about the language is used... Images are base64 encoded. Co...

Get enveloped data from MIME

Hello all I am receiving some encrypted data on a S/MIME message (not an e-mail, but SOAP request over SSL) and I need to get it out of the package. Does anyone know of any C/C++ interface to do it? I need something that just strips the SMIME headers and leaves me with the enveloped data, which I would then decrypt to get the MIME ...

Check if a browser supports a specific MIME type?

How can i check if the browser supports a specific mime type with php? ...

How do I reply to an email using the Python imaplib and include the original message?

I'm currently using imaplib to fetch email messages from a server and process the contents and attachments. I'd like to reply to the messages with a status/error message and links to the resulting generated content on my site if they can be processed. This should include the original message but should drop any attachments (which will ...

Generic MIME type for a MIME entity?

Is there such a thing as a generic MIME type for a MIME entity? A MIME entity would be something that consists of a header section, followed by a blank line, followed by a body section (with CRLF line endings) according to RFC 2045/2046. An example could be the following: Header1: Some list Header2: of headers Arbitrary body content ...

Slow upload speeds using HttpClient, Jame's Mime4j and HttpPost method of posting

I'm uploading a multipart chunk of data using HttpPost and feeding it into an HttpClient objects execute method as follows: HttpPost loginPost = new HttpPost(LOGIN_URL); List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("_email", mEmailAddress)); params.add(new BasicNameValuePair("lpassword",...

How can I find out a files "mime-type(Content-Type?)"?

Is there a way to find out the MIME-TYPE (or is it called "Content-Type"...) of a file in a linux bash script? The reason I need it is because imageshack appears to need it to upload a file as for some reason it detects the .png file as an "application/octet-stream"… I'v checked the file, and it really is a .png $ cat /1.png ?PNG (wi...

sending mail with attachment in c++? (or How do I construct a MIME encoded email message that I can send to SMTP?)

is it possible to do it without any third-party lib. i can send mail to gmail with a simple socket functions. i can send files one computer to another too. But i need to send with attachment to any mail account... can it be done with smtp? (i searched in here but the answers, that i looked, are not in c++ or not on windows or not ope...

About multipart/form-data?

Is there another multipart/form-data like enctype but not form-data? EDIT Especially,what others are used in web applications? ...

PHP - Opening uploaded DOCX files with the correct MIME TYPE

I have users uploading DOCX files which I make available for download. The issues we have been experiencing is the unknown mime types of DOCX files which causes IE to open these docs as Zip files. It is running on a Windows/IIS server. Because this is a shared host, I cannot change any server settings. I was thinking that I could just...

Format of EML files used by System.Net.Mail.MailMessage and Microsoft SMTP Server

I'm trying to wrap my head around the EML files I see generated by System.Net.Mail.MailMessage and generated or consumed by Microsoft's SMTP Server. I've been reading RFCs 5322 and 5321 and I'm trying to make sense of the format. Granted, the majority of the EML files I see are adherent to the message format described in 5322 (or 2322 ...

MIME parser for iPhone app

Hi, Can anyone recommend MIME parser for iPhone? My app should receive message in this format and parse the text and attachments. I found some open source libraries like libvmime but i run into compile problems on Mac/iPhone. Any idea is welcomed! Thanks ...

Response Content Types

What are the response content types for .docx, .xlsx, .pptx, .zip etc. ? Can you give me a list of all content types ? ...

email MIME Content-Disposition hyperlink

Hi i an building an mbox file from a db blob and would like to add an hyperlink to the Attachement header I am building the header like this msg=email.message_from_string(blob) msg["Content-Disposition"]="attachment; filename=filename.txt;" What do i need to add to add a http or ftp hyperlink for the filename? Thnks ...

Problem with Office 2007 MIME Types, they download as *.zip in IE all other Browsers ok...

We have a custom CMS running on Tomcat, we added the following config: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx I can download those Excel 2007 Files without Problems in FF, OP, Chrome, Safari. But in IE I get a Download Box for a ZIP File. I changed IE8 Settings to recognize Filetypes from Fileextension...

What is wrong with this mail header text?

The following $header is being sent via PHP's mail($to,$subject,$content,$header) command. The mail arrives and appears to have an attachment. But the mail text is empty as is the file. I think this has something to do with line spacing but I can't see the problem. I have tried putting the contents (between the boundaries) in $contents ...

Mime parser & composer for C language?

I am not going to use C++ or Java, but I can not find a MIME C library. Does somebody know? ...

Are there any library's for .net that will help sending and receiving MTOM over a restful service?

I am working with a service that is sending MIME attachments over an http request response are there any .net library for this kind of server? All I seem to find want to deal with email messages. ...

Upload a Photo to Facebook with REST API and Ruby

It's much harder than you'd think: http://wiki.developers.facebook.com/index.php/Photos.upload The tricky part is how to create the MIME multi-part message in Rails, which Facebook requires. I'm also using a Ruby Facebook API gem (mini_fb) which signs my other requests, and in addition to having no idea how to set up the MIME multi-par...

What are the valid characters for a Mime Multipart message ContentId "CID:" ?

From reading the RFC it appears that CID can/must only contain characters from the same set as those permissable by a regular URI. Is this correct. Im asking because I wish to writeup a simple helper that takes a CIDs prefix and adds a counter when generating CID for mime multitypes attachments. ...