Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFPOP and using From instead of Replyto

Status
Not open for further replies.

felixtkatt

Programmer
May 14, 2001
18
US
I find this curious and can't figure out what is going on. Perhaps the email server I am using causes the problem, but I can't tell. Perhaps someone here can.

I want the "mail_to" field to populate automatically based upon the message retrieved. However, the input tag is not populating with the "replyto" message data.

When I tried to replace the variable "replyto" with "from", it freaked out the page and wouldn't process the rest of the input tag. Here's an abreviation of the code:


<cfpop
server=&quot;#pop_server#&quot;
username=&quot;#pop_username#&quot;
password=&quot;#pop_password#&quot;
action=&quot;getall&quot;
messagenumber=&quot;#messagenumber#&quot;
name=&quot;message&quot;
>


a little later...


<tr>
<th align=&quot;right&quot; bgcolor=&quot;115e55&quot;>to:</th>
<td bgcolor=&quot;669966&quot;><input type=&quot;text&quot; name=&quot;mail_to&quot; value=&quot;#trim(replyto)#&quot; size=&quot;55&quot;></td>
</tr>


When &quot;replyto&quot; in the Trim function is replaced with &quot;from&quot;, the page displays a text input field of default length and has &quot; size=&quot;55&quot;> next to it.

Can anyone tell me what causes this phenomenon and/or how to get that mail_to field to automatically populate from the cfpop query? Thanks a bunch.

FelixTKatt
 
I fixed this problem using the cf_extractemail custom tag. In case anyone is curious...

FTK FTK
 
the quotes in the address are what causes the problem. I ran into this last night.
I used the following to strip them from the address. Now it works fine.


#REReplace(&quot;#mail.from#&quot;,'&quot;','',&quot;ALL&quot;)#


hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top