GryphonsClaw
Programmer
I want to send a report with an excel document in it. I do not want to attach the file from the server, which involves using the CFFILE tag to write it and doing some kind of clean up afterwards after the mail has left the queue.
What I have so far works with GMAIL but not thunderbird. I'm just looping through the form to test it out.
ColdFusion 7 server. Any help appreciated, not an expert on the mime attachments and such.
Attach Code
<cfmail to="me@gmail.com"
subject="Quote"
from="webmaster@me.com">
<cfmailparam name="Content-Disposition" value="attachment;filename=Submission.xls">
<cfloop collection="#FORM#" item="Name">
<cfif Name NEQ "FIELDNAMES">
<b>#Name#</b><br>
#FORM[Name]#<br><br>
</cfif>
</cfloop>
</cfmail>
What I have so far works with GMAIL but not thunderbird. I'm just looping through the form to test it out.
ColdFusion 7 server. Any help appreciated, not an expert on the mime attachments and such.
Attach Code
<cfmail to="me@gmail.com"
subject="Quote"
from="webmaster@me.com">
<cfmailparam name="Content-Disposition" value="attachment;filename=Submission.xls">
<cfloop collection="#FORM#" item="Name">
<cfif Name NEQ "FIELDNAMES">
<b>#Name#</b><br>
#FORM[Name]#<br><br>
</cfif>
</cfloop>
</cfmail>