make mailer context compatible with SwiftMailerBundle v2.3.3 and v2.2.5
Merge pull request #42 from kbond/patch-1

make mailer context compatible with SwiftMailerBundle v2.3.3 and v2.2.5