This question about Using an extension: Answered

How does MailerContrib find out the users email address?

%USERINFO% shows the correct email address for all users. %USERINFO% works correctly when I provide the $username and it also works correctly when I provide the $wikiname.

But for some users mailnotify does not send email notification to the right email address or it even does not find the email address.

Why is %USERINFO% working and mailnotify not? Is mailnotify not using the same core functions as %USERINFO%?

I use LdapContrib and LdapUserMapping.

(sorry for asking this question maybe twice, see Question352)


The MailerContrib asks the user mapper code to return the email addresses of the User or Group name. The Ldap mapper should return the email addresses. The %USERINFO% macro uses the same function, so they should give equivalent results.

One possibility - could you be running mailercontrib under the guest ID instead of admin? There was actually a bug in 1.0 iirc, where the user for cli scripts was not set correctly. If MailerContrib mailnotify script is not run as admin, then the email addresses will not be accessible.

-- GeorgeClark - 02 Dec 2011

QuestionForm edit

Subject Using an extension
Extension LdapContrib, MailerContrib
Version Foswiki 1.0.9
Status Answered
Related Topics
Topic revision: r2 - 02 Dec 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy