fixed postnotification-bug and added SMTPFactory