commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39147] New: - Issue with host settings in a shared Server environment
Date Wed, 29 Mar 2006 22:13:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39147>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39147

           Summary: Issue with host settings in a shared Server environment
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Email
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: paul@decoursey.net


So the quick and dirty is I'm setting up an HTMLEmail and the server is in a
shared environment, there is another site on the server using commons-email, and
I have no control over that site.  I set the hostname and the authentication but
after that it's taking the settings from the System.properies. Below is a snip
from my code.


org.apache.commons.mail.HtmlEmail email = new org.apache.commons.mail.HtmlEmail();
email.setHostName(server);
email.setAuthentication(username, password);


After that point I can get the session:
Session sess = email.getMailSession();
sess.getProperty("mail.smtp.host");
 and the result of the getProperty("mail.smtp.host") does not equal the setting
from the above server variable.  It is now set to the value from
System.propeties, again, not my setting.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message