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
--
DavidBaker - 29 Mar 2006
Answer
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