Hi,
Sorry for the earlier message, my fingers were going faster than my brain...
My experience with mail servers is that they won't send mail without a valid
"From" address. This is how I take care of that.
<!--- Check User's Email Address --->
<CF_IsEmail EMAIL="#GetAward.ShipEmail#">
<CFIF ISEMAILRESULT>
<cfset Email = '#GetAward.ShipEmail#'>
<CFELSE>
<cfset Email = '[EMAIL PROTECTED]'>
</cfif>
<!--- Send Mail --->
<cfmail to="[EMAIL PROTECTED]"
from="#Email#"
subject="ORDER - #12345"
bcc="[EMAIL PROTECTED]"
type="HTML">
You can get the <CF_IsEmail> tag from the Developers Exchange.
--Bill
-----Original Message-----
From: Hamid Hossain [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 17, 2001 2:39 AM
To: CF-Talk
Subject: CFMAIL problem
Hi All,
I am tring to send email with <cfmail> but I am facing
some problems. Some times it sends and some time it
does not send!
I am sure that all form variables are passed and they
are ok.
I used the following standard code:
<cfif IsDefined("SendIt")>
<cfmail from="#FORM.sEmail#"
to="[EMAIL PROTECTED]"
subject="#FORM.sSubject#"
type="HTML">
#FORM.sBody#
</cfmail>
<b>Done</b>
</cfif>
The word (Done) always appear but sometimes no email
could be received. It is not delay time. it is a real
problem.
any suggestions
Hamid Hossain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists