PHP version under 5.4 do not like write context associations
Replaced write contect in opts mailer