“From” Email
Posted: 23 June 2008 11:34 AM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2007-07-07

Hello,

I’m using Freefom for “contact” forms, and when it emails the admins i’m wondering if I can change the <from> email to the address of the person who sent the form.

code:

{exp:freeform:form form_name="my_form" return="templategroup/thank_you" required="name|email|question" notify="email@example.com" template="my_form"}
   
<p>Name<br />
    <
input type="text" name="name" value="" /></p>
   <
p>Email<br />
    <
input type="text" name="email" value="" /></p>
   <
p>City<br />
    <
input type="text" name="city" value="" /></p>
   <
p>State<br />
    <
input type="text" name="state" value="" /></p>
   <
p>Station Listened To:<br />
    <
input type="text" name="station" value="" /></p>
   <
p>Question<br />
    <
textarea name="question" /></textarea></p>
    
{if captcha}

    
<p>Please enter the word you see in the image below:</p>

    <
p>{captcha}<br />
    <
input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" /></p>

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

Thanks in advance!

-greg

Profile
 
 
Posted: 24 June 2008 07:37 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

Certainly! smile

Just add the {email} variable in From Email field and {name} variable in From Name in the Freeform CP Template smile

CP Home › Modules › Freeform › Manage Templates

 Signature 
Profile
 
 
Posted: 24 June 2008 07:44 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  10
Joined  2007-07-07

ugh...I should have been self sufficient enough to try that out on my own. 

Many thanks,

-greg

Profile
 
 
Posted: 24 June 2008 07:45 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

hahaha, thats ok LOL

 Signature 
Profile