CFMBB - and several of my applications - use cfmail to send mail.
On some hosts, you don't need to include the SERVER, USERNAME, and
PASSWORD attributes.
On some hosts, you do.
I'd like to make this a non-required configuration option, but you
can't supply blank strings to these fields.
Seems to me the only way to deal with this would be something like this:
<cfif mailServer neq "">
<cfif mailUser neq "">
<cfmail ... server="#variables.mailServer#"
username="#mailUser#" password="#mailPass#"></cfmail>
<cfelse>
<cfmail ... server="#variables.mailServer#"></cfmail>
</cfif>
<cfelse>
<cfmail ...></cfmail>
</cfif>
Any better way to do this (besides using the attributes collection in CF8!)?
Rick
--
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285049
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4