On Jun 19, 2013, at 2:22 PM, Thomas Mortagne <thomas.mortagne(a)xwiki.com> wrote:
Note sure if XWiki mail module support TLS/SSL smtp.
On Wed, Jun 19, 2013 at 2:15 PM, Mohit Gupta
<motgupta(a)gmail.com> wrote:
> Same exception
>
>
> On Wed, Jun 19, 2013 at 5:41 PM, Jeremie BOUSQUET <
> jeremie.bousquet(a)gmail.com> wrote:
>
>> Maybe add mail.smtp.auth=true ?
>> Le 19 juin 2013 13:10, "Mohit Gupta" <motgupta(a)gmail.com> a écrit
:
>>
>>> I did set mail setting for sending the mails as per
>>>
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration. Then
>> i
>>> icreated the page
>>> with mailTestingUtility given at
>>>
http://extensions.xwiki.org/xwiki/bin/view/Extension/Test+Mail. But i
>> get
>>> below error message
>>>
>>>
>>> A problem occurred while sending the mail.
>>> 2013-06-19 16:30:21,730 ERROR [
>>>
http://ing-wikvp001:8080/testEmail/bin/view/testWiki/test1]
>>> c.x.x.p.m.MailSenderPluginApi [MailSenderPluginApi.java:173] Failed to
>> send
>>> email [From [no-reply(a)xwiki.com], To [scottmiles(a)Fiserv.com], Subject
>>> [TestMail], Text [Please get it]]
>>> javax.mail.MessagingException: Could not connect to SMTP host:
>>>
smtp.gmail.com, port: 587
>>> at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
>>> ~[mail-1.4.jar:1.4]
>>> at
>> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
>>> ~[mail-1.4.jar:1.4]
>>> at javax.mail.Service.connect(Service.java:275) ~[mail-1.4.jar:1.4]
>>> at javax.mail.Service.connect(Service.java:156) ~[mail-1.4.jar:1.4]
>>> at javax.mail.Service.connect(Service.java:176) ~[mail-1.4.jar:1.4]
>>> at
>>>
>>>
>>
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMails(MailSenderPlugin.java:712)
>>> ~[xwiki-platform-mailsender-3.5.jar:na]
>>> at
>>>
>>>
>>
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:664)
>>> ~[xwiki-platform-mailsender-3.5.jar:na]
>>> at
>>>
>>>
>>
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:650)
>>> ~[xwiki-platform-mailsender-3.5.jar:na]
>>> details i used for gmail server are:-
>>> SMTP SERVER =
smtp.gmail.com
>>> PORT = 587
>>> SMTP SERVER USERNAME (OPTIONAL) mine gmail address
>>> password:- mine password
>>>
>>>
>>> ADDITIONAL JAVAMAIL PROPERTIES=
>>> mail.smtp.starttls.enable=true
>>>
>>> i am on xwiki 3.5