One of answers of this question[1] might solve your question. [1] http://stackoverflow.com/questions/10085856/java-mail-exception-error
Thanks On Tue, Oct 11, 2016 at 3:28 PM, Aneela Safdar <ansaf_...@yahoo.com> wrote: > Hi, > > I am trying to send notification using Email adapter of Event Publisher. > This is my output-event-adapter.xml's Email configurations > > <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.gmail.com</property> > <property key="mail.smtp.port">587</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> > > I receive following error upon publishing events.I am behind a proxy, is > this an issue behind this error or something else? > > [2016-10-11 14:57:35,024] ERROR {org.wso2.carbon.event.output. > adapter.email.Emai > lEventAdapter} - Event dropped at Output Adapter 'AlertEmailPublisher' > for tena > nt id '-1234', Error in message format, Unknown SMTP host: smtp.gmail.com > javax.mail.MessagingException: *Unknown SMTP host: smtp.gmail.com > <http://smtp.gmail.com>*; > nested exception is: > java.net.UnknownHostException: smtp.gmail.com > at com.sun.mail.smtp.SMTPTransport.openServer( > SMTPTransport.java:1280) > at com.sun.mail.smtp.SMTPTransport.protocolConnect( > SMTPTransport.java:37 > 0) > at javax.mail.Service.connect(Service.java:297) > at javax.mail.Service.connect(Service.java:156) > at javax.mail.Service.connect(Service.java:105) > at javax.mail.Transport.send0(Transport.java:168) > at javax.mail.Transport.send(Transport.java:98) > at org.wso2.carbon.event.output.adapter.email. > EmailEventAdapter$EmailSen > der.run(EmailEventAdapter.java:306) > at java.util.concurrent.Executors$RunnableAdapter. > call(Executors.java:47 > 1) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor. > java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor > .java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.net.UnknownHostException: smtp.gmail.com > at java.net.AbstractPlainSocketImpl.connect( > AbstractPlainSocketImpl.java > :178) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) > at java.net.Socket.connect(Socket.java:579) > at java.net.Socket.connect(Socket.java:528) > at com.sun.mail.util.SocketFetcher.createSocket( > SocketFetcher.java:232) > at com.sun.mail.util.SocketFetcher.getSocket( > SocketFetcher.java:189) > at com.sun.mail.smtp.SMTPTransport.openServer( > SMTPTransport.java:1250) > ... 12 more > > Regards, > Aneela Safdar > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0717429601*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev