Re: MailToURL Resources as link/cgi anywhere on the page

2002-01-23 13:32:37
On January 23, 2002 at 10:06, Wilhelm Alm wrote:

that message.
Inserting the Resources MAILTO and MailToURL I get no response.
<a href="mailto:$TO$?msgid=$MSGID$&subject=$SUBJECTNA$";>respond to this
article ...</a>

MAILTOURL does not work that way.  It defines how addresses in message
headers are linked.

However, you can do what you want by placing the markup:

<a href="mailto:$FROMADDR:U$?in-reply-to=$MSGID:U$&subject=$SUBJECTNA:U$";>

Within the MSGFOOT resource.

As a second step, I would like to to use a cgi script to POST
addressfragments available by the MailToURL resource.
I build the form to call the cgi in <MSGFOOT>, but then the functionality of
<MailToURL> is not active.

Can I use <MailToURL> anywhere in the HTML page?

No.  The documentation for the resource states it only deals with
addresses in message headers.

How canI define my own "URL-template"?

You have use of all the resource variables available to create whatever
"URL-template" you desire.  You can define a custom resource variable
via the DEFINEVAR resource if you want to reference your template
in multiple locations.  For example:

<form action="/cgi-bin/reply.cgi">
<input type="hidden" name="local-part"  value="$FROMADDRNAME$">
<input type="hidden" name="domain-part" value="$FROMADDRDOMAIN$">
<input type="hidden" name="human-name"  value="$FROMADDRNAME$">
<input type="hidden" name="ref-msgid"   value="$MSGID$">
<input type="hidden" name="subject"     value="$SUBJECTNA$">
<input type="submit" name="Reply>

Then, whenever you want to place the form somewhere on a page, just


<Prev in Thread] Current Thread [Next in Thread>