Uhm, Eh, Eeer...oops.

Let me rephrase my last post:
"I have seen CFMAIL spool and deliver 30,000 emails per day successfully.
The good news is that should something become underiverable, you keep the
original AND get an entry to the Mail.log or Error.log explaining why it
could not route out.  Sometimes, I suggest CDONTS if you are on NT.  I will
post a template for reuse."

//////////////// Index.cfm ///////////////////
<CFFORM ACTION="SendEmail.cfm">
To<CFINPUT
 TYPE="Text"
 NAME="To"
 SIZE="40"
 VALUE="">
<BR>
From<CFINPUT
 TYPE="Text"
 NAME="From"
 SIZE="40"
 VALUE="">
<BR>
Subject<CFINPUT
 TYPE="Text"
 NAME="Subject"
 SIZE="40"
 VALUE="">
<BR>
Bcc <CFINPUT
 TYPE="Text"
 NAME="Bcc"
 SIZE="40"
 VALUE="">
<BR>
Cc <CFINPUT
 TYPE="Text"
 NAME="Cc"
 SIZE="40"
 VALUE="">
<BR>
MailFormat<CFSELECT
 NAME="MailFormat"
 SIZE="1"
 REQUIRED="Yes">
 <OPTION VALUE="0">0-MIME Format</OPTION>
 <OPTION VALUE="1" selected>1-Plain Text Format</OPTION>
 </cfselect>
<BR>
BodyFormat <CFSELECT
 NAME="BodyFormat"
 SIZE="1"
 REQUIRED="Yes">
 <OPTION VALUE="0">0-HTML Format</OPTION>
 <OPTION VALUE="1" selected>1-Plain Text Format</OPTION>
 </cfselect>
<BR>
Importance <CFSELECT
 NAME="Importance"
 SIZE="1"
 REQUIRED="Yes">
 <OPTION VALUE="0">0-Low</OPTION>
 <OPTION VALUE="1" selected>1-Normal</OPTION>
 <OPTION VALUE="2">2-High</OPTION>
 </cfselect>
<BR>
<TEXTAREA NAME="Body" ROWS="11" COLS="50" WRAP="Physical"></TEXTAREA><BR>
<INPUT TYPE="Submit" VALUE="Send Email!">
</cfform>
//////////////// Index.cfm ///////////////////

/////////////// SendEmail.cfm ////////////////////
<CF_Mail
 from="#Form.From#"
 to="#Form.To#"
 Cc="#Form.Cc#"
 Bcc="#Form.Bcc#"
 subject="#Form.Subject#"
 Body="#Form.Body#"
 MailFormat="#Form.MailFormat#"
 BodyFormat="#Form.BodyFormat#"
 Importance="#Form.Importance#"
 >
/////////////// SendEmail.cfm ////////////////////

///////////////// Mail.cfm //////////////////
<!---// Variables to be passed to the CDONTS template //--->
<cfparam name="Attributes.BodyFormat" default=1>
<cfparam name="Attributes.MailFormat" default=1>
<cfparam name="Attributes.Bcc" default="">
<cfparam name="Attributes.Cc" default="">
<cfparam name="Attributes.Importance" default=1>

<cfobject type="COM" name="objNewMail" CLASS="CDONTS.NewMail"
action="Create">
<cfset objNewMail.From    = Trim(Attributes.From)   >
<cfset objNewMail.To    = Trim(Attributes.To)     >
<cfset objNewMail.Subject   = Trim(Attributes.Subject)  >
<cfset objNewMail.Body    = Trim(Attributes.Body)   >
<cfset objNewMail.Cc    = Trim(Attributes.Cc)     >
<cfset objNewMail.Bcc    = Trim(Attributes.Bcc)   >
<cfset objNewMail.MailFormat = Trim(Attributes.MailFormat)  >
<cfset objNewMail.BodyFormat = Trim(Attributes.BodyFormat)  >
<cfset objNewMail.Importance = Trim(Attributes.Importance)  >
<cfset temp      = objNewMail.Send()    >
<cfset objNewMail     = ""        >
///////////////// Mail.cfm //////////////////

Sorry about the iisPOP3 fiasco!

~.net�

----- Original Message -----
From: "Len Conrad" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, August 05, 2001 05:11
Subject: Re: CFMail - caveats?


>
> >Try CFX_iiPOP3
> >http://iistore.infranet.com
>
> How does a POP3 tag remplace an SMTP client tag?
>
> Len
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to