or you could do something like this, then you just push your emails as function args, <!--- Define the function to send email using the default mail server --->
<cffunction name="sendEmail" access="public" returnType="void">
<cfargument name="to" type="string" required="true">
<cfargument name="from" type="string" required="true">
<cfargument name="subject" type="string" required="true">
<cfargument name="message" type="string" required="true">
<cfmail to="#arguments.to#" from="#arguments.from#" subject="#arguments.subject#" server="#this.mail.server#">
<cfmailparam name="bcc" value="
bcc@example.com">
<cfmailparam name="cachedafter" value="#now()#">
#arguments.message#
</cfmail>
</cffunction>
<!--- Define functions for each mail server that calls the sendEmail function with the default mail server --->
<cffunction name="funMailserver1" access="public" returnType="void">
<cfargument name="to" type="string" required="true">
<cfargument name="subject" type="string" required="true">
<cfargument name="message" type="string" required="true">
<cfset sendEmail(to=
arguments.to, from="
default_sender@example.com", subject=arguments.subject, message=arguments.message)>
</cffunction>
<cffunction name="funMailserver2" access="public" returnType="void">
<cfargument name="to" type="string" required="true">
<cfargument name="subject" type="string" required="true">
<cfargument name="message" type="string" required="true">
<cfset sendEmail(to=
arguments.to, from="
default_sender@example.com", subject=arguments.subject, message=arguments.message)>
</cffunction>
<cffunction name="funMailserver3" access="public" returnType="void">
<cfargument name="to" type="string" required="true">
<cfargument name="subject" type="string" required="true">
<cfargument name="message" type="string" required="true">
<cfset sendEmail(to=
arguments.to, from="
default_sender@example.com", subject=arguments.subject, message=arguments.message)>
</cffunction>