Howie,

I'm trying to grab a header value from the CFX tag,
but keep getting a (CF) parameter not found error.
I thought header values where grabbed in the form
of: form.header_whatever_value, right? I'm trying to
record the header_email_id value. Here's my code...

<cfx_imsmail query="getRecpsGroup" queryfield="email" qtoken_fname="fname"
qtoken_lname="lname" qtoken_email="email" qtoken_company="company"
qtoken_cid="cid"
header_to="<:email:>" header_from="#attributes.from_address#" priority="0"
header_email_id="#variables.last_email_id#"
header_subject="#attributes.title#" SMTPTO="<:email:>"
SMTPFROM="#attributes.from_address#" failto="[EMAIL PROTECTED]"
HTML="#variables.content#"
body="#variables.content#"
PARSETOKENS="YES"
wordwrap="10"
log="yes">

<cfif Len(form.PermFailedList)>
<inlog text="POSTSTATUS: PermFailedList=#form.permfailedlist#">
<cfloop list="#form.permfailedlist#" index="email">
        <cfquery datasource="xertSuite" debug>
                insert into bounced_emails (emailAddress, hard, dateAdded, email_id)
                        values ('#email#', 1, #createODBCDateTime(now())#,
#trim(form.header_email_id)#)
        </cfquery>
</cfloop>
</cfif>

CF Error found in the POST log file...
#trim(form.header_email_id)#
05/28/2002 09:48:45 AM [023] WARNING: </PRE></P></P>Error near line 38,
column 56.<HR><P>Error resolving parameter
<B>FORM.HEADER_EMAIL_ID</B><P><P>The specified form field cannot be found.
This problem is very likely due to the fact that you have misspelled the
form field name.<P><P> <p>The error occurred while processing an element
with a general identifier of (#trim(form.header_email_id)#), occupying
document position (38:55) to (38:82) in the template file
C:\Inetpub\wwwroot\xSuite\SF_Module\mail_templates\REPORTPOSTSTATUS.cfm.</p>
<P><P>Date/Time: 05/28/02 09:48:45<BR>Browser: <BR>Remote Address:
60.106.71.0<P></TD></TR></TABLE><P>Please inform the <a
href="mailto:[EMAIL PROTECTED]";>site administrator</a> that this error
has occurred (be sure to include the contents of this page in your message
to the administrator).<P>

Thanks again, Jose

-----Original Message-----
From: Jose Gosende [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 12:52 PM
To: inFusion Support List
Subject: RE: [iMS] cfx_imsmail: parsing email addresses


I know for a fact the email addresses exist (as one the "failed" ones is
the one I'm typing from), so I'll add the SMTPTO attribute and see if
it changes anything. I really hope it does...
I'll keep you posted.

Thanks, Jose

-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 12:42 PM
To: inFusion Support List
Subject: Re: [iMS] cfx_imsmail: parsing email addresses


You need to make sure that your server is set up to use the default token
delimiters, "<:" and ":>" as you are using them in your
code.  BTW, if you want the email address in the TO header then you can use
the predefined token, SMTPTO.

Also, the TO address does not usually matter for message delivery (most
email servers ignore the headers) so the message should be
delivered even if the TO header is not correct.  So, more than likely, the
recipient address is invalid.

HTH,

Howie

----- Original Message -----
From: "Jose Gosende" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 12:34 PM
Subject: [iMS] cfx_imsmail: parsing email addresses


> When using the CFX tag, I keep getting bounced emails on email addresses
> that I know are valid. When I get the email source the email address is
> listed as "<:email:>" versus "[EMAIL PROTECTED]". Below is my code for the
CFX
> tag, any feedback is much appreciated.
>
> <cfx_imsmail query="getRecpsGroup" queryfield="email" qtoken_fname="fname"
> qtoken_lname="lname" qtoken_email="email" qtoken_company="company"
> qtoken_cid="cid"
> header_to="<:email:>" header_from="#attributes.from_address#" priority="0"
> header_subject="#attributes.title#" SMTPFROM="#attributes.from_address#"
> failto="[EMAIL PROTECTED]"
> HTML="#variables.content#"
> body="#variables.content#"
> PARSETOKENS="YES"
> wordwrap="10"
> log="yes">
>
>
>
> Thanks in advance, Jose
>
>
==^=======================================================
     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