Skip to content

Commit

Permalink
FINERACT-699 - fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
aasaru committed Feb 18, 2019
1 parent 0800bb7 commit e6ab02e
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ public class SMTPCredentialsData {
private final String host;
private final String port;
private final boolean useTLS;
private final String fromEmail;
private final String fromName;

public SMTPCredentialsData(final String username, final String password, final String host, final String port, final boolean useTLS) {
public SMTPCredentialsData(final String username, final String password, final String host, final String port, final boolean useTLS, String fromEmail, String fromName) {
this.username = username;
this.password = password;
this.host = host;
this.port = port;
this.useTLS = useTLS;
this.fromEmail = fromEmail;
this.fromName = fromName;
}

public String getUsername() {
Expand All @@ -54,4 +58,11 @@ public boolean isUseTLS() {
return useTLS;
}

public String getFromEmail() {
return fromEmail != null ?fromEmail :username;
}

public String getFromName() {
return fromName != null ?fromName :username;
}
}

0 comments on commit e6ab02e

Please sign in to comment.