|
|
Home / Groups / ColdFusion Newbie (CF-Newbie)
CFMail problemsWhen I have mail issues the first thing I check is the logs installDrive:\CfInstallDir\logs\mail.log for me ( c:\Cf8\Logs\mail.log ) and check if the mail is going to c:\Cf8\mail\spool then to c:\Cf8\Mail\undelivr. If you can actually see the file is in spool then move to undelivr ( watch the dir as you run your <cfmail ) then it possible it's a problem with the connection to the mail server (relaying for that domain was denied at the mail server has caught me out once ). The logs will generally give you some clue as to what is going on. If it goes to spool and doesn't end up in undelivr then maybe the mail server is accepting the mail but discarding it? Once CF passes mail to the mail server and its accepted cf presumes it was sent out. Paul. I can't for the life of me figure out why my CFMail tags don't work. It works fine on one server, but not on another--so that makes me think that the code is fine. According to our system administrator (who handles ColdFusion Administrator for the server where the code doesn't work) it's set up properly. He has the mail server set in the administrator and can verify that the connection works. I've tried specifying the mail server in my tag as well as leaving it out. <cfmail Subject="New loan application" From="donotreply@domain.com" To="lendingcenter@domain.com" server="mail.domain.com"> <CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE="No"> A new loan application has been submitted. Please login with your username and password to view the application... ------------------------------------------------------------------- applicant information: Name: #FORM.fname# #FORM.lname# </CFPROCESSINGDIRECTIVE> </cfmail> Even if I use the following (very simple) code, it doesn't work. <cfmail subject="This is a test" from="donotreply@domain.com" to="anotheraddress@domain.com"> This is a test. </cfmail> No error messages are thrown--the e-mail is just not sent. Can anybody give me possible reasons why cfmail tags might not work? Thanks! Chris |
Mailing Lists
|
Latest Fusion Authority Articles
|