You shouldn't use TODOMAIN in your DATA template.  The TODOMAIN parameter is only 
really useful in the RCPT template or in the DATA
template when there is a single recipient.  You should be getting the recipient 
information from the RCPTLIST (I know it's not your
code).

HTH,

Howie

----- Original Message -----
From: "Greg Silver" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 3:21 PM
Subject: RE: [iMS] code trouble


> howie.... i went back the the origonal template...
>
> so far what i have found out is:
> 02/08/2002 02:50:01 PM [004] DATA START
> 02/08/2002 02:50:01 PM [004] LOCAL: [EMAIL PROTECTED]   <--- <INLOG
> TEXT="LOCAL: #form.rcptlist#">
> 02/08/2002 02:50:01 PM [004] RELAY: [EMAIL PROTECTED] <--- <INLOG
> TEXT="RELAY: #form.relaylist#">
> 02/08/2002 03:07:52 PM [016] GETUSER QUERY VARIABLES <--- <INLOG
> TEXT="GETUSER QUERY VARIABLES">
> 02/08/2002 03:07:52 PM [016] todomain = digital.net <--- <INLOG
> TEXT="todomain = #todomain#">
> 02/08/2002 02:50:01 PM [004] emailaddr = greg <--- <INLOG TEXT="emailaddr
> = #emailaddr#">
> 02/08/2002 02:50:01 PM [004] GETUSER QUERY RECORD COUNT <--- <INLOG
> TEXT="GETUSER QUERY RECORD COUNT">
> 02/08/2002 02:50:01 PM [004] 0 <--- <INLOG TEXT="#getuser.recordcount#">
> 02/08/2002 02:50:01 PM [004] DATA END
>
> can we say... CONFUSED to why it is taking the greg from the LOCAL address
> and the digital.net from the RELAY address?!?!
>
>
>
> here is code in that area:
>
>
> <cfset RCPTs=form.rcptlist>
>
> <cfoutput>
> <INLOG TEXT="LOCAL: #form.rcptlist#">
> <INLOG TEXT="RELAY: #form.relaylist#">
> </cfoutput>
>
> <cfset counter=listlen(RCPTs)>
>
> <!--- loop through all the RCPTs --->
> <cfloop index="rcptloop" from="1" to="#counter#">
>
>    <cfset emailaddr="#listgetat(rcpts,rcptloop)#">
>
>    <cfset orgemailaddr=emailaddr>
>
>    <cfif find("@",emailaddr) gt 0>
>       <cfset emailaddr=left(emailaddr,find("@",emailaddr)-1)>
>    </cfif>
>
>    <cfquery name="getuser" datasource="#application.maildsn#">
>       select * from (pops inner join aliases on
> pops.accountnum=aliases.accountnum)
>       inner join domainaliases on aliases.domain=domainaliases.domainid
>       where domainaliases.domain='#todomain#' and alias='#emailaddr#'
>    </cfquery>
>
==^=======================================================
     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