Someone on the list posted the core of this code last week - I'll pass
it along in Tag format.
This basically bypasses CFMAIL and dumps mail straight into the mailroot
spooler.
Thanks to whomever that was that posted the CFFILE code, you're my new
best friend!
<!---
===============================================
Tag Syntax
===============================================
<CF_SMTP_MAIL
smtp_file=""
smtp_mime=""
smtp_date=""
smtp_to=""
smtp_from=""
smtp_reply=""
smtp_subject=""
smtp_body="">
===============================================
Begin Tag
===============================================
--->
<cfscript>
// UDF
function cfparam(varname) {
var value = "";
if(arrayLen(Arguments) gt 1) value = Arguments[2];
if(not isDefined(varname)) setVariable(varname,value);
return evaluate(varname);
}
// Set Defaults
#cfparam("attributes.smtp_file","c:\inetpub\mailroot\pickup\#createuuid(
)#.txt")#;
#cfparam("attributes.smtp_mime","Content-type: text/plain")#;
#cfparam("attributes.smtp_date","#dateformat(now(), "ddd, d mmm yyyy")#
#timeformat(now(), "HH:mm:ss")# -0500")#;
#cfparam("attributes.smtp_to","[EMAIL PROTECTED]")#;
#cfparam("attributes.smtp_from","[EMAIL PROTECTED]")#;
#cfparam("attributes.smtp_reply","")#;
#cfparam("attributes.smtp_subject","SMTP Test")#;
#cfparam("attributes.smtp_body","This is a test of SMTP Mail Dump")#;
</cfscript>
<cffile action="write" file="#attributes.smtp_file#"
output="#attributes.smtp_mime#
Date: #attributes.smtp_date#
To: #attributes.smtp_to#
From: #attributes.smtp_from#
Reply-To: #attributes.smtp_reply#
Subject: #attributes.smtp_subject#
#attributes.smtp_body#
">
<!---
===============================================
End Tag
===============================================
--->
Joshua Miller
Web Development :: Programming
Eagle Web Development LLC
www.eaglewd.com
[EMAIL PROTECTED]
(304) 622-5676 (Clarksburg Office)
(304) 456-4942 (Home Office)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 19, 2002 6:21 PM
To: CF-Talk
Subject: cfmail error question
have I have no idea why this happened, but all of a sudden cfmail fails
every time it send out an email. I'm using the smtp service that comes
with IIS to send out mails. Seems that every time an email is sent it
goes right into the badmail directory. The error that is sent into the
badmail directory is 0xc00402ce. Also an eventid 4000 is logged in the
event viewer. Just wondering if any of you have come across this problem
and how to fix it. I have been on google groups and
support.microsoft.com for two days and have yet to find an answer other
a format and reinstall.
Anthony Petruzzi
Webmaster
954-321-4703
[EMAIL PROTECTED]
http://www.sheriff.org
______________________________________________________________________
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