@Override public Mail createMail() { return new Mail(); }
/** * {@inheritDoc} * * @see MailSender#createMail() */ public Mail createMail() { return new Mail(); }
@Override public int sendRawMessage(String from, String to, String rawMessage) { Mail email = new Mail(); email.setFrom(from); email.setTo(to); getProtectedPlugin().parseRawMessage(rawMessage, email); return sendMail(email); }
/** * {@inheritDoc} * * @see MailSender#sendTextMessage(String, String, String, String) */ public int sendTextMessage(String from, String to, String subject, String message) { Mail email = new Mail(); email.setSubject(subject); email.setTextPart(message); email.setFrom(from); email.setTo(to); return sendMail(email); }
@Override public int sendTextMessage(String from, String to, String subject, String message) { Mail email = new Mail(); email.setSubject(subject); email.setTextPart(message); email.setFrom(from); email.setTo(to); return sendMail(email); }
/** * {@inheritDoc} * * @see MailSender#sendRawMessage(String, String, String) */ public int sendRawMessage(String from, String to, String rawMessage) { Mail email = new Mail(); email.setFrom(from); email.setTo(to); getProtectedPlugin().parseRawMessage(rawMessage, email); return sendMail(email); }
@Override public int sendTextMessage(String from, String to, String cc, String bcc, String subject, String message, List<Attachment> attachments) { Mail email = new Mail(); email.setSubject(subject); email.setTextPart(message); email.setFrom(from); email.setTo(to); email.setCc(cc); email.setBcc(bcc); email.setAttachments(attachments); return sendMail(email); }
String to = getEmail(connection.getContactedUser()); String replyTo = getEmail(connection.getInitiatingUser()); Mail mail = new Mail(); mail.setTo(to); mail.setHeader("Reply-To", replyTo);
@Override public int sendHtmlMessage(String from, String to, String cc, String bcc, String subject, String body, String alternative, List<Attachment> attachments) { Mail email = new Mail(); email.setSubject(subject); email.setFrom(from); email.setTo(to); email.setCc(cc); email.setBcc(bcc); email.setTextPart(alternative); email.setHtmlPart(body); email.setAttachments(attachments); return sendMail(email); }
/** * {@inheritDoc} * * @see MailSender#sendTextMessage(String, String, String, String, String, String, java.util.List) */ public int sendTextMessage(String from, String to, String cc, String bcc, String subject, String message, List<Attachment> attachments) { Mail email = new Mail(); email.setSubject(subject); email.setTextPart(message); email.setFrom(from); email.setTo(to); email.setCc(cc); email.setBcc(bcc); email.setAttachments(attachments); return sendMail(email); }
/** * {@inheritDoc} * * @see MailSender#sendHtmlMessage(String, String, String, String, String, String, String, java.util.List) */ public int sendHtmlMessage(String from, String to, String cc, String bcc, String subject, String body, String alternative, List<Attachment> attachments) { Mail email = new Mail(); email.setSubject(subject); email.setFrom(from); email.setTo(to); email.setCc(cc); email.setBcc(bcc); email.setTextPart(alternative); email.setHtmlPart(body); email.setAttachments(attachments); return sendMail(email); }
XWikiVelocityRenderer.evaluate(htmlContent, templateDocFullName, updatedVelocityContext, context); Mail mail = new Mail(); mail.setFrom((String) updatedVelocityContext.get("from.address")); mail.setTo((String) updatedVelocityContext.get("to.address"));
String html = evaluate(htmlContent, templateDocFullName, updatedVelocityContext, context); Mail mail = new Mail(); mail.setFrom((String) updatedVelocityContext.get("from.address")); mail.setTo((String) updatedVelocityContext.get("to.address"));