Or do not use CF mail because it is so terrible. Get the free, at least for
a year, or purchase IMS mail poster, It has all of the tools that CFMAIL is
lacking and tags for CF for it.
I use it with the fusebox cfcontent tag to create the body. (See how I
pulled in back OT). Look at this code.
<cf_bodycontent name="emailbody">
<cfoutput>
<BODY bgcolor="white" topmargin="0" bottommargin="0">
<blockquote>
Dear Administrator,<br>
<p>A new user, #checkforuser.Title# #checkforuser.FirstName#
#checkforuser.LastName#, has requested an account. </p>
<blockquote>
#checkforuser.Address1#<br>
#checkforuser.City#, #checkforuser.State# #checkforuser.Zip#<br>
#checkforuser.Phone#<br>
#checkforuser.Email#<br>
</blockquote>
<hr>
-- Application Manager<br>
</blockquote>
</body>
</cfoutput>
</cf_bodycontent>
<cfx_iMSMail
priority="0"
smtpto="#request.admin_email_address#"
header_to="#request.admin_email_address#"
smtpfrom="#request.admin_email_address#"
header_from="#request.admin_email_address#"
header_subject="New User"
html="#request.emailbody#">
----- Original Message -----
From: "John Smith" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 12:59 AM
Subject: RE: OT: CFServer taking 100% processor
> DNS goes down, your application cannot send the mail spool fills . . .
just
> set the var in your app_globals/app_locals and call for the server
attribute
> in the CFMAIL tag.
>
> john
>
> -----Original Message-----
> From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
> Sent: 20 April 2001 05:37
> To: Fusebox
> Subject: Re: OT: CFServer taking 100% processor
>
>
> > 8. Set the address of the mail server using IP address not DNS name.
>
> I'm wondering .. why is this important? This could be a huge pain if the
> mail server has to assume a new IP address, which happens often enough to
> make it annoying to update all those "old apps"...
>
> Todd
>
> ----- Original Message -----
> From: "John Smith" <[EMAIL PROTECTED]>
> To: "Fusebox" <[EMAIL PROTECTED]>
> Sent: Thursday, April 19, 2001 11:52 PM
> Subject: RE: OT: CFServer taking 100% processor
>
>
> > Just to add to Steve's list.
> >
> > 1. Move your client variable store from Registry to an ODBC/OLEDB/native
> > datasource - necessary tables are generated automatically when you
switch
> to
> > the datasource - we use SQL Server7 for this.
> >
> > 2. Limit simultaneous requests to say 5 per CPU **and** set resart on
> > unresponsive threads to < this limit, say 3.
> >
> > 3. Set your template cache to approx. 5x the total Mb of your CFML code
> > pages e.g. if you have 5Mb of code then set it to 25Mb.
> >
> > 4. Restart both cfserver.exe and cfexec.exe daily
> >
> > 5. Reboot the box once a week
> >
> > 6. Deprecate the use of CFINSERT and CFUPDATE
> >
> > 7. Check that you don't have CFMAIL with an empty BODY attribute
> >
> > 8. Set the address of the mail server using IP address not DNS name.
> >
> > Using the above we've gone from the same/similar scenario as
yourselves,
> > 100% CPU usage and having to reboot several times daily to clean server
> logs
> > and 100% uptime for the past three weeks.
> >
> > John
> >
> > -----Original Message-----
> > From: Steve Nelson [mailto:[EMAIL PROTECTED]]
> > Sent: 19 April 2001 20:46
> > To: Fusebox
> > Subject: Re: OT: CFServer taking 100% processor
> >
> >
> > A few things:
> >
> > 1) make sure you're running cf 4.5 SP2
> > 2) turn on Log Slow Pages, it's under Logging-Settings See if you can
> > pinpoint which pages are taking too long that will help to figure out
> > the problem.
> > 3) How many hits are you getting? is it possible you've just maxed out
> > the server?
> > 4) Check your web server logs to see if you're being hacked. Look for a
> > lot of requests with the same IP address.
> > 5) Turn on logon/logoff auditing in NT. Then check your NT security
> > events to see if you're being hacked. look for a lot of event ID 529.
> > That means a bad password
> > 6) Try lowering your simultaneous requests to the number of processors
> > on the server.
> > 7) Do you have automatic locking turned on? Turn it off.
> >
> > Try those.
> >
> > Steve
> >
> > Brian Doyle wrote:
> > >
> > > Hiya folks,
> > > We launched our fuseboxed site in January and have had essentially no
> > > problems up until recently. Starting yesterday the CF server has hung
> at
> > > 100% CPU time intermittently. We've tried a number of different ways
to
> > > figure it out but we're stumped, as is out network guy. We haven't
> added
> > > anything in the past two days (other than a flash banner which we've
> since
> > > deactivated). The logs aren't full. We're running it on a 2000
server
> > with
> > > SQL 7.0 as well (although SQL isn't freaking out).
> > >
> > > I know its one of those stab in the dark questions, but we can't
figure
> > out
> > > what it could be. Any help would be greatly appreciated.
> > >
> > > Thanks!
> > >
> > > -Brian
> > >
> > >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists