mhonarc-users

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.
</BOTLINKS>
<MAILTO>
<MailToURL>
<a href="mailto:$TO$?msgid=$MSGID$&subject=$SUBJECTNA$";>respond to this
article ...</a>
</MailToURL>
<MSGFOOT>

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.
<MailToURL>
URL-template
<MSGFOOT>
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:

<DefineVar>
MY-REPLY-TO_FORM
<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>
</form>
</DefineVar>

Then, whenever you want to place the form somewhere on a page, just
use $MY-REPLY-TO_FORM$.

--ewh

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