Package com.typesafe.plugin

Examples of com.typesafe.plugin.MailerAPI.send()


      MailerAPI email = play.Play.application().plugin(MailerPlugin.class).email();
      email.setFrom(mailFrom);
      email.setSubject(subject);
      email.setRecipient(toEmail);
      Logger.debug("Mail.sendMail: Mail will be sent to {}", toEmail);
      email.send(messageText, messageHtml);
    }
    }
}
View Full Code Here


                email.setRecipient(toEmail);
                Logger.debug("Mail.sendMail: Mail will be sent to " + toEmail);
            }

            final String mailSign = root.getString("mail.sign");
            email.send(envelop.message + "\n\n " + mailSign,
                    envelop.message + "<br><br>--<br>" + mailSign);

            Logger.debug("Mail sent - SMTP:" + root.getString("smtp.host")
                    + ":" + root.getString("smtp.port")
                    + " SSL:" + root.getString("smtp.ssl")
View Full Code Here

                    api.addAttachment(attachment.getName(), attachment.getFile(), attachment.getDescription(), attachment.getDisposition());
                }
            }
            if (mail.getBody().isBoth()) {
                // sends both text and html
                api.send(mail.getBody().getText(), mail.getBody().getHtml());
            } else if (mail.getBody().isText()) {
                // sends text/text
                api.send(mail.getBody().getText());
            } else {
                // if(mail.isHtml())
View Full Code Here

            if (mail.getBody().isBoth()) {
                // sends both text and html
                api.send(mail.getBody().getText(), mail.getBody().getHtml());
            } else if (mail.getBody().isText()) {
                // sends text/text
                api.send(mail.getBody().getText());
            } else {
                // if(mail.isHtml())
                // sends html
                api.sendHtml(mail.getBody().getHtml());
            }
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.