Hi Wayne,
Good to talk to a local on the list.
You've sort of answered your own question here: The debug line shows the ASSIGN doing what you've told it to do - putting the literal text in to the variable. Don't use the literal tag and the variable will be properly assigned.

If you have problems including the HTML characters in the assign, why not put the HTML in a footer file, use an <@include> for the footer and have the variable containing just the unsubscribe link in the footer.
cheers
Garth

bbmedia.com.au
p: 0500 527 000
e: [EMAIL PROTECTED]
PO Box 3543 Wamberal NSW 2260

On 08/09/2005, at 11:30 AM, Wayne Irvine wrote:

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

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

Reply via email to