Here is the entire contents on the mail that it generates(replaced sensitive
with "foo"):
----------------------------------------------------------
x-cf-version: 4.5.0
x-cf-server: foo
x-cf-port: 25
x-cf-timeout: 60
x-cf-from: [EMAIL PROTECTED]
x-cf-to: [EMAIL PROTECTED]
----------------------------------------------------------
and that's all that it puts into the spool directory.  

This actually gets to me, but in outlook the "to:" is blank.  Only one is
generated, and the loop only happens once.(loop is in there for my
debugging).  I've pulled the most relavent parts.

The #emailing# would actually be in the to="" attibute, I've stuck it down
there for bebug and hardcoded my own address.


___________________________________________________________
<cfparam name="filesToSendList" type="string" default="">

<cfif len(form.Attachment1)>
        <cffile action="UPLOAD" filefield="form.attachment1"
destination="c:\temp\" nameconflict="OVERWRITE">
        <cfif not listFindNoCase( filesToSendList,  file.serverFile )>
                <cfset filesToSendList = listAppend( filesToSendList,
file.serverFile )>
        </cfif> 
</cfif>

<cfif len(form.Attachment2)>
        <cffile action="UPLOAD" filefield="form.attachment2"
destination="c:\temp\" nameconflict="OVERWRITE">
                <cfif not listFindNoCase( filesToSendList,  file.serverFile
)>
                <cfset filesToSendList = listAppend( filesToSendList,
file.serverFile )>
        </cfif> 
</cfif>

<cfif len(form.Attachment3)>
        <cffile action="UPLOAD" filefield="form.attachment3"
destination="c:\temp\" nameconflict="OVERWRITE">
        <cfif not listFindNoCase( filesToSendList,  file.serverFile )>
                <cfset filesToSendList = listAppend( filesToSendList,
file.serverFile )>
        </cfif> 
</cfif>

<cfset loop = 0>
<!--- mail to all the to and cc people --->
<cfloop list="#toList#,#ccList#" index="emailing">
<cfset loop = loop + 1>
<cfoutput>#loop#</cfoutput>
<cfmail
        subject="#attributes.subject#"
        from="#client.email#"
        to="[EMAIL PROTECTED]"
><cfsilent>

        <cfif len(filesToSendList)>
                <cfloop list="#filesToSendList#" index="i">
                        <cfmailparam file="#FILE.ServerDirectory#\#i#">
                </cfloop>       
        </cfif>
        
        <cfif isDefined( 'attributes.deliveryNotification' )>
                <!--- these two generate a read receipt --->
                <cfmailparam name="X-RCPT-TO:"
value="[EMAIL PROTECTED]">
                <cfmailparam name="Disposition-Notification-To"
value="[EMAIL PROTECTED]">
                <!--- Return-Receipt-To gives a delivered notification --->
                <cfmailparam name="Return-Receipt-To"
value="[EMAIL PROTECTED]">
        </cfif>

</cfsilent>#emailing# TO: #toGroupList#
<cfif len(ccList)>CC: #ccGroupList#</cfif>

#attributes.messageBody#
</cfmail>

</cfloop>
___________________________________________________________


-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 2:11 PM
To: CF-Talk
Subject: Re: Problem with CFMAIL attachements

Could you post the code from the mail tag?



"Success is a journey, not a destination!!"



Doug Brown
----- Original Message -----
From: "Smith, Matthew P -CONT(DYN)"
<[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 11:27 AM
Subject: RE: Problem with CFMAIL attachements


> Ok, the file from the form is uploaded to the temp directory
fine, it bombs
> when it hits the cfmail tag.
>
> It works on the development server, but not on the production
box.  We
> looked at both c:\temp and c:\cfusion\mail\spool on both boxes
and both have
> permissions set up the same.
>
> Matthew P. Smith
> Web Developer, Object Oriented
> Naval Education & Training Professional
> Development & Technology Center
> (NETPDTC)
> (850)452-1001 ext. 1245
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Smith, Matthew P -CONT(DYN)
[mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 12:42 PM
> To: CF-Talk
> Subject: RE: Problem with CFMAIL attachements
>
> I'll get with the nt admin to help me with this, but..
>
> How does this apply to end-user web users?  Or does the iuser
account need
> to be put into the take ownership of files permission?
>
> Thanks for the help.
>
> Matthew P. Smith
> Web Developer, Object Oriented
> Naval Education & Training Professional
> Development & Technology Center
> (NETPDTC)
> (850)452-1001 ext. 1245
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Douglas Brown [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 12:32 PM
> To: CF-Talk
> Subject: Re: Problem with CFMAIL attachements
>
> Yeah, it has to do with the NT permissions. I have the same
> problems at times writing to the server when I am logged on as a
> power user and not an administrator. You need to go into local
> security policies under local policies/uers right
assignment/take
> ownership of files and add power users etc to the security
policy
> .
>
>
>
>
> "Success is a journey, not a destination!!"
>
>
>
> Doug Brown
> ----- Original Message -----
> From: "Smith, Matthew P -CONT(DYN)"
> <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, April 26, 2002 10:10 AM
> Subject: Problem with CFMAIL attachements
>
>
> > In the mail app I am working on, this error happens when
trying
> to cfmail
> > with attachments:
> >
> > Unable to write mail message to disk. An unexpected error
> occurred while
> > attempting to save the mail message.
> >
> > Here's the frustrating part:  it works fine for me, but on my
> bosses machine
> > it doesn't.  It seems to happen only when trying to send with
an
> attachment.
> > I can send attachments just fine.  I have tried other
computers
> logged
> > in(nt-wise) as someone else, and the same error occurs.  I am
> logging in as
> > my boss as far as the cf app goes.
> >
> > Could it have something to do with nt/windows permissions? The
> cffile is
> > going to c:\temp as below:
> > <cffile action="UPLOAD" filefield="form.attachment1"
> destination="c:\temp\"
> > nameconflict="OVERWRITE">
> >
> > However, it seems to be erroring writing the mail message, not
> the file to
> > be attached.
> >
> > I've search all around for similar problems.  In the
macromedia
> CF forums,
> > there have been a couple of similar posts, but none have been
> answered.
> >
> >
> > Thanks for any help.
> >
> >
> > Matthew P. Smith
> > Web Developer, Object Oriented
> > Naval Education & Training Professional
> > Development & Technology Center
> > (NETPDTC)
> > (850)452-1001 ext. 1245
> > [EMAIL PROTECTED]
> >
>
__________________________________________________________________
> ____
> > 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/cf-talk@houseoffusion.com/
> > Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists
> >
>
>
>
>
__________________________________________________________________
____
> 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/cf-talk@houseoffusion.com/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists
>


______________________________________________________________________
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to