>     What is the advantage of writing the file into spooldir of IIS than
> writing into sppoldir of ColdFusion?
>
>   Which one is a best solution? The one given by Justin or present at:
> http://jochem.vandieten.net/coldfusion/customtags/advancedemail/

The "best" solution will depend on the available resources and many other
factors, but there are clear advantages if you can get around CF's mail
spooler.

Let's say you run an IIS SMTP spooler on the same machine as your CF server,
or one that you can access a pickup directory for over the network.  We'll
also assume your mail server setting in the CF admin is configured to use
this server.

If you use a regular CFMAIL tag or drop files directly into CF's spool
directory, CF will need to pick those up, then connect the the SMTP server
and send the message to it (similar to an e-mail originating at your mail
client).  The SMTP server will now need to spool the message to the
destination mail server.  CF only checks it's spool directory every few
minutes, so messages appear to be "delayed" to the end user.  This is very
resource intensive and can bring a server to it's knees very quickly.

By writing the file directly to the pickup directory of the SMTP service
itself, IIS can pick up the file and immediately send it to the destination
mail server.  Since IIS' SMTP service picks up files right away, messages
get to the end user more quickly.  Naming the spooled messages using
CreateUUID() allows tens of thousands of messages to be spooled at once.

Having the SMTP service on a different machine will also help performance if
you do massive amounts of mailings.  Just have the messages written to the
pickup directory of the other server using a network share.

-Justin Scott, Lead Developer
 Sceiron Internet Services, Inc.
 http://www.sceiron.com


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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