Questions tagged [mime-message]

For questions regarding a Message that is specified in the Internet standard Multipurpose Internet Mail Extensions (MIME).

A Message specified in the Internet standard Multipurpose Internet Mail Extensions (MIME).

RFCs specifying the MIME standard:

  • RFC2045 – Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
  • RFC2046 – Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
  • RFC2047 – MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text
  • RFC4289 – Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures
  • RFC2049 – Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
  • RFC4288 – Media Type Specifications and Registration Procedures
254 questions
3
votes
1 answer

Creating S/MIME from MIME?

I don't completely understand and some documentation or help would be appreciated greatly :) Using PHP I create a MIME by using ezcomponents Mail object. But what I do not understand is: Do you create an S/MIME message from a original MIME by…
Etienne Marais
  • 1,660
  • 1
  • 22
  • 40
3
votes
1 answer

Gmail not threading replies sent via API

I'm trying to send replies via the Gmail API in Python and can't seem to get the Gmail web client to thread the messages. However, they are being threaded in Outlook, which is very strange. Here's how I'm creating the messages: def…
Adam Bowker
  • 193
  • 9
3
votes
2 answers

How to create a image from MIME content?

I am trying to write a small console app using C# on the top of .NET Core 2.2 framework. The console app will make an HTTP-request to external API to get multiple images. I am able to make the request to the server and get the response. However,…
Junior
  • 11,602
  • 27
  • 106
  • 212
3
votes
1 answer

How to check MimeMessage for attachments in JUnit or Mockito?

I have a Spring web app that sends generated PDF files via email using MimeMessage and JavaMail and I want to create test cases using JUnit and Mockito to check if the attachments exists. Is it possible to test this? And if so, whats the best…
3
votes
1 answer

java.io.IOException: "text/plain" DataContentHandler requires String object, was given object of type class [B

When I'm trying to send one attachment, what ever zip file or text file, code is working fine but when trying to send two attachments one is Text file and other one is Zip file, it is throwing error. I have tried number of ways but still no luck.…
Bobby
  • 37
  • 5
3
votes
3 answers

Attach PDF to e-mail

What I want to do is attach one or several PDFs to an e-mail. I am currently using MimeMessage to send emails which works flawlessly. The problem however is that I have no idea how to attach files. (More specifically PDFs I create using itext). Any…
whirlwin
  • 16,044
  • 17
  • 67
  • 98
3
votes
1 answer

how to send a file like word via RabbitMQ

I need to be able to send files like pdf or word via RabbitMQ (I think answer might be more generic meaning not specific to RabbitMQ but any broker I am however using RabbitMQ). Is there are way to send them as mimes or do I need to convert to…
Shahzeb
  • 4,745
  • 4
  • 27
  • 40
3
votes
1 answer

Android JavaMail cancel sending email

I have impelemented send email via JavaMail on my app. But How to cancel sending email? The problem is that while sending large email the connection was closed and app is crashed. JavaMail cannot be close transport object.I'm sending msg like that:…
nAkhmedov
  • 3,522
  • 4
  • 37
  • 72
3
votes
1 answer

Java mail sender sends duplicate emails

I have an issue with JavaMailSender which sends double or triple messages. In Controller: while(size > 0) //# of emails I want to send, for example 5 { Item item= itemRepository.findFirstBySentFalseAndValidTrue(); //getting only emails that are…
Damian
  • 461
  • 1
  • 7
  • 18
3
votes
1 answer

Multiple signatures in S/MIME

Is it possible to sign a MIME email (RFC 2822) multiple times using S/MIME, so that all signatures are verifiable and retrievable?
m0sa
  • 10,712
  • 4
  • 44
  • 91
3
votes
1 answer

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…
mP.
  • 18,002
  • 10
  • 71
  • 105
3
votes
1 answer

How to convert byte[] to message with javax.mail library

Right now I have emails stored in a database, and I need to be able to retrieve them and download attachments If they have them. Currently, I am stumped on a way to convert the byte[] which I have stored the email as into a MailMessage or…
user3772418
  • 49
  • 1
  • 2
  • 9
3
votes
2 answers

How to send mails to a distribution list using JavaMailSenderImpl

I am using org.springframework.mail.javamail.JavaMailSenderImpl for mail sending and here is the piece of code which is working fine. emailArray is an array of 5 recipients email ids. But I want to use a DL for this rather than creating an array of…
Amaresh
  • 331
  • 2
  • 5
  • 14
3
votes
2 answers

MimeMessage email get reply body without the previous Correspondence

In my server I'm receiving emails constantly from gmail.. I receive them as MimeMessage type. What I'm doing so far is extracting the body text with the method: private String getText(Part p) throws MessagingException, IOException { if…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
3
votes
1 answer

Setting Content-Type for MimeMessage?

I have one confusion about content type of mime message. Say I have a mime message. It is a multipart message and the body parts are like this Mime body part containing plain text, html text(like some letters in bold in body) Second mime body part…
M Sach
  • 33,416
  • 76
  • 221
  • 314
1 2
3
16 17