@Component(role=Emailer.class, hint="Emailer") public class Emailer extends Object
| Constructor and Description |
|---|
Emailer() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.plugin.logging.Log |
getLog()
Gets the log.
|
void |
sendEmail(boolean skip,
Properties properties,
javax.mail.internet.InternetAddress from,
List<javax.mail.Address> recipients,
String subject,
String content,
String projectName)
Sends the email with the given content.
|
void |
setLog(org.apache.maven.plugin.logging.Log log)
Sets the log.
|
public org.apache.maven.plugin.logging.Log getLog()
public void setLog(org.apache.maven.plugin.logging.Log log)
log - the new logpublic void sendEmail(boolean skip,
Properties properties,
javax.mail.internet.InternetAddress from,
List<javax.mail.Address> recipients,
String subject,
String content,
String projectName)
skip - don't send the email, only log it.properties - the properties. Needs properties for mail.smtp.host
and mail.smtp.portfrom - the from addressrecipients - the recipientssubject - the subjectcontent - the contentprojectName - the project nameCopyright © 2013-2015. All Rights Reserved.