Solved

CFMAIL function has stopped sending email

Posted on 2007-11-30
10
545 Views
Last Modified: 2013-12-24
On 11/27 a Coldfusion server error/event log grew rapidly in size reducing free space on the partition to almost nil unexpectedly. Many CF services began to fail/throw errors. I archived the offending log(s) &  moved them to a new partition, freeing up 1.4 G of space. I rebooted the server and all has appeared to be well except that the cfmail function no longer sends email. No error is thrown. CF logs indicate that it was sent. Using the CF Admin console I pointed the mail settings to another, newer SMTP server. The connection was verified but still cfmail does not work.  Thru Telnet I can get a greeting from the SMTP server so I do not think this is an NT issue.

 Any guidance as to what to check or try will be appreciated. The email admin and I are both stumped.

Note: Our development server which is set up virtually identical to the production server does properly send. And so far I have not found any CF Admin settings that are different between the two servers.
<cftry>

	<cfmail from="xxx@unc.edu" to="xxxx@mail.fpg.edu" 

		subject="cfmail test" server="smtp.fpg.edu" 

		type="html">

		<h2>Check to see if you get an email. If so, CFMAIL is working!</h2>

	

	</cfmail>

	<cfcatch type="any">

	<h2> something is not working right!</h2>

	</cfcatch>

</cftry>

Open in new window

0
Comment
Question by:krausdogs
  • 5
  • 3
10 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20383817
That is right is not working . Check your server name and make sure it is correctly spelled out.
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20383950
Also I think I know what the problem is . Along with the serve rtry to specify the user name , password and the port . That should work. I tried send the email without the server and it works
server=mail.myco.com,mail_admin:adm2qzf@mail2.myco.com:24
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20383962
Because i think your mail server requires authentication prior to be sent . TRy specifying user name an password and the port
0
 

Author Comment

by:krausdogs
ID: 20384040
eriktsomik,
I appreciate you quick responses but you are heading down a dead end. Nothing that you have mentioned above is relevant to this problem. The authentication, port, server name are all clearly established. The exact same code runs fine on the development server but not the production server.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 19

Expert Comment

by:erikTsomik
ID: 20384065
Compare the configuration of the prod server and dev server. I think it still has something to do with authentication
0
 

Author Comment

by:krausdogs
ID: 20384451
Help me out, compare what configuration(s) exactly? Please be more specific. What settings or parts of a particular configuration affect this cfmail function?  (Note: I have compared cfusion folder/file structures; cfadmin settings, NT services, and have far have found nothing different between the two yet.)

I'm curious, what do you think would make this SMTP authentication suddenly fail after 6 reliably working years? And how would you go about checking to see it this is an authentication issue? Where would you look?
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 20384498
In the server setting --> Mail there is a check box verify mail server connection . It should be uncheck
0
 

Author Comment

by:krausdogs
ID: 20391511
Issue resolved, I withdraw all points and close this question.

The winner (real expert on this one) was Critter, the head of my local CF user group. His solution:

"IIRC, there is a problem with a 0 byte mail file that will stop cfmail from working. Have a look in the cfusion... \spool folder and see if there is one. If so get rid of it."

My note:  a 1 kb file in the spool folder also needed to be removed--clearly corrupted since it could not be deleted until I removed the 2 char scribble with some new content.
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 23269248
Question PAQ'd, 500 points not refunded, and stored in the solution database.
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now