ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Contact Form not working for visitors

November 11, 2008 5:54pm

Subscribe [3]
  • #1 / Nov 11, 2008 5:54pm

    secondlamppost

    22 posts

    This question may be related to a resolved thread.

    I worked on this issue with several peoples help last week, and was able to get it working. But I have discovered it is only working for logged in Members.

    I am using the email module’s {contact_form} for the contact page on our store’s blog and I need all visitors to be able to use that contact form to submit issues/questions.

    We are using EE 1.6.5 Build: 20081028 and the code below is used directly in the template (not embeded).

    How can I make this form work for visitor submissions as well?

    <div class="contact_form">
    {exp:email:contact_form recipients="[email protected]" redirect="2" user_recipients="false"}
    
        <label for="name">Your Name:</label>
    
        <input type="text" id="name" name="name" size="40" maxlength="60" /></p>
    
        <label for="from">Your Email:</label>
    
        <input type="text" id="from" name="from" size="40" maxlength="60" value="{member_email}" /></p>
    
        <label for="subject">Subject:</label>
    
        <input type="text" id="subject" name="subject" size="40" maxlength="60" /></p>
    
        <label for="message">Message:</label>
    
        <textarea id="message" name="message" rows="15" cols="40"></textarea>
    
        <input name="submit" type="submit" value="Submit Form" /></p>
    
    {/exp:email:contact_form}
    </div><!-- closing .contact_form div -->
  • #2 / Nov 11, 2008 6:51pm

    Greg Aker

    6022 posts

    Brian,

    How is it not working?  Are you not receiving the emails?

  • #3 / Nov 11, 2008 7:00pm

    secondlamppost

    22 posts

    Hi Greg,

    Sorry for not specifying. No, I do not receive emails. I have tested using a logged in member and everything comes through perfectly. But when I do not log in, I cannot successfully send an email from any browser.

  • #4 / Nov 11, 2008 8:17pm

    Greg Aker

    6022 posts

    strange.

    what are your settings in CP Home ›  Admin ›  System Preferences ›  Email Configuration ?

    -greg

  • #5 / Nov 12, 2008 11:50am

    secondlamppost

    22 posts

    Hi Greg,

    Here are my email settings:

    Return email address for auto-generated emails
      .(JavaScript must be enabled to view this email address)
     
    Webmaster or site name for auto-generated emails
      The Human Solution
     
    Email Character Encoding
      utf-8
     
    Enable Email Debugging?
      No
     
    Email Protocol
      PHP Mail
     
    SMTP Server Address
      N/A
     
    SMTP Username
      N/A
     
    SMTP Password
      N/A
     
    Use Batch Mode?
      No
     
    Number of Emails Per Batch
      N/A
     
    Default Mail Format
      Plain Text
     
    Enable Word-wrapping by Default?
      Yes
         
    Email Console Timelock
      5
     
    Log Email Console Messages
      Yes
         
    Enable CAPTCHAs for Tell-a-Friend and Contact emails
      No

    I’ve kind of dug through my Admin panel for any settings I may have missed, but it is still fairly new to me so it is possible I don’t have something checked off.

  • #6 / Nov 12, 2008 12:13pm

    Robin Sowell

    13255 posts

    Nothing looks ‘off’ to me- but try setting replyto=“y” in your parameters.  Any difference?

  • #7 / Nov 12, 2008 1:44pm

    secondlamppost

    22 posts

    Robin,

    Looks like that fixed it. I tested more thoroughly this time using both logged in members and visitors on various browsers and everything is sending properly. Must be something with my host that had issue with not specifying the replay-to address.

    Thanks for taking a look at my code a second time guys.

  • #8 / Nov 12, 2008 3:06pm

    Sue Crocker

    26054 posts

    Glad to hear Robin helped you get things working again. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases