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

    Thank you to anyone who can help me with this problem. It maybe something stupid simple, but another pair of eyes might help. I've created a simple contact form that I want to submit to the appropriate person based on the selected drop-down using the &mailselector variable. However, it sends the email to all the recipients specified in the &to variable. Here's my code:

    Eform Call:
    [!eForm? &tpl=`eform-new` &mailSelector=`salesperson` &to=`[email protected],[email protected],[email protected]` &formid=`commentForm` &report=`eformEmail` &from=`[email protected]` &fromname=`Website` &thankyou=`eformResult` &replyto=`email` &subject=`Website Contact Form` &automessage=`eformAutoMessage`!]
    


    Selection from Form:
    
        <label>Salesperson:</label>
        <select name="salesperson">   
    	    <option value="1">User 1</option>
    	    <option value="2">User 2</option>
    	    <option value="3">User 3</option>
    	</select>
    
    


    Any suggestions?

    Thank you,

    Jason [ed. note: jasonimani last edited this post 12 years, 3 months ago.]
      • 16278
      • 928 Posts
      &mailSelector=`salesperson`
      shouldn't that be &mailselector=`salesperson`?
      ;) KP
        • 13622
        • 74 Posts
        Hi,

        Yes it was that simple. I copied the syntax from this post and didn't question it.

        http://forums.modx.com/index.php?topic=32481.0

        Thank you!