If that doesn't work, maybe someone knows a way to get the default mail server
value from the server using Java? If so, then you could do this:
<CFSET variables.defaultserver = some java code to get it >
<cfmail to="someone" from="someoneelse"
server="#iif(isdefined("variables.server"),DE(variables.server),DE(variables.defaultserver)
>
In my apps, I've always known what my default mail server was, and had code
like this, but I didn't need to use the Java because my default server was
static. If you know the default server already, then you could do it this way,
but I was assuming that you might not know it (for example if you were in a
shared environment).
HTH,
Dave
-----Original Message-----
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Monday, August 22, 2005 5:30 PM
To: CF-Talk
Subject: RE: cfmail optional attributes
Just a shot in the dark here, but can you use the iif function? Something
like
<cfmail to="someone" from="someoneelse"
#iif(isDefined("variables.server"),DE('server="#variables.server#"'),DE(''))
#>
body
</cfmail>
******************************************************************************************
The information contained in this message, including attachments, may contain
privileged or confidential information that is intended to be delivered only to
the
person identified above. If you are not the intended recipient, or the person
responsible for delivering this message to the intended recipient, ALLTEL
requests
that you immediately notify the sender and asks that you do not read the
message or its
attachments, and that you delete them without copying or sending them to anyone
else.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:216025
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54