Sending email from Drupal contact form, but GMail marks it as "Forged"
- by James Shields
Hi,
My Drupal site sends email to a GMail account, but the emails sent all go into the Spam folder, and GMail puts up a bar with the message "This message was likely forged and did not originate from your account."
Although I can create a filter to prevent them going to Spam, I want to start sending newsletters, and I suspect they'll have the same problem.
I suspect the problem is with the way I've set up either PHP or Drupal to send mail. As far as I know it's just using the sendmail function. I've set the from address to "info@..." where ... is the site domain. Any tips on how I can make set up my outgoing mail so it won't be refused by GMail (and presumably other major mail providers)?
Thanks,
James