Package org.apache.commons.mail

Examples of org.apache.commons.mail.MultiPartEmail.addTo()


        email.setHostName(mailhost);
        email.setAuthentication(username, password);
        email.setFrom(fromAddress, "MoDi");

        for (Role role : roles) {
            email.addTo(role.getEmail(), role.getName());
        }

        email.setSubject("[ MoDi ] "
                + Config.getStringProperty("MoDi.Meta.Project.Name"));
       
View Full Code Here


        email.setHostName(mailhost);
        email.setAuthentication(username, password);
        email.setFrom(fromAddress, "MoDi");

        for (Role role : roles) {
            email.addTo(role.getEmail(), role.getName());
        }

        email.setSubject("[ MoDi ] "
                + Config.getStringProperty("MoDi.Meta.Project.Name"));
       
View Full Code Here

      else
      {
        email.setSSL(false);
        email.setSmtpPort(this.smtpPort);
      }
      email.addTo(toEmail);
      email.setFrom(this.smtpFromAddress);
      email.setSubject(subject);
      email.setMsg(body);
      email.setAuthentication(this.smtpUser, (deObf ? HtmlTools.fromSafeUrlStringO_b_f(smtpAu) : smtpAu));
     
View Full Code Here

//      email.setSSL(true);
      // Set email from
      email.setFrom("lei.gao@renren-inc.com", "Commons Email");
      email.setBounceAddress("lei.gao@renren-inc.com");
      // Set email content
      email.addTo("jiyun.xie@renren-inc.com", "Jiyun Xie");
      email.addTo("lei.gao@renren-inc.com", "Lei Gao");
      email.setSubject("Foll Alert The Git test");
      email.setMsg("Here is Apache's logo, please enjoy it!");

      // add the attachment
View Full Code Here

      // Set email from
      email.setFrom("lei.gao@renren-inc.com", "Commons Email");
      email.setBounceAddress("lei.gao@renren-inc.com");
      // Set email content
      email.addTo("jiyun.xie@renren-inc.com", "Jiyun Xie");
      email.addTo("lei.gao@renren-inc.com", "Lei Gao");
      email.setSubject("Foll Alert The Git test");
      email.setMsg("Here is Apache's logo, please enjoy it!");

      // add the attachment
      email.attach(attachment);
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.