Hello, and thanks for this info! But there's a small mistake at the end,
the line "$mail->getHeaders();" should be "$headers = $mail->getHeaders();" ;-)
I've tried your answer, but now, gmail put my mail directly in the spam section... There must be something wrong with the header... Any clue?
Hello, and thanks for this info!
But there's a small mistake at the end,
the line "$mail->getHeaders();"
should be "$headers = $mail->getHeaders();" ;-)
I've tried your answer, but now, gmail put my mail directly in the spam section... There must be something wrong with the header...
Any clue?