[SOLVED] {send_user_email} not working
Posted: 11 March 2008 03:25 PM   [ Ignore ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2006-10-31

Hi, I searched the forums but couldn’t find the solution to my problem.

Using EE 1.6.2 and the latest FreeForm (dl’ed today), I am unable to get the {send_user_email} parameter to work (i.e., the user doesn’t receive the message). I’ve tried with multiple addresses, and it’s not spam filter related. Here’s my form code:

{exp:freeform:form 
   form_name
="tickets" 
   
form_id="ticket-form" 
   
required="contact_name|contact_email|..." 
   
notify="my@email.com" 
   
send_user_email="yes"
   
template="ticket_request"
   
require_ip="yes"
   
return="thank-you"}

<fieldset>
   <
legend>Ticket Buyer</legend>
   <
p><span class="important">*</span
   <
label>Contact Name</label><br />
   <
input type="text" name="contact_name" value="" id="contact_name" />
   </
p>
   <
p><span class="important">*</span
   <
label>Contact Email</label><br />
   <
input type="text" name="contact_email" value="" id="contact_email" />
   </
p>
   <
p><span class="important">*</span
   <
label>Contact Phone</label><br />
   <
input type="text" name="contact_phone" value="" id="contact_phone" />
   </
p>
   <
p><span class="important">*</span
   <
label>Company Name</label><br />
   <
input type="text" name="company_name" value="" id="company_name" />
   </
p>
   <
p><span class="important">*</span
   <
label>Address</label><br />
   
This is the address where tickets will be sent.<br />
   <
input type="text" name="address" value="" id="address" />
   </
p>
   <
p><span class="important">*</span
   <
label>City</label><br />
   <
input type="text" name="city" value="" id="city" />
   </
p>
   <
p><span class="important">*</span
   <
label>Province</label><br />
   <
input type="text" name="prov" size="2" value="" id="prov" />
   </
p>
   <
p><span class="important">*</span
   <
label>Postal Code</label><br />
   <
input type="text" name="pc" size="6" value="" id="pc" />
   </
p>
   <
p><span class="important">*</span>
   <
label>Is the cheque in the mail?</label><br />
   <
select name="cheque" id="cheque" size="1">
   <
option value="">--</option>
   <
option value="Yes">Yes</option>
   <
option value="No">No</option>
   </
select>
   </
p>
   </
fieldset>

   .... 
MORE FORM FIELDS ....

   <
p>
   <
input type="submit" name="submit" value="Submit" />
   </
p>
   
   
{/exp:freeform:form} 

I’m attaching a screen of my email template settings. Please let me know if you need any other info.

Thanks,

Eric

Image Attachments
001.jpg
 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 12 March 2008 05:57 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Eric,

You will need to use the user_email_template=“” parameter.
The template=“” parameter is used for the Admin notification. The User Email Template notifies the user. smile

Freeform Form Documentation: user_email_template=

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 12 March 2008 08:03 AM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2006-10-31

Hi Pie Man,

I noticed that after I posted, so I created a new email template and added the parameter, but the emails still aren’t getting to the user. Is there anything else I can try, or any diagnostics built into the module?

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 12 March 2008 08:07 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

If you copied and pasted the param in my post above, one of the quotations is curly…

So to be sure, you have this code exactly, in your Freeform loop?

user_email_template="ticket_request" 

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 12 March 2008 08:11 AM   [ Ignore ]   [ # 4 ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2006-10-31

Yeah, as I went through the docs and the EE forms yesterday, I noticed that parameter, so I added it. I tried it with the “ticket_request” template, and the email didn’t make it to the user. Then I created a new, user-specific template and the email is still not getting through. Here’s my opening code:

{exp:freeform:form 
   form_name
="tickets" 
   
form_id="ticket-form" 
   
required="ticket_number|contact_name|contact_email|..." 
   
notify="ebarstad@shadowboxcreative.ca" 
   
send_user_email="yes"
   
user_email_template="ticket_user"
   
template="ticket_request"
   
require_ip="yes"
   
return="site/print/%&#xe;n;try_id%%"

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 12 March 2008 08:13 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Try hardcoding the FROM NAME and FROM EMAIL in the User Template smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 12 March 2008 08:17 AM   [ Ignore ]   [ # 6 ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2006-10-31

Yep, I’ve done that too. Just submitted the form again to make sure; still not getting through.

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 12 March 2008 08:20 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Is there any way you can test with a free email account like Hotmail, Yahoo, or Gmail?

Also, is your Admin email address receiving a notification? smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 12 March 2008 08:25 AM   [ Ignore ]   [ # 8 ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2006-10-31

Yeah, I’m using Gmail as the user email address. The notify=“” parameter has worked at my domain and at Gmail, but the user email hasn’t worked at all. How does Freeform know what the user’s email is? Do I have to use a specific field name?

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 12 March 2008 08:27 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Crap!

I should have caught that… try using the “email“ field instead of contact_email

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 12 March 2008 08:32 AM   [ Ignore ]   [ # 10 ]
Newbie
Avatar
Rank
Total Posts:  16
Joined  2006-10-31

Eureka! Thanks so much for walking me through this Pie Man.

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 12 March 2008 08:35 AM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Haha… no problem… it was pretty much you who solved the problem :D

Give yourself a pat on the back raspberry

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 03 September 2008 10:47 AM   [ Ignore ]   [ # 12 ]
Newbie
Rank
Total Posts:  10
Joined  2008-07-08

thanks, this thread just made my day!
grin

stefan

Profile