We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2690
    • 148 Posts
    Hello,

    I’m not getting any emails from the form.

    Here is my snippet call:

    [!eForm? &debug=`3` &formid=`EmailForm` &subject=`[+subject+]` &bcc=`[email protected]` &tpl=`ContactForm` &report=`ContactFormReport` &thankyou=`2979`!]



    Here is my debug info:
    Parsed template
    
    <p style="color:#cc0000; font-weight:bold;">[+validationmessage+]</p>
    
    <form method="post" action="Corporate/TEST" id="EmailForm" name="EmailForm">
    
    <fieldset>
    <label for="cfName" class="[+cfName_vClass+]">Your name:
    <input name="name" id="cfName" class="[+name_class+]" type="text" maxchar="20" value="[+name+]" /> </label>
    
    <label for="cfEmail" class="[+cfEmail_vClass+]">Your Email Address:
    <input name="email" id="cfEmail" class="[+email_class+]" type="text" maxchar="15" value="[+email+]" /> </label>
    
    <label for="cfSubject" class="[+cfSubject_vClass+]">Subject:
    <input name="subject" id="cfSubject" class="[+subject_class+]" type="text" maxchar="30" value="[+subject+]" /> </label>
    
    <label for="cfRegarding" class="[+cfRegarding_vClass+]">Department:
    <select name="department" id="cfRegarding" class="[+department_class+]">
    <option value="1" [+department:1+]>Website Feedback</option>
    <option value="2" [+department:2+]>General Inquiries</option>
    <option value="3" [+department:3+]>Press or Interview Request</option>
    <option value="4" [+department:4+]>Advertising & Partnering Opportunities</option>
    <option value="5" [+department:5+]>Marketing</option>
    </select></label>
    
    <label for="cfMessage" class="[+cfMessage_vClass+]">Message:
    <textarea name="message" id="cfMessage" rows="10" cols="40" class="[+message_class+]">[+message+]</textarea>
    </label>
    
    <input type="submit" name="contact" id="cfContact" class="[+contact_class+]" value="Send This Message" />
    
    </fieldset>
    <input type="hidden" name="formid" class="[+formid_class+]" value="EmailForm" /></form>
    
    array (
      0 => '1',
      1 => '2',
      2 => '3',
      3 => '4',
      4 => '5',
    )
    
    'Department' passed using rule: #LIST 1,2,3,4,5, (input=1)
    'formid' passed using rule: #VALUE EmailForm, (input=EmailForm)
    SESSION HASH:
    FORM HASH:e6102d3869a0870f63d6c1414a85a48c
    Mail Headers:
    From: [email protected]
    Reply-to:[email protected]
    To: [email protected]
    Subject: Fwd: FW: Case #156993655
    CC:
    BCC:[email protected]
    
    Formats array:
    
    array (
      'name' => 
      array (
        0 => 'name',
        1 => 'Your Name',
        2 => 'string',
        3 => '1',
        4 => '',
      ),
      'email' => 
      array (
        0 => 'email',
        1 => 'Email Address',
        2 => 'email',
        3 => '1',
      ),
      'subject' => 
      array (
        0 => 'subject',
        1 => 'Subject',
        2 => 'string',
        3 => '1',
      ),
      'department' => 
      array (
        0 => 'department',
        1 => 'Department',
        2 => 'listbox',
        3 => '1',
        4 => 'Incorrect value',
        5 => '#LIST 1,2,3,4,5',
      ),
      'message' => 
      array (
        0 => 'message',
        1 => 'Message',
        2 => 'textarea',
        3 => '1',
      ),
      'contact' => 
      array (
        0 => 'contact',
        1 => 'contact',
        2 => 'submit',
        3 => 0,
      ),
      'formid' => 
      array (
        0 => 'formid',
        1 => 'formid',
        2 => 'hidden',
        3 => 0,
        4 => 'Tampering attempt detected!',
        5 => '#VALUE EmailForm',
      ),
    )
    
    
    Fields array:
    
    array (
      'cfName_vClass' => '',
      'cfEmail_vClass' => '',
      'cfSubject_vClass' => '',
      'cfRegarding_vClass' => '',
      'cfMessage_vClass' => '',
      'name_class' => 'text',
      'email_class' => 'text',
      'subject_class' => 'text',
      'contact_class' => 'button',
      'name' => 'Aleksey',
      'email' => '[email protected]',
      'subject' => 'Fwd: FW: Case #156993655',
      'department' => '1',
      'message' => 'test bcc',
      'contact' => 'Send This Message',
      'formid' => 'EmailForm',
      'postdate' => '29-Jan-2008 14:50:38',
      'disclaimer' => '',
    )


    Do you guys see any apparent reason why this happening ?

    Thanks!

    Aleks
      MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
      • 2690
      • 148 Posts
      if i add &ccsender - the sender receives the email but &to doesnt...

      so i assume the mail module is working on php ... the error is somewhere else
        MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Is it possible that for some reason it won’t send to the same address as the from and/or reply-to address? I notice that those are the same.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org