Hello Jim,
I think you have to specify a valid email address in the FROM attribute,
otherwise it will not be sent. Also check your mail-logs, most of the time
you can see inthere what went wrong.
Also:
<cfoutput>
<cfif #campus# is blairsville>
</cfoutput>
is the same as
<cfif campus is "blairsville">,
or if blairsville is a variable
<cfif #campus# is blairsville>
and
<CFMAIL query="getappinfo" From="#theemailaddress#"
To="jjones@....."
Subject="Application" TYPE="HTML">
Best Regards,
Johan Coens
-----Original Message-----
From: Jim Watkins [mailto:[EMAIL PROTECTED]]
Sent: woensdag 2 augustus 2000 13:55
To: [EMAIL PROTECTED]
Subject: CFIF and CFMAIL
The following will not work. Exactly what do I need to do to change the
mail header based on a variable? I sure would appreciate help on this :)
<cfoutput>
<cfif #campus# is blairsville>
</cfoutput>
<CFMAIL query="getappinfo" From="#fname# #lname#"
To=jjones
Subject="Application" TYPE="HTML">
<cfelse>
<CFMAIL query="getappinfo" From="#fname# #lname#"
To=fsmith
Subject="Application" TYPE="HTML">
etc, etc,
</cfmail>
</cfif>
Jim Watkins
http://www.clarkes.tec.ga.us/blairsville
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.