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
5
votes
1 answer

Java MimeMessage to eml File with all attachments

I have an incoming MimeMessage in my JAMES mail server. I want to create an eml file dumping the message completely. I tried using the writeTo method of MimeMessage - resulting file contains only the text body of the email. The attachments are not…
Kris
  • 8,680
  • 4
  • 39
  • 67
5
votes
1 answer

Programmatically posting Gmail draft with both HTML and plaintext bodies specified by user

I am automating the creation of Gmail drafts in Python using the Gmail API. I am required to create HTML-formatted emails, but I also personally require creating a plaintext fallback, because it's the Right Thing To Do. I thought I had all of the…
Bryant
  • 622
  • 4
  • 18
5
votes
4 answers

Parsing email body with c#

I have a database table of email called email_archive. The table includes a field called body and another called raw_headers. I want to display the contents of this table on screen using C# (in a SharePoint webpart). I've been trying to find a…
Robbert
  • 6,481
  • 5
  • 35
  • 61
4
votes
2 answers

MimeMessage email wont send with attachments

So I have an email template that sends a form perfectly without attachments. Been trying to add the attachments (grab them from the server where they are temporarily stored in a folder) to the form to be emailed as well. I am working with a…
Stacie
  • 306
  • 7
  • 26
4
votes
1 answer

MimeMessage.saveChanges is really slow

The following test is taking around 5 seconds to execute due to the inclusion of m.saveChanges(). import org.junit.Before; import org.junit.Test; import javax.mail.MessagingException; import javax.mail.Session; import…
Baz
  • 12,713
  • 38
  • 145
  • 268
4
votes
1 answer

Control what DataContentHandler to use for a MimeMessage attachment?

I am creating an attachment to MimeMessage for a Tiff image with a byte array. ByteArrayOutputStream out = new ByteArrayOutputStream(); MimeBodyPart body = new MimeBodyPart(); body.setContent(tiffByteArray,…
JustinKSU
  • 4,875
  • 2
  • 29
  • 51
4
votes
1 answer

Failed messages: javax.mail.MessagingException: can't determine local email address

Hello i keep getting this error after following a tutorial when trying to send SMTP emails using spring boot. Failed messages: javax.mail.MessagingException: can't determine local email address application.properties: #email…
KENDRA SMITH
  • 95
  • 1
  • 1
  • 10
4
votes
0 answers

Multiple addInline() in MimeMessagePreparator()

I want to add multiple images in my mail String text = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, "email-template.vm", module); message.setText(text, true); message.addInline("img001", new…
DavidoVitch
  • 61
  • 2
  • 9
4
votes
1 answer

Java add header in MimeMessage msg

Problem that i'm solving is that when i send mail if the recipient (to mails, cc/bcc) not exist, i don't want sender to get Delivery Status Notification (Failure) mail. The solution that i'm implementing is adding new header in mail…
Mr.Java
  • 369
  • 4
  • 16
4
votes
1 answer

mocking multipart mime request with mockito

I'm pretty new to Mockito and mocking out servlets for testing. I'm having problems mocking out an HttpServletRequest which sends some form data to my servlet as a MimeMultiPart. In my servlet I call request.getInputStream() as…
Ben Glasser
  • 3,216
  • 3
  • 24
  • 41
4
votes
1 answer

How to override default unique boundary string and create our own boundary using MimeMultipart of JavaMail?

I have a web-app which I use which expects a specific boundary string like (“company mime boundary”). I did not find a way to override the default behavior of MimeMultipart, when I do Multipart mp = new MimeMultipart(); A unique boundary string is…
Sandeep
  • 199
  • 1
  • 4
  • 13
4
votes
1 answer

MIME parser test data

I've just wrote MIME parser and tested it on 1000+ messages from my inbox, so looks like it's working well. However, most of these messages are private and I cannot use them in public unit tests or add them to VCS. Are there any well-known/public…
adontz
  • 1,428
  • 16
  • 36
3
votes
1 answer

Display an attached image on the HTML message

I have develop a function in PYTHON that sends emails with one .doc attachment and one image attachment (.jpg) The message of the email is HTML. I want to know how to display the Attached Image on the HTML message....is there any instruction that…
mauguerra
  • 3,728
  • 5
  • 31
  • 37
3
votes
1 answer

MIP SDK Java Wrapper - Decrypting RPMSG Files

We're trying to decrypt emails obtained via the Graph API. Since the Graph API only returns MIME messages and not MSGs, we can't decrypt the messages directly and are now looking for a method to decrypt the RPMSG attachment from the MIME…
3
votes
2 answers

About Java spring MimeMessageHelper send email with images

I have images on my file server which I want to embed into my email. I can send email with local images like this way message.addInline("image1", new ClassPathResource("../../static/images/123.jpg")); but if i want to send email with my file…
user809355
  • 55
  • 1
  • 5
1
2
3
16 17