ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 26th, 2003, 12:25 PM
kdiff kdiff is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 15 kdiff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 16 sec
Reputation Power: 0
sending CFform to different recipients based on selection

I would like to set up a form that has radio buttons that based on the selection sends it to a certain recipient. so if

a. = joe@hotmail.com
b. = sally@hotmail.com
c. =rupert@hotmail.com

and someone clicks on b. it will send it to Sally.

How would I go about doing this? I am just beginning to learn CF so please take that into consideration as explaining this.

Thanks for your help,

Kdiff

Reply With Quote
  #2  
Old December 26th, 2003, 12:48 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
Well in your form you'd have something like:

<form action="mailform.cfm" method="post">
<input type="radio" name="mailrecipient" value="joe@hotmail.com">Joe<br>
<input type="radio" name="mailrecipient" value="sally@hotmail.com">Sally<br>
<input type="submit" value="Send Mail">
</form>


And then on the mailform.cfm page where the email is handled, you'd do something like:

<cfmail to="#form.mailRecipient#" from="me@mydomain.com" subject="Your email">
Someone from the site wanted to send you this message.
</cfmail>


Hope that helps.

Reply With Quote
  #3  
Old December 26th, 2003, 12:56 PM
kdiff kdiff is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 15 kdiff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 16 sec
Reputation Power: 0
Thanks for your help. I'll give it a try right now.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > sending CFform to different recipients based on selection


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway