I have an installation of XWiki Enterprise 8.4.4. Email works (when sending a page for example), but PasswortReset does not send any email. It actually brings the confirmation “pls check your email…” but an email was never send (according to the log.info of MailSender).
There seems to be also no log Trace option in that class.
Anyone an idea where else I could look?
Thx Bob
It’s possible that the mail is not properly configured for your wiki. The share page feature is using the old mailsender plugin while the reset password is using some new mail config. If you go to the Admin UI, you should find a Mail Send section. Is that section properly configured?
You can test by creating a new page and edit it in wiki mode and use the following content:
{{velocity}}
#set ($message = $services.mailsender.createMessage("localhost@xwiki.org", "john@doe.com", "subject"))
#set ($discard = $message.addPart("text/plain", "text content"))
#set ($mailResult = $services.mailsender.send($message))
## Check if the message was created properly and if we have permissions to send emails
#if ($services.mailsender.lastError)
{{error}}$exceptiontool.getStackTrace($services.mailsender.lastError){{/error}}
#end
## Check if the mail we tried to send has failed to be sent
## XWiki < 7.1 use #set ($statuses = $mailResult.statusResult.getByState('FAILED'))
#set ($statuses = $mailResult.statusResult.getAllErrors())
#if ($statuses.hasNext())
#set ($status = $statuses.next())
{{error}}
Error: $status.errorSummary ($status.state)
$status.errorDescription
{{/error}}
#end
{{/velocity}}
Make sure to change the script to replace localhost@xwiki.org
with your sender email and john@doe.com
with the receiver email address.