Hi Aneela,

Please use following doc to id the keys and then add those as new property
element to the file and try.

https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html

Thanks
/Tishan

On Thu, Oct 13, 2016 at 9:27 PM, Aneela Safdar <ansaf_...@yahoo.com> wrote:

> Hi Tishan,
>
> Thanks for response.
>
> I was wondering there are no properties key for proxy server ip and its
> port, also for username and password for authentication from proxy. All I
> could see in output-event-adapter.xml are those which I have already used.
>
>     <adapterConfig type="email">
>         <!-- Comment mail.smtp.user and mail.smtp.password properties to
> support connecting SMTP servers which use trust
>         based authentication rather username/password authentication -->
>         <property key="mail.smtp.from">safdar.anee...@gmail.com</property>
>         <property key="mail.smtp.user">Aneela Safdar</property>
>         <property key="mail.smtp.password">*********</property>
>         <property key="mail.smtp.host">smtp.googlemail.com</property>
>         <property key="mail.smtp.port">465</property>
>         <property key="mail.smtp.starttls.enable">true</property>
>         <property key="mail.smtp.auth">true</property>
>         <!-- Thread Pool Related Properties -->
>         <property key="minThread">8</property>
>         <property key="maxThread">100</property>
>         <property key="keepAliveTimeInMillis">20000</property>
>         <property key="jobQueueSize">10000</property>
>     </adapterConfig>
>
> Can you tell me what should be the keys for following values
>
> proxy server ip
> proxy server port
> proxy authentication username
> proxy authentication password
>
> Thanks in advance.
>
> Regards,
> Aneela Safdar
>
>
> ------------------------------
> *From:* Tishan Dahanayakage <tis...@wso2.com>
> *To:* Aneela Safdar <ansaf_...@yahoo.com>
> *Cc:* WSO2 Developers' List <dev@wso2.org>
> *Sent:* Wednesday, October 12, 2016 5:18 PM
> *Subject:* Re: [Dev] Email Notification under a proxy server
>
> Hi,
>
> Yes. you can add required AMTP properties to out-event-adaptor.xml. Also
> please make sure that your proxy server supports SOCKS and allows anonymous
> connections. This[1] is the class that represent the adaptor. This will be
> useful if you run into any issues.
>
> [1] https://github.com/wso2/carbon-analytics-common/blob/
> master/components/event-publisher/event-output-adapters/org.wso2.carbon.
> event.output.adapter.email/src/main/java/org/wso2/carbon/
> event/output/adapter/email/EmailEventAdapter.java
>
> Thanks,
> Tishan
>
> On Wed, Oct 12, 2016 at 4:10 PM, Aneela Safdar <ansaf_...@yahoo.com>
> wrote:
>
> Hi,
>
> I am trying to use Email adapter in order to provide notifications. But
> the problem is I am behind a proxy server and JavaMail doesnot support any
> web proxy, After a little search, I have found out that it is doable if
> proxy server supports SOCKS. It means I have to add parameters of Email
> adapter  in outout-event-adapter.xml file to put information of proxy
> server ip, port, username and password etc. Any suggestions or other way
> out?
>
>
> Regards,
> Aneela Safdar
>
> ______________________________ _________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/ mailman/listinfo/dev
> <http://wso2.org/cgi-bin/mailman/listinfo/dev>
>
>
>
>
> --
> Tishan Dahanayakage
> Senior Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
>
>


-- 
Tishan Dahanayakage
Senior Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to