You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Paul J DeCoursey (JIRA)" <ji...@apache.org> on 2007/01/03 15:47:27 UTC

[jira] Closed: (EMAIL-9) [email] Issue with host settings in a shared Server environment

     [ https://issues.apache.org/jira/browse/EMAIL-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul J DeCoursey closed EMAIL-9.
--------------------------------

    Resolution: Fixed

I think this was fixed.  I thought that it got closed out already too. I discovered what the issue was a few days after I reported this, and then discovered that it had been fixed already, we just had an older jar.

> [email] Issue with host settings in a shared Server environment
> ---------------------------------------------------------------
>
>                 Key: EMAIL-9
>                 URL: https://issues.apache.org/jira/browse/EMAIL-9
>             Project: Commons Email
>          Issue Type: Bug
>         Environment: Operating System: other
> Platform: All
>            Reporter: Paul J DeCoursey
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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