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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFmail causes mail server parameter error...

Status
Not open for further replies.

rjuliano

MIS
Sep 30, 2003
7
US
I am using coldfusion to do a mail merge and all of a sudden the server will not mail. It gives me "An exception occurred when setting up mail server parameters" error and java.io.ioexception says it cannot file the specified file. But once I restart the service it works fine. Then it happens again the next day. The service never goes down. I'm stumped. I have a seperate cf server as a test server set up and the problem does not happen with that one using the same mail merge application. I set up both servers identical to each other but the live server still dies. I'm running Coldfusion MX 6.1 and using an exchange 2000 mail server. please help... thank you.

Rocco Juliano
Heart of Florida United Way
 
Here is a code snipet...


<cfmail to=&quot;#form.sample_email#&quot; from=&quot;#form.from# <#form.replyto#>&quot; subject=&quot;#form.subject#&quot; type=&quot;HTML&quot;>
First MI Last <br> Company Name, <br><br>#form.msg# <br>
<br>Send a blank email to <a href=&quot;mailto:#form.replyto#?subject=Please remove me from your mailing list&quot;>UNSUBSCRIBE</a><br><br>

<cfsilent>
<cfloop index=&quot;actCFFileIndex&quot; from=&quot;1&quot; to=&quot;#ArrayLen(MultiCFFile)#&quot;>
<cfmailparam file=&quot;#MultiCFFile[actCFFileIndex].ServerDirectory#\#MultiCFFile[actCFFileIndex].ServerFile#&quot;>
</cfloop>
</cfsilent>

</cfmail>
 
Did you ever get this issue fixed? I'm having the same problem.
 
The problem is fixed but I honestly don't remember how because it was a while ago... here is a current code snipet that works for me...

<cfmail to="#EMailAddress_email#" from="#form.replyto#" subject="#form.subject#" type="html">
<cfmailparam name="Message-id" value="<#CreateUUID()#@#CGI.SERVER_NAME#>">
<cfmailparam name="Reply-To" value="#form.replyto#">
<cfif isdefined("form.returnrcpt")>
<cfmailparam name = "Return-Receipt-To" value = "#form.replyto#">
<cfmailparam name = "Delivery-Receipt-To" value = "#form.replyto#">
<cfmailparam name = "Disposition-Notification-To" value = "#form.replyto#">
</cfif>
#Prefix# #FirstName# #MiddleName# #LastName# #Suffix#,
<cfif #OrgName1# neq "">
<br>#OrgName1# #OrgName2#,
</cfif>
<br><br>#form.msg# <br>
<br>Send a blank email to <a href="mailto:#form.replyto#?subject=Please remove me from your mailing list">UNSUBSCRIBE</a><br><br>

<cfsilent>
<cfloop index="actCFFileIndex" from="1" to="#ArrayLen(MultiCFFile)#">
<cfmailparam file="#MultiCFFile[actCFFileIndex].serverDirectory#\#MultiCFFile[actCFFileIndex].serverFile#">
</cfloop>
</cfsilent>
</cfmail>

Rocco Juliano
Heart of Florida United Way
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top