* fixed bug 539
* added private getter for internal buffer and mime multipart object to ease testing
This commit is contained in:
parent
a15d836297
commit
797a719f15
1 changed files with 21 additions and 1 deletions
|
@ -142,13 +142,33 @@ helma.Mail = function(host, port) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the text buffer of this mail message
|
||||||
|
* @returns The text buffer of this mail message
|
||||||
|
* @type java.lang.StringBuffer
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
this.getBuffer = function() {
|
||||||
|
return buffer;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the mime multipart object of this mail message
|
||||||
|
* @returns The mime multipart object of this mail message
|
||||||
|
* @type javax.mail.internet.MimeMultipart
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
this.getMultipart = function() {
|
||||||
|
return multipart;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets username and password to use for SMTP authentication.
|
* Sets username and password to use for SMTP authentication.
|
||||||
* @param {String} uname The username to use
|
* @param {String} uname The username to use
|
||||||
* @param {String} pwd The password to use
|
* @param {String} pwd The password to use
|
||||||
*/
|
*/
|
||||||
this.setAuthentication = function(uname, pwd) {
|
this.setAuthentication = function(uname, pwd) {
|
||||||
if (username && password) {
|
if (uname && pwd) {
|
||||||
username = uname;
|
username = uname;
|
||||||
password = pwd;
|
password = pwd;
|
||||||
// enable smtp authentication
|
// enable smtp authentication
|
||||||
|
|
Loading…
Add table
Reference in a new issue