Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
MailSenderConfig tos/ccs/bccs set 方法要支持可变参数 fix #42
Browse files Browse the repository at this point in the history
  • Loading branch information
venusdrogon committed Apr 24, 2019
1 parent 5ba3f20 commit e4b30cd
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public class MailSenderConfig extends BaseConfig{
//---------------------------------------------------------------

/**
* 邮件发送者的地址.<br>
* 邮件发送者的地址.
*
* <p>
* example:huanyuansp@126.com
* </p>
*/
private String fromAddress;

Expand Down Expand Up @@ -113,8 +116,10 @@ public void setIsNeedReturnReceipt(boolean isNeedReturnReceipt){
}

/**
* 获得 邮件发送者的地址.<br>
* 获得 邮件发送者的地址.
* <p>
* example:huanyuansp@126.com
* </p>
*
* @return the fromAddress
*/
Expand All @@ -123,8 +128,10 @@ public String getFromAddress(){
}

/**
* 设置 邮件发送者的地址.<br>
* 设置 邮件发送者的地址.
* <p>
* example:huanyuansp@126.com
* </p>
*
* @param fromAddress
* the fromAddress to set
Expand Down Expand Up @@ -167,7 +174,7 @@ public String[] getTos(){
* @param tos
* the tos to set
*/
public void setTos(String[] tos){
public void setTos(String...tos){
this.tos = tos;
}

Expand All @@ -186,7 +193,7 @@ public String[] getCcs(){
* @param ccs
* the ccs to set
*/
public void setCcs(String[] ccs){
public void setCcs(String...ccs){
this.ccs = ccs;
}

Expand All @@ -205,7 +212,7 @@ public String[] getBccs(){
* @param bccs
* the bccs to set
*/
public void setBccs(String[] bccs){
public void setBccs(String...bccs){
this.bccs = bccs;
}

Expand Down Expand Up @@ -294,6 +301,8 @@ public String[] getAttachFilePaths(){
return attachFilePaths;
}

//---------------------------------------------------------------

/**
* @return the iCalendar
*/
Expand Down

0 comments on commit e4b30cd

Please sign in to comment.