MDL-37324 fix phpmailer method case names and standardise phpmailer init