Hi everyone,
I'm trying to working with email in coldfusion. My problem that I want to know whether my email sent successfully or not?
Anyone can give me a solution.
Many thanks.
GArlington - 03 Jul 2008 10:32 GMT
> Hi everyone,
> I'm trying to working with email in coldfusion. My problem that I want to know whether my email sent successfully or not?
> Anyone can give me a solution.
> Many thanks.
Read CF docs about <cfmail ...> tag... In details...
dongzky - 03 Jul 2008 11:25 GMT
you mean like the mailer-daemon thing? or you want a value to be returned in cf the sending success status as true or false?
Dan Bracuk - 03 Jul 2008 14:38 GMT
Do you have a mailsent log file?
fxdinh - 04 Jul 2008 08:32 GMT
Yes, dongzky, you're right. I still not solve my problem.
dongzky - 04 Jul 2008 09:39 GMT
which one is right? the mailer daemon thing? if you want this, then I think all
you need to do is set the [b]failto [/b] parameter of your cfmail tag with the
email you want the failure notification to be sent to.
but if you want your cf app to give you the true or false value, then maybe
you should have a mailsent log file mentioned by Dan and make some checkings on
that file. you can enable this log in the cf admin under Mail in the server
settings. Once enabled, if you're using cf8, the log is usually created/updated
in C:\ColdFusion8\logs\mailsent.txt every cfmail. There, you can let cf(maybe
try doing some cffile) read and parse the file and do some checkings in order
for your cf app to determine if the mail has been succesfully sent or not.
fxdinh - 10 Jul 2008 04:39 GMT
dongzky, thank you very much. I will try it.