* fixed bug 539

* added private getter for internal buffer and mime multipart object to ease testing
This commit is contained in:
grob 2007-09-20 11:14:10 +00:00
parent a15d836297
commit 797a719f15

View file

@ -142,13 +142,33 @@ helma.Mail = function(host, port) {
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.
* @param {String} uname The username to use
* @param {String} pwd The password to use
*/
this.setAuthentication = function(uname, pwd) {
if (username && password) {
if (uname && pwd) {
username = uname;
password = pwd;
// enable smtp authentication