@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); }
mail.setFrom(PHENOMECENTRAL_EMAIL); mail.setCc(getEmail(connection.getInitiatingUser())); mail.setBcc("qc@phenomecentral.org"); mail.setTextPart((String) options.get(OPTIONS_MESSAGE_FIELD)); mail.setSubject((String) options.get(SUBJECT_FIELD_STRING));
@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); }
mail.setTo((String) updatedVelocityContext.get("to.address")); mail.setCc((String) updatedVelocityContext.get("to.cc")); mail.setBcc((String) updatedVelocityContext.get("to.bcc")); mail.setSubject(subject); mail.setTextPart(msg);
mail.setTo((String) updatedVelocityContext.get("to.address")); mail.setCc((String) updatedVelocityContext.get("to.cc")); mail.setBcc((String) updatedVelocityContext.get("to.bcc")); mail.setSubject(subject); mail.setTextPart(msg);