Skip to content

Commit

Permalink
[#1897] Added example/test
Browse files Browse the repository at this point in the history
  • Loading branch information
tazmaniax authored and xael-fry committed Jan 13, 2015
1 parent 111e815 commit d9d4944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/src/play/mvc/Mailer.java
Expand Up @@ -146,18 +146,18 @@ public static String attachInlineEmbed(DataSource dataSource, String name) {
throw new UnexpectedException("Mailer not instrumented ?");
}

InlineImage inlinedImage = new InlineImage(dataSource);
InlineImage inlineImage = new InlineImage(dataSource);

Map<String, InlineImage> inlineEmbeds = (Map<String, InlineImage>) map.get("inlineEmbeds");
if (inlineEmbeds == null) {
inlineEmbeds = new HashMap<String, InlineImage>();
map.put("inlineEmbeds", inlineEmbeds);
}

inlineEmbeds.put(name, inlinedImage);
inlineEmbeds.put(name, inlineImage);
infos.set(map);

return "cid:" + inlinedImage.cid;
return "cid:" + inlineImage.cid;
}

public static void setContentType(String contentType) {
Expand Down

0 comments on commit d9d4944

Please sign in to comment.