Change the MailSenderPlugin Logger
Version 5.1 by Gabriela Anechitoaei on 2017/02/22 10:52
Steps to reproduce
- Login as Admin
- Go to Drawer > Administer Wiki > Mail > "Mail Sending"
- Set up your SMTP server:
- Email server: smtp.gmail.com
- Email server port: 587
- Email server username: [email protected] (or gmail account)
- Email server password: yourpassword
- Additional Properties: mail.smtp.starttls.enable=true
- Go to Drawer > Administer Wiki > Other > Logging
- Change the logging level for "com.xpn.xwiki.plugin.mailsender.MailSenderPlugin" to INFO
- Navigate to a page
- Click on the 3 dots icon on the right and then click on "Share by email"
- Type in a valid email address
- Click Send
- Check the console
Expected results
You have an INFO message in the console that starts with INFO c.x.x.p.m.MailSenderPlugin - Sending email: From and includes the whole email sent