Examples of addInline()


Examples of com.serotonin.web.mail.EmailContent.addInline()

            // Create the email content object.
            EmailContent emailContent = new EmailContent(null, creator.getHtml(), Common.UTF8);

            // Add the consolidated chart
            if (creator.getImageData() != null)
                emailContent
                        .addInline(new EmailInline.ByteArrayInline(inlinePrefix + ReportChartCreator.IMAGE_CONTENT_ID,
                                creator.getImageData(), ImageChartUtils.getContentType()));

            // Add the point charts
            for (PointStatistics pointStatistics : creator.getPointStatistics()) {
View Full Code Here

Examples of com.serotonin.web.mail.EmailContent.addInline()

                                creator.getImageData(), ImageChartUtils.getContentType()));

            // Add the point charts
            for (PointStatistics pointStatistics : creator.getPointStatistics()) {
                if (pointStatistics.getImageData() != null)
                    emailContent.addInline(new EmailInline.ByteArrayInline(inlinePrefix
                            + pointStatistics.getChartName(), pointStatistics.getImageData(), ImageChartUtils
                            .getContentType()));
            }

            // Add optional images used by the template.
View Full Code Here

Examples of org.springframework.mail.javamail.MimeMessageHelper.addInline()

      final String pictureName = "picture.png";

      final ByteArrayResource byteArrayResource = getFileData(pictureName);

      messageHelper.addInline("picture12345", byteArrayResource, "image/png");

    }
    catch (MessagingException e) {
      throw new MailParseException(e);
    }
View Full Code Here

Examples of org.springframework.mail.javamail.MimeMessageHelper.addInline()

                    Attachment attachment = (Attachment) iter.next();
                    message.addAttachment(attachment.getName(), attachment.getResource());
                }
                for (Iterator iter = email.getInlineAttachments().iterator(); iter.hasNext();) {
                    Attachment attachment = (Attachment) iter.next();
                    message.addInline(attachment.getName(), attachment.getResource());
                }
            }
        };
    }
}
View Full Code Here

Examples of org.springframework.mail.javamail.MimeMessageHelper.addInline()

                    Attachment attachment = (Attachment) iter.next();
                    message.addAttachment(attachment.getName(), attachment.getResource());
                }
                for (Iterator iter = email.getInlineAttachments().iterator(); iter.hasNext();) {
                    Attachment attachment = (Attachment) iter.next();
                    message.addInline(attachment.getName(), attachment.getResource());
                }
            }
        };
    }
View Full Code Here

Examples of org.springframework.mail.javamail.MimeMessageHelper.addInline()

        + "<img src=\"cid:abc\"></body></html>", true);

    // add the image
    FileSystemResource img = new FileSystemResource(new File(
        "./ch15/src/images/apress.gif"));
    helper.addInline("abc", img);

    sender.send(msg);
  }

  public static void main(String[] args) throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.