mailer fix for localhost