Tags:
create new tag
, view all tags

Question

I have a topic that includes a single SEARCH to retrieve email addresses from the user topics. On another page I'm trying to have a mailto link using

Warning: Can't find topic ""."" to specify the email addresses found by the search in the other topic. Unfortunately, it doesn't work. The

Warning: Can't find topic ""."" is expanded but the mailto is not turned into a link.

On the topic page I just see: [[!mailto:name1@some.com;name2@some.com Email Users]]
(but without the ! symbols)

It still fails even if I replace the search with a list of email addresses. It seems to have problems with the INCLUDE.

Any suggestions will be most welcome.

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version:  
Client OS: Windows
Web Browser: Explorer 6
Categories: Mail

-- DavidBaker - 29 Mar 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

OK, after much experimentation, I've found the solution. Instead of including a topic with the search variable I used SET & GET to set up a variable with the list of email addresses. For each of the required users I added the line, Team: Test to their homepages.

Then to create a mailto link to email all members of the team named Test I used the following;

%CALC{"$SET(name, %SEARCH{ "   \* Team: Test" web="%MAINWEB%" type="regex" nosearch="on" nototal="on" format="$pattern(.*?\*.*?Email\:\s*([^\n\r]+).*)" separator=";" }%)"}%


[[mailto:%CALC{"$GET(name)"}% mail]]

-- DavidBaker - 30 Mar 2006

 
Topic revision: r2 - 2006-03-30 - DavidBaker
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.