Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What could be wrong in this case when I try to send an email?

Status
Not open for further replies.

joannyk

Programmer
Jan 16, 2001
18
HK
Dear All,

I get this error message in the mail log file after I've run a cfm program to send an email. Is it possible the problem with the email server but not the coldfusion server itself?

"Error","TID=197","05/03/01","14:56:39","Failed to send the spooled mail file, C:\CFUSION\MAIL\spool\8809.cfmail. SMTP server replied "Internal error: Pending mail operations must be completed." Moved file to C:\CFUSION\MAIL\undelivr\880D.cfmail."

Thanks for help!
 
Hey joannyk,

That looks like a problem with the mail server. Usually when the CF mail log has something to the effect of "SMTP server replied..", this indicates that the mail message was composed properly and CF could connect to the SMTP server but something was keeping the mail server from taking delivery of the message. This is often has to do with mail server security as they sometimes employ relaying restrictions that keep CF from sending messages.

I would check with your mail server admin on this one.

Good luck,
GJ
 
Thanks GunJack!!

I have checked out with the mail server regarding to what u said. Actually since I'm not the one who in charge of the mail server so I just got the info. from other guys in charge saying that they have no restriction ever done to cf. So I have tried to send 3 emails out at a time which all 3 receipents could get the mail sucessfully then I tried another go with 400 emails sending at the same time by calling <cfmail query=&quot;subscriber&quot; to=&quot;#Email#&quot; from=&quot;xxx&quot; subject=&quot;xxx&quot; server=&quot;xxx&quot; type=&quot;HTML&quot;> which the #Email# variables were list of email addresses retreived from the database. However, this couldn't be done that the same error messages were found in the mail log file again! I wonder if cf server has limitation to handle too much email at a time and can only cope with small list of email at once.

Any suggestion?
 
I believe there is a limitation to how many e-mails you can send in one <cfmail> call. I have run into problems with CF 4.0.1 where the mailer actually stopped working because of what appeared to be too many recipients.

I may not understand you correctly but it sounds like you're trying to send all 400 at once with a single <cfmail> statement. If this is the case, I would suggest just looping through your e-mails and sending them one at a time. You could try something like this:

<cfloop list=#emails# index=&quot;x&quot;>
<cfmail to=#x# from=&quot;...> </cfmail>
</cfloop>

This is a simple way to do it but I would recommend spending a little effort on modifying your loop so it can send 5 or more at a time to cut down on the amount of <cfmail> calls.

Hope this helps,
GJ
 
I am running into this exact same problem with cfserver4.5. However, I'm sending only one email from a test page. I'm running cfserver4.0 on another machine. It works fine-- no email send problems at all. Both are set up to use the same SMTP mail server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top