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)?










share|improve this question



























    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)?










    share|improve this question

























      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)?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 17 '11 at 16:36









      kiamlaluno

      18.7k146179




      18.7k146179










      asked Feb 23 '11 at 15:23









      James Shields

      262312




      262312






















          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






          share|improve this answer






















          • 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

















          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.



          1. In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).

          2. 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.

          3. 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.

          4. 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.

          5. Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.





          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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

























            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






            share|improve this answer






















            • 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














            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






            share|improve this answer






















            • 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












            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






            share|improve this answer














            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







            share|improve this answer














            share|improve this answer



            share|improve this answer








            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
















            • 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












            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.



            1. In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).

            2. 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.

            3. 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.

            4. 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.

            5. Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.





            share|improve this answer
























              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.



              1. In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).

              2. 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.

              3. 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.

              4. 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.

              5. Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.





              share|improve this answer






















                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.



                1. In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).

                2. 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.

                3. 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.

                4. 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.

                5. Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.





                share|improve this answer












                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.



                1. In my web host admin area (cpanel), I created an email address for my domain (admin@xxxxx.com).

                2. 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.

                3. 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.

                4. 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.

                5. Now Drupal can send authenticated messages from my gmail account that claim to be from admin@xxxxx.com.






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 11 at 0:02









                Aaron

                13518




                13518



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Top Tejano songwriter Luis Silva dead of heart attack at 64

                    ReactJS Fetched API data displays live - need Data displayed static

                    政党