commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgoes...@apache.org
Subject svn commit: r1029395 - /commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java
Date Sun, 31 Oct 2010 16:18:00 GMT
Author: sgoeschl
Date: Sun Oct 31 16:18:00 2010
New Revision: 1029395

URL: http://svn.apache.org/viewvc?rev=1029395&view=rev
Log:
Use EmailAttachment.INLINE instead of literal "inline" (the constant was previously unused).

Modified:
    commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java

Modified: commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java?rev=1029395&r1=1029394&r2=1029395&view=diff
==============================================================================
--- commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java (original)
+++ commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java Sun Oct 31
16:18:00 2010
@@ -480,7 +480,7 @@ public class HtmlEmail extends MultiPart
         {
             mbp.setDataHandler(new DataHandler(dataSource));
             mbp.setFileName(name);
-            mbp.setDisposition("inline");
+            mbp.setDisposition(EmailAttachment.INLINE);
             mbp.setContentID("<" + cid + ">");
 
             InlineImage ii = new InlineImage(cid, dataSource, mbp);



Mime
View raw message