related to issue #118: update phpmailer library to 5.2.7 and centralize mail sending