Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Email Autolink question  (Read 258 times)
0 Members and 1 Guest are viewing this topic.
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« on: December 29, 2004, 12:06:00 PM »

I have added this line to HTML.pm to link email addresses:

$text =~ s#(^|[^\w-])([\w.-]*@[\w.-]+(\.[\w-]+)+)#$1<A HREF="mailto:$2">$2</A>#gs;

How could I modify it to parse an email with subject line such as:

admin@nomail.com?Subject=Hello
--or--
<a href="mailto:admin@nomail.com?Subject=Hello">email</a>

With the mod as it is now the subject line doesn't parse even if inside <a href="mailto: tags. I would like to be able use ?Subject= (or body, cc, etc.) while still affording regular users the convenience of autolinking *@*

[This message has been edited by musicvid (edited December 29, 2004).]

Logged
Pages: [1]   Go Up
Print
Jump to: