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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-03-30 - DavidBaker
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.