For more information... RTFM!
NAVIGATION
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

mailto

Enclose the body text in a HTML "<a href="mailto:...">...</a>" container to make a link to an email address.

Any parameters will be joined with a space and used to form the new link's text.

Example

  1. [filter mailto]kevin@cursor.biz[/filter]
  2. [filter mailto.Kevin.Walsh]kevin@cursor.biz[/filter]

Results in:

  1. <a href="mailto:kevin@cursor.biz">kevin@cursor.biz</a>
  2. <a href="mailto:kevin@cursor.biz">Kevin Walsh</a>

Source code

sub {
    my ($val,$tag,@arg) = @_;

    my $out = qq{<a href="mailto:$val">};
    my $anchor = $val;
    if(@arg) {
            $anchor = join " ", @arg;
    }
    $out .= "$anchor</a>";
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Friday 23 February 2007 at 11:47 AM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us