My clients hosting service isn't accepting emails sent from the website that doesn't have "-f" at the start of the FROM address. This related to a recent outgoing SPAM filter they added.
Official response is:
“senders envelope of data” is missing certain elements
I use phpmailer, everything was working fine until now using SMTP authentication.
But now with phpmailer, this DOESN'T work
$mail->From = 'me@test.com';
Also doesn't work
$mail->From = '-f me@test.com';
Its invalid obviousdly, not a good looking email address.
I CAN get mail to actually send like this:
mail('me@test.com', 'the subject', 'the message', null, '-f me@test.com');
But that isn't phpmailer, this is the garden variety php function. So im trying to make PHPmailer add "-f " to the FROM automatically somehow.
Should I be adjusting the class files to somehow get around that? Stuck!