Sending email from Drupal contact form, but GMail marks it as "Forged"

Posted by James Shields on Stack Overflow See other posts from Stack Overflow or by James Shields
Published on 2011-02-23T15:23:02Z Indexed on 2011/02/23 15:24 UTC
Read the original article Hit count: 261

Filed under:

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

© Stack Overflow or respective owner

Related posts about drupal