Lines 83-88
Link Here
|
83 |
*/ |
83 |
*/ |
84 |
private String bcc; |
84 |
private String bcc; |
85 |
private String from; |
85 |
private String from; |
|
|
86 |
/** |
87 |
* Comma separated list of replyTo addresses. |
88 |
*/ |
89 |
private String replyTo; |
86 |
private String subject; |
90 |
private String subject; |
87 |
private String smtpHost; |
91 |
private String smtpHost; |
88 |
private String smtpUsername; |
92 |
private String smtpUsername; |
Lines 155-160
Link Here
|
155 |
msg.setFrom(); |
159 |
msg.setFrom(); |
156 |
} |
160 |
} |
|
|
161 |
//Add ReplyTo addresses if defined. |
162 |
if (replyTo != null && replyTo.length() > 0) { |
163 |
msg.setReplyTo(parseAddress(replyTo)); |
164 |
} |
165 |
|
157 |
if (to != null && to.length() > 0) { |
166 |
if (to != null && to.length() > 0) { |
158 |
msg.setRecipients(Message.RecipientType.TO, parseAddress(to)); |
167 |
msg.setRecipients(Message.RecipientType.TO, parseAddress(to)); |
159 |
} |
168 |
} |
Lines 378-383
Link Here
|
378 |
String getFrom() { |
387 |
String getFrom() { |
379 |
return from; |
388 |
return from; |
380 |
} |
389 |
} |
|
|
390 |
|
391 |
/** |
392 |
Get the reply addresses. |
393 |
@return reply addresses as comma separated string, may be null. |
394 |
*/ |
395 |
public |
396 |
String getReplyTo() { |
397 |
return replyTo; |
398 |
} |
381 |
/** |
399 |
/** |
382 |
Returns value of the <b>Subject</b> option. |
400 |
Returns value of the <b>Subject</b> option. |
Lines 395-401
Link Here
|
395 |
void setFrom(String from) { |
413 |
void setFrom(String from) { |
396 |
this.from = from; |
414 |
this.from = from; |
397 |
} |
415 |
} |
|
|
416 |
|
417 |
/** |
418 |
Set the e-mail addresses to which replies should be directed. |
419 |
@param addresses reply addresses as comma separated string, may be null. |
420 |
*/ |
421 |
public |
422 |
void setReplyTo(final String addresses) { |
423 |
this.replyTo = addresses; |
424 |
} |
425 |
|
398 |
/** |
426 |
/** |
399 |
The <b>Subject</b> option takes a string value which should be a |
427 |
The <b>Subject</b> option takes a string value which should be a |
400 |
the subject of the e-mail message. |
428 |
the subject of the e-mail message. |