The problem here is that cfmail doesn't block while the file is in the
spool. You are either going to need to adapt your code to support some
sort of asynchronous events or use a mail library you can serialize e.g.
javax.mail.

Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
V: 415-577-8070
F: 415-341-8906
P: [EMAIL PROTECTED]

> -----Original Message-----
> From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 7:15 PM
> To: CF-Talk
> Subject: Re: CF vs. ASP
> 
> Pablo Varando wrote:
> > Well what code are you using to loop through and send the emails?
> 
> <cfset thefile = "d:\cdr\p.jpg">
> <cfmail from="#email#" to="#email#" subject="test">
> <cfmailparam file="#thefile#">
> test
> </cfmail>
> <cffile action="delete" file="#thefile#">
> 
> Error in the mail.log:
> "Error","scheduler-4","08/27/02","04:03:47",,"Sending failed;   nested
> exception is:         javax.mail.MessagingException: IOException while
sending
> message;   nested exception is:       java.io.FileNotFoundException:
> c:\cfusionmx\wwwroot\www\p.jpg (The system cannot find the file
> specified)"
> 
> Mail spool interval: 1 second.
> 
> 
> > Post an example, maybe that there's soething there that might be
causing
> the
> > problem.
> 
> Please take a good look at the mail spool format and see for yourself
> what is happening. Just read a spooled email with an attachment and it
> is quite obvious.
> 
> Jochem
> 
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to