Question
How to include Set Variable from topic in mail notify e-mail?
I want to add another column to my nightly mailnotify email. I added the column no problem, but what I want in that column is the variable set on each topic.
So
ArticleOne would have
ArticleTwo may have
So in the nightly changes email, the new column (named status) would display either READY or NOTREADY depending on what is set on that particular page.
Make sense? Thanks kindly!
Environment
--
JeffLink - 26 Jul 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.
So I have an include statement working, however, the web I'm using mailnotify with on this is locked down so the public can't see it. That is,
TWikiGuest does not have view privs. Does mailnotify hit a webpage using
TWikiGuest? Can i make it connect via another user or somehow give it access?
--
JeffLink - 27 Jul 2006
(Shortened topic name from HowToIncludeSetVariableFromTopicInMailNotifyEmail to SetVariablesInMailNotification)
--
PeterThoeny - 28 Jul 2006
oi, after much fuss, I think I got it. I don't recall the "exact" details but you want to replicate the
DefaultUserWikiName and
DefaultUserLogin references in Twiki.cfg to another user like
MailnotifyUserWikiName (and associate it with a user like
MailnotifyUser who has permissions to view the locked down web).
Then any references in the /lib/Contrib/MailerContrib/ that reference
DefaultUserWikiname chance to the newly created
MailnotifyUserWikiname. Edit /lib/Contrib/Mailer.pm as well.
For the
DefaultUserLogin (adding
MailnotifyUserLogin) instead of adding a user like mailnotifyuser (to replace guest) use the wikiname of the user
MailnotifyUser that you registered in your twiki.
mailnotify will now access sites via the
MailnotifyUser and have rights beyond
TWikiGuest
--
JeffLink - 28 Jul 2006
Sounds a bit complicated, but glad it worked out. Closing this request.
--
PeterThoeny - 29 Jul 2006