Sending email from Drupal contact form, but GMail marks it as “Forged”
up vote
1
down vote
favorite
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)?
drupal drupal-contact-form
add a comment |
up vote
1
down vote
favorite
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)?
drupal drupal-contact-form
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
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)?
drupal drupal-contact-form
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)?
drupal drupal-contact-form
drupal drupal-contact-form
edited Nov 17 '11 at 16:36
kiamlaluno
18.7k146179
18.7k146179
asked Feb 23 '11 at 15:23
James Shields
262312
262312
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
I suggest this article to get you on the right track.
http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
add a comment |
up vote
0
down vote
Here are the steps I followed to get my Drupal emails working. The solution will be different for you depending on which services you're using, but hopefully this will give you a starting point.
- In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).
- In my web host admin area (cpanel), I created an email forwarder so that emails sent to this address will be forwarded to my gmail account.
- In the settings for my gmail account, under "Accounts and Import", I chose "Add another email address" and added my domain email address. See this link for details on how to do this. This allows my gmail account to send emails using my domain address as an alias.
- In Drupal, I installed the SMTP Authentication module. In the configuration for this module, I used the same SMTP information that I used in step 3 to set up my gmail alias.
- Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
I suggest this article to get you on the right track.
http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
add a comment |
up vote
2
down vote
accepted
I suggest this article to get you on the right track.
http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
I suggest this article to get you on the right track.
http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html
I suggest this article to get you on the right track.
http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html
answered Feb 23 '11 at 19:53
community wiki
Tom
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
add a comment |
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
Thanks for the tip. That looks like the source of my problem, particularly the reverse DNS lookup.
– James Shields
Feb 25 '11 at 7:56
add a comment |
up vote
0
down vote
Here are the steps I followed to get my Drupal emails working. The solution will be different for you depending on which services you're using, but hopefully this will give you a starting point.
- In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).
- In my web host admin area (cpanel), I created an email forwarder so that emails sent to this address will be forwarded to my gmail account.
- In the settings for my gmail account, under "Accounts and Import", I chose "Add another email address" and added my domain email address. See this link for details on how to do this. This allows my gmail account to send emails using my domain address as an alias.
- In Drupal, I installed the SMTP Authentication module. In the configuration for this module, I used the same SMTP information that I used in step 3 to set up my gmail alias.
- Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.
add a comment |
up vote
0
down vote
Here are the steps I followed to get my Drupal emails working. The solution will be different for you depending on which services you're using, but hopefully this will give you a starting point.
- In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).
- In my web host admin area (cpanel), I created an email forwarder so that emails sent to this address will be forwarded to my gmail account.
- In the settings for my gmail account, under "Accounts and Import", I chose "Add another email address" and added my domain email address. See this link for details on how to do this. This allows my gmail account to send emails using my domain address as an alias.
- In Drupal, I installed the SMTP Authentication module. In the configuration for this module, I used the same SMTP information that I used in step 3 to set up my gmail alias.
- Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.
add a comment |
up vote
0
down vote
up vote
0
down vote
Here are the steps I followed to get my Drupal emails working. The solution will be different for you depending on which services you're using, but hopefully this will give you a starting point.
- In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).
- In my web host admin area (cpanel), I created an email forwarder so that emails sent to this address will be forwarded to my gmail account.
- In the settings for my gmail account, under "Accounts and Import", I chose "Add another email address" and added my domain email address. See this link for details on how to do this. This allows my gmail account to send emails using my domain address as an alias.
- In Drupal, I installed the SMTP Authentication module. In the configuration for this module, I used the same SMTP information that I used in step 3 to set up my gmail alias.
- Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.
Here are the steps I followed to get my Drupal emails working. The solution will be different for you depending on which services you're using, but hopefully this will give you a starting point.
- In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).
- In my web host admin area (cpanel), I created an email forwarder so that emails sent to this address will be forwarded to my gmail account.
- In the settings for my gmail account, under "Accounts and Import", I chose "Add another email address" and added my domain email address. See this link for details on how to do this. This allows my gmail account to send emails using my domain address as an alias.
- In Drupal, I installed the SMTP Authentication module. In the configuration for this module, I used the same SMTP information that I used in step 3 to set up my gmail alias.
- Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.
answered Nov 11 at 0:02
Aaron
13518
13518
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f5092914%2fsending-email-from-drupal-contact-form-but-gmail-marks-it-as-forged%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown