I just created the test shown below on our development server and here is what 
I found if the attribute server is specified in cfmail, but is empty:

On BlueDragon 6.2 the mail went to the undeliverable directory

On CFMX 6.1 & CF5 the following error was thrown: "The value of the attribute 
SERVER is invalid. The length of the string, 0 character(s), must be greater 
than or equal to 1 character(s)."

<cfif IsDefined('test') >
<cfset variables.server = "">
<cfmail to="[EMAIL PROTECTED]"
        from="[EMAIL PROTECTED]"
        subject="TEST on #Server.ColdFusion.ProductName# 
#Server.ColdFusion.ProductVersion#"
        server="#variables.server#">
        TEST on #Server.ColdFusion.ProductName# 
#Server.ColdFusion.ProductVersion#
#variables.server#
</cfmail>
<cfoutput>
Message Sent on 
#Server.ColdFusion.ProductName# #Server.ColdFusion.ProductVersion# 
Mail Server: #variables.server#
</cfoutput>
<br>
</cfif>
<a href="/bd/temp/cfmail.cfm?test=true">Blue Dragon</a><br>
<a href="/cfmx/temp/cfmail.cfm?test=true">CFMX</a><br>
<a href="/cf5/temp/cfmail.cfm?test=true">CF5</a>

>I've never had this experience with the server attribute... what
>version of CF is this?
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213309
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to