It's best to use the functionality that built into iMS and the cfx tag.  I would do 
something like:

<cfx_imsmail query="GetSubs" queryfield="email" header_to="<:smtpto:>"
partokens="yes" qtokens_password="password"
header_from="#GetMgr.email#" header_subject="#Form.subject#"
header_return_path="#GetMgr.email#" smtpfrom="#GetMgr.email#"
hostname="adsl-66-123-210-58.dsl.snfc21.pacbell.net"
body="#Form.body#"
token_msgfooter=" ________________________________________________________________
#attributes.StaticFooter#
Unsubscribe / search archive at above URL with this Sign-in:
Email / Password: <:smtpto:> / <:password:>
List Name: #GetListName.ListName#"
>

The above assumes that your tokens delimiters are the default of "<:" and ":>" and 
that the password column in the db is called
"password."

HTH,

Howie

----- Original Message -----
From: <[EMAIL PROTECTED] (paul smith)>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 6:30 PM
Subject: [iMS] Sending to a List


> Is this the best way to send mail to a list?
>
> <cfoutput query="GetSubs">
> <cfx_imsmail smtpto="#GetSubs.email#" header_to="#GetSubs.email#"
> header_from="#GetMgr.email#" header_subject="#Form.subject#"
> header_return_path="#GetMgr.email#" smtpfrom="#GetMgr.email#"
> hostname="adsl-66-123-210-58.dsl.snfc21.pacbell.net" body="
> #Form.body#
>
> ________________________________________________________________
> #attributes.StaticFooter#
> Unsubscribe / search archive at above URL with this Sign-in:
> Email / Password: #GetSubs.email# / #GetSubs.password#
> List Name: #GetListName.ListName#
> ">
> </cfoutput>
>
> best,  paul
>
==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================


Reply via email to