Why am I getting a parsing exception when the content type is something like "Content-Type: text/html;"?

John Zukowski

Having a trailing semicolon violates the MIME specification. The JavaMail libraries do not compensate for this violation. It is supposed to look like the following:

  content := "Content-Type" ":" type "/" subtype
             *(";" parameter)
  parameter := attribute "=" value
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact