Change the MailSenderPlugin Logger

Version 5.1 by Gabriela Anechitoaei on 2017/02/22 10:52

Home Administration Tests Home Run Test

Steps to reproduce

  1. Login as Admin
  2. Go to Drawer > Administer Wiki > Mail > "Mail Sending"
  3. 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
  4. Go to Drawer > Administer Wiki > Other > Logging
  5. Change the logging level for "com.xpn.xwiki.plugin.mailsender.MailSenderPlugin" to INFO
  6. Navigate to a page
  7. Click on the 3 dots icon on the right and then click on "Share by email"
  8. Type in a valid email address
  9. Click Send
  10. 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

Results

per page of Page
Jira Issue
The environment prevents the table from loading data.
 
Page
Tags: Logger
   

Get Connected