Stevo,


I think I understand.  If so, it should be as simple as this:


<CFIF trim(Email) EQ "">
    <CFSET Email = "[EMAIL PROTECTED]">
</CFIF>


<cfmail to="#CompanyEmail#" cc="[EMAIL PROTECTED]" from="#Email# "
subject="leads #CategoryText# Lead">#CategoryText#
<cfif CategoryID IS 2>Company Name: #FORM.CompanyName#</cfif>


If you don't want to do it in a separate statement you can put this in
the FROM field:


FROM="#iif(email EQ '',DE('[EMAIL PROTECTED]'),email)#"


Try that too.  I didn't test it...it might need to be  #iif(email EQ
'',DE('[EMAIL PROTECTED]'),DE(email))#


One of those should work.


HTH


Dave Phillips

________________________________

From: Stevo Vee [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 7:26 PM
To: CF-Talk
Subject: Cfmail

Please Help. I am changing some forms and actions on my website. I have
a lead subscription website and currently the lead emails that go to my
subscribing companies have my websites email as the sent and reply
email with the customers in the form.  I am changing to have the
potential
customers as the from and reply email now which I have acomplished.
HOWEVER, now if the customer does not have an email the lead gets lost
in
cyber space. How can I make add a rule that if the customer has no
email and only phone that it at least goes to me or my subcribing
companies
using perhaps my websites email acting as a default?? Below is the
current code: Your help or advice would be greatly appreciated. Thanks.

<cfmail to="#CompanyEmail#" cc="[EMAIL PROTECTED]" from="#Email# "
subject="leads #CategoryText# Lead">#CategoryText#
<cfif CategoryID IS 2>Company Name: #FORM.CompanyName#</cfif>
________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to