I have a newsletter system that generates a HTML email then sends it to all
the subscribers.

This is not spam. The subscribers are all voluntary and can unsubscribe at
any time.

At the base of the email is a link to let them unsubscribe. The HTML and
metatag need to be added before the file is 'mail merged' with the
recipients. So I need to assign metatags to a VAR. I can do this with the
LITERAL tag:

<@ASSIGN NAME="footer" VALUE="<@LITERAL VALUE='<P>Click <A
HREF="http://www.domain.com.au/newsletter/unsubscribe.taf?_function=unsub&em
ail=<@VAR local$thisEmail>">here</A> to unsubscribe.</P>'>" SCOPE=LOCAL>

And a debug line shows this as code:

<@VAR NAME=footer SCOPE=local ENCODING=HTML><br>
Displays
 <P>Click <A 
HREF="http://www.photoimaging.com.au/newsletter/unsubscribe.taf?_function=un
sub&email=<@VAR local$thisEmail>">here</A> to unsubscribe.</P>

I then assign the email address:

<@ASSIGN NAME=thisEmail SCOPE=local [EMAIL PROTECTED]>

But here is the problem. When I try to use the resultant code it is
incorrectly encoded.

<@VAR NAME=footer SCOPE=local ENCODING=NONE>
Displays
http://www.domain.com.au/newsletter/unsubscribe.taf?_function=unsub&email=%3
[EMAIL PROTECTED]

I've tried different forms of encoding but none seem to work.

Any help would be appreciated.

Wayne

                  Byte Services Pty Ltd
               http://www.byteserve.com.au/
                  [EMAIL PROTECTED]
   Ph 02 9960 6099   Mob 0409 960 609   Fax 02 9960 6088

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to