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
51
votes
4 answers

Setting the from name in a javax.mail.MimeMessage?

Currently, our application uses a javax.mail to send email, using javax.mail.MailMessage. We set the From headers of the email this way: Message msg = new MimeMessage(mailSession); msg.setFrom(new InternetAddress("mail@companyxyz.com")); This works…
abeger
  • 6,766
  • 7
  • 41
  • 58
49
votes
3 answers

How do I send HTML Formatted emails, through the gmail-api for python

Using the sample code from the GMail API Example: Send Mail, and after following rules for authentication, it's simple enough to send a programmatically generated email, via a gmail account. What isn't obvious from the example is how to set that…
Andrew
  • 1,423
  • 1
  • 17
  • 26
22
votes
2 answers

How to check mail address is exists or not?

I am sending email through Java using com.sun.mail.smtp.SMTPTransport. I am successful to send the email, but SMTPTransport not giving any error if I send the mail to invalid email address. Is there a way to check that given mail address is exists…
Deepu
  • 2,590
  • 19
  • 52
  • 74
14
votes
1 answer

How To Format Email to Send as SMS

I want to be notify people via SMS when certain things happen. Seems like it should be pretty straighforward. But when the SMS arrives it has the sender and subject line in the message, and I can't figure out how to adjust the message to get rid of…
Batman
  • 8,571
  • 7
  • 41
  • 80
10
votes
1 answer

Does Gmail set an invalid Content-ID header for inline attachments?

Short Version A Content-ID header on an attachment must be of the form local-part "@" domain. Gmail's Content-IDs do not have an @ in them. Is this a real bug, or am I misreading the spec? Long Version I noticed this problem when I tried to resend…
Alex Grin
  • 8,121
  • 6
  • 33
  • 57
10
votes
2 answers

Newline character is not interpreted correctly in MimeMessage?

StringBuffer emailMessage = new StringBuffer("Dear Scott"); emailMessage.append("\r\n"); emailMessage.append("Sending mail over internet"); So here is my formatted content when i inspect in debugger Dear Scott, Sending mail over internet But when…
M Sach
  • 33,416
  • 76
  • 221
  • 314
9
votes
2 answers

MailKit.Net.Smtp.SmtpClient SMTP server does not support authentication

I'd like to use MailKit to send an email through our Exchange server, using the credentials of the process. Building up a System.Net.Mail.SmtpClient and NetworkCredential with domain/username/password works, but while using…
Ezhumalai
  • 163
  • 1
  • 2
  • 10
9
votes
1 answer

Read text file of Email convert to Javamail MimeMessage

I have a text file of the original source of an email(just straight copied from gmail if you click on "View Original" you'll see it). I want to read this file in and convert it into a MimeMessage. If you are curious as to why, I have JavaMaildir set…
Yottagray
  • 2,552
  • 5
  • 32
  • 43
9
votes
1 answer

Send a single email to multiple recipients using Mailkit or mimekit

Please do not mark it as a duplicate question because the solution exists for mail message, not for mailkit. I am trying to send an email to multiple addresses. I tried using the code below but I have not tried using a loop. var message =…
Reply not
  • 311
  • 1
  • 3
  • 12
9
votes
5 answers

How to serialize a Mimemessage instance?

I have been trying to serialize a MimeMessage instance, but as I read on web it is not possible. What I want to achieve with serializing a MimeMessage instance is that I want to hash that instance and send it along mail itself. What I coded so far…
Ekrem Doğan
  • 674
  • 6
  • 13
8
votes
2 answers

How to encode Internet address

code to send email is following: MimeMessage msg = new MimeMessage(session); msg.setSubject("subject", "UTF-8"); // here you specify your subject encoding msg.setContent("yourBody", "text/plain; charset=utf-8"); …
Romi
  • 4,833
  • 28
  • 81
  • 113
7
votes
5 answers

Mail is being clipped even when is so small, problem with accent in vowels (a, e, i, o, u to á, é, í, ó, ú)

I'm sending an email with the JavaMailSender with html in the body like this: String html = "

RFC INVALIDOS en México:

"+ "

Se adjunta el siguiente listado de RFC inválidos al día de la fecha.

" + …
developer_hatch
  • 15,898
  • 3
  • 42
  • 75
7
votes
3 answers

How to stop embedded images in email being displayed as attachments by GMail?

I am sending HTML emails with embedded images (as attachments) and the images display as expected in GMail. However they also show up as attachments under the email. Does anyone know how to avoid this i.e. I want them in the email only and not…
David Tinker
  • 9,383
  • 9
  • 66
  • 98
7
votes
2 answers

Get MimeMessage Content as String

I have been searching and trying this so long i need your help. I have a server that gets HTML email. After that, i want to get the parts of it (header, subject and bodypart). Getting the header and subject is no problem, but the content is. So…
Sundaze
  • 195
  • 1
  • 3
  • 11
7
votes
2 answers

Encoding of headers in MIMEText

I'm using MIMEText to create an email from scratch in Python 3.2, and I have trouble creating messages with non-ascii characters in the subject. For example from email.mime.text import MIMEText body = "Some text" subject = "» My Subject" …
Marco Righele
  • 2,702
  • 3
  • 23
  • 23
1
2 3
16 17