[jira] [Commented] (EMAIL-150) Proxy support

2017-03-16 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/EMAIL-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928837#comment-15928837
 ] 

Sebb commented on EMAIL-150:


I think that should probably be "mail.getMailSession()..."

However note that this creates the session if it does not already exist.
This may cause problems if it is done at the wrong time - e.g. one cannot 
subsequently use setSSLOnConnect().

> Proxy support
> -
>
> Key: EMAIL-150
> URL: https://issues.apache.org/jira/browse/EMAIL-150
> Project: Commons Email
>  Issue Type: Improvement
>Reporter: Perriman
>Assignee: Siegfried Goeschl
>  Labels: proxy
>
> Support to use socket proxy. In javamail it can be done with:
> props.setProperty("proxySet", "true");
> props.setProperty("socksProxyHost", proxyHost);
> props.setProperty("socksProxyPort", proxyPort);



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (EMAIL-150) Proxy support

2015-03-04 Thread Thomas Neidhart (JIRA)

[ 
https://issues.apache.org/jira/browse/EMAIL-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347649#comment-14347649
 ] 

Thomas Neidhart commented on EMAIL-150:
---

According to 
http://www.oracle.com/technetwork/java/javamail/faq/index.html#proxy and 
https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html 
the preferred way to set the socks server is via the mail.smtp.socks.host 
property which requires at least JDK 1.5. The minimum JDK for email is 1.5 so 
this should be fine.

btw. to use a socks server with the latest release you can still do:

{code}
  Email mail = 
  mail.getSession().getProperties().setProperty("mail.smtp.socks.host", 
"my.socks.host");

  ...
  mail.send();
{code}

> Proxy support
> -
>
> Key: EMAIL-150
> URL: https://issues.apache.org/jira/browse/EMAIL-150
> Project: Commons Email
>  Issue Type: Improvement
>Reporter: Perriman
>  Labels: proxy
>
> Support to use socket proxy. In javamail it can be done with:
> props.setProperty("proxySet", "true");
> props.setProperty("socksProxyHost", proxyHost);
> props.setProperty("socksProxyPort", proxyPort);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)