0

I am using "com.typesafe" %% "play-plugins-mailer" % "2.2.0". The email i receive has the header "Message-Id". I tried setting header with mail.addHeader("Message-ID", "") and mail.addHeader("Message-Id", s"") but they all fail to override or show up. How do you set the message id?

ferk86
  • 2,325
  • 1
  • 23
  • 27

1 Answers1

1

I think you are looking for this : http://www.oracle.com/technetwork/java/faq-135477.html#msgid

Caadi0
  • 504
  • 8
  • 23
  • Thanks for mentioning. I saw it earlier. One problem is the message id is shown as "Message-Id" rather than "Message-ID". When I tried to see if other headers show up such as mail.addHeader("foo", "123"), "foo" does not show up. ?:( – ferk86 Dec 18 '13 at 00:05
  • @kfer38 : What you send as a header is strictly determined by your email service provider. Often custom headers like 'foo' in this case is rejected by them. I think this is exactly what is happening in this case – Caadi0 Dec 19 '13 at 12:00
  • @kfer38 : Also see this for your case sensitive problem http://stackoverflow.com/questions/6143549/are-email-headers-case-sensitive?rq=1 – Caadi0 Dec 19 '13 at 12:07