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
3 answers

Email: how to set a name of the embedded image in C# / System.Mail?

I'm trying to send email with embedded images in it from C#. When I receive this email in Gmail, embedded images do not have proper names - instead, they are displayed as "noname" - see screenshot below Here is how I embed images into…
avs099
  • 10,937
  • 6
  • 60
  • 110
2
votes
2 answers

Altering a multipart/XXX content type without altering the underlying parts

I have an instance of MimeMessage which contains encrypted Parts. The original content type is "multipart/encrypted; protocol="application/pgp-encrypted"; boundary="EncryptedBoundary12312345654654" After decryption of each parts, I want the…
рüффп
  • 5,172
  • 34
  • 67
  • 113
2
votes
0 answers

Extract latest incoming email message body from an reply email

We have created a method for extracting incoming email attachments while reading the incoming emails from the s3 storage and we are using JavaMail API of version 1.6.2 for it. We need to get the latest message from the email without the previous…
Matthew Pans
  • 223
  • 1
  • 3
  • 12
2
votes
0 answers

Java MimeBodyPart wrongfully showing as attachments

I am having a really weird problem when adding more than one MimeBodyPart to a MimeMultiPart. Essentially, if the MimeMultiPart is mixed, then all MimeBodyPart objects are added as attachments, except for the last one, which is added to the body. If…
Jak
  • 178
  • 10
2
votes
0 answers

How to send mail with inline image files and attachment file

In my previous question (it is solved Images in tags don't show on mail when send template using Thymeleaf) I was not able to display inline images in my email. But now, when it all working I find another issue. In my code I use MimeMessageHelper…
reastador
  • 21
  • 1
2
votes
1 answer

I'm getting NoClassDefFoundError at javax.mail.MimeMessage in intellij

I have recently downloaded javax.mail from a website https://javaee.github.io/javamail/ I'm using IntelliJ as my java IDE and I have added the jar file as it shown in YouTube videos. IntelliJ also shows no errors [I mean that the jar is added…
user16349475
2
votes
1 answer

Spring Integration IMAP - cannot get the body of the message

Here is my context.xml - it is working as expected, I can fetch email received to my gmail account But the main problem is that I tried many solution to get the body of the email but I failed the getContent() give null pointer exception with all…
2
votes
1 answer

MailKit - How to get size of each attachment

I want to format attachment info as a string with File Name and File Size I can get FileName in Attachments.ContentDisposition, but Size is null. Is any other way to get? Eg : string.Join(',' + Environment.NewLine,…
Tan Boon Jun
  • 131
  • 12
2
votes
2 answers

Mime Message with mutliple text/html in different locales

I'm currently building up an MimeMessage (Java Mail) and sending it to users, but we support multiple locales. At the time of sending we dont know what language the end user can understand. I was wondering if its possible to attach multiple…
Neil Wightman
  • 1,103
  • 2
  • 9
  • 29
2
votes
1 answer

Convert an attachment of Content-type "message/rfc822" to .msg file

I am using apache's MimeMessageParser to get a MimeMessage. It has another Email type attachment that has body content and inline images. I was able to fetch the email attachment from mimeMessage and I could convert it to .msg file successfully.…
dev_code
  • 33
  • 1
  • 3
2
votes
2 answers

MailKit Set MessageFlag Seen after Append

I send a MailKit.Message Async with the MailKit.Net.Smtp.SmtpClient. Then i put the Mail in the send Folder, but the Message Flag is Unseen. I can't set the messageflag in Message build, only after Append, but i found no way to convert the…
Wolfgang Schorge
  • 157
  • 1
  • 10
2
votes
0 answers

Not getting MIME data properly by using MIMEGetEntityData() method of IBM lotus notes c api toolkit

I am trying to get the MIME data for fetching boundary, headers and body from Note Item. I am using MIMEGetEntityData() method of IBM lotus notes c api toolkit declared in "mimedir.h". But when I implemented it I am getting only HTML body part.…
Dipak
  • 21
  • 2
2
votes
1 answer

'MIMEText' object has no attribute 'encode'

Hi I am trying to work out why I am getting this error. Its got me a little baffled. I am using Python 3.6 logger = logging.getLogger(__name__) message_text = 'this is a test body' message = MIMEText(message_text) message['to'] =…
user1768233
  • 1,409
  • 3
  • 20
  • 28
2
votes
1 answer

Convert Raw string to MimeMessage

I want to convert a Gmail Raw Message into Mimekit.MimeMessage. Can convert MimeMessage to Raw string but can't reverse it. Code for getting Raw message from gmail: var emailInfoReq = service.Users.Messages.Get("me", email.Id); emailInfoReq.Format…
Preet
  • 984
  • 2
  • 14
  • 34
2
votes
1 answer

mime extracted emails back to mbox format

I have a special mbox file where each message in the mbox is has one or more attached messages. These were created from being forwarded as an attachment. I have a perl script that uses MIME::Tools and MIME::Parser to parse that mbox file. It can…
shorton
  • 323
  • 3
  • 13