We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8416
    • 173 Posts
    Hello,
    I’m using the following snippet below for a Contact Form. The form is sent correctly to the "emailsender" however a copy is also sent to the email address entered in the Contact Form. How can I turn this off?

     
    [!eForm? &language=`english`  &formid=`ContactForm` &subject=`[+subject+]` &to=`[(emailsender)]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &invalidClass=`invalidValue` &requiredClass=`requiredValue` &cssStyle=`ContactStyles` &gotoid=`46`!]
    


    Thanks
      • 25663 MODX Staff
      • 12,272 Posts
      &ccsender=`0`
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 8416
        • 173 Posts
        Hi,
        I tried &ccsender=`0` but i’m still getting an email from the sender. I’m using eForm 1.4.4... Any idea what might be wrong?
        Thanks
          • 10916
          • 13 Posts
          hmm, very strange. I am having the same problem, even with ccsender set to 0 ..
            • 36416
            • 589 Posts
            Quote from: Glendolah at Apr 24, 2008, 01:16 AM

            hmm, very strange. I am having the same problem, even with ccsender set to 0 ..

            You shouldn’t have this problem with ccsender off, but sometimes when testing I enter e-mail address where [(emailsender)] mail is forwarded to, which confuse me every time...
              • 30585
              • 833 Posts
              Quote from: echaland at Mar 14, 2008, 09:49 AM

              Hi,
              I tried &ccsender=`0` but i’m still getting an email from the sender. I’m using eForm 1.4.4... Any idea what might be wrong?
              Thanks

              Just remove the I &ccsender=`0` call. Sometimes changing the value to 0 is not enough. I had a similar problem and after removing the entire call, my issue was fixed.

              Good luck
                A MODx Fanatic
                • 16278
                • 928 Posts
                See bug report http://modxcms.com/bugs/task/958
                As installed, the snippet sets the value of ccsender to 1 if it is set to anything (including zero) in the call, and zero if the paramter is omitted.

                Changing
                ’ccsender’ => isset($ccsender)? 1:0,
                to
                ’ccsender’ => isset($ccsender)?$ccsender:0,
                in the snippet fixes the problem (i.e. makes it use the setting that is fed to it, if any, or zero if nothing set)

                KP