[pmwiki-users] Auth User Signup questions

Peter Bowers pbowers at pobox.com
Tue Apr 14 00:41:10 CDT 2009

On Tue, Apr 14, 2009 at 5:42 AM, Susan M. Garrett
<susanmgarrett at earthlink.net> wrote:
> Managed to get the wiki up and running and the look and feel
> customized.  However, I have run afoul of the Auth User Signup
> recipe.  I've installed the recipe three times and three times have
> had to uninstall it and start over due to problems.
> A few questions:
> Under Installation of WikiMail
>    * Configure the $WikiMailSMTP array as indicated on
> <http://www.pmwiki.org/wiki/Cookbook/WikiMail>WikiMail page. Below
> might be a typical setting (replace the username, password, and
> domain as appropriate):
> $WikiMailSMTP['Host'] = 'mail.example.com';          // only used on
> win32 systems
> $WikiMailSMTP['User'] = 'wikimail';                  // user for SMTP
> $WikiMailSMTP['Passwd'] = 'mysecret';                // passwd for SMTP
> #$WikiMailSMTP['Port'] = 25;                         // only used on
> win32 systems - 0=default
> #$WikiMailSMTP['SendmailPath'] = '/usr/bin/sendmail' // only used on
> unix systems
> $WikiMailSMTP['From'] = 'wikimail at example.com';      // must be set
> in config.php unless already set via php.ini
> 1. I assume this means change items in the wikimail.php that was
> downloaded. Yes?

No, these lines get put in your local/config.php.  In 99% of cases you
will never edit a recipe script and certainly not any of the core
files.  You will simply edit files in the local/ directory.  Editing
local/config.php is by far the most common although if you want to do
a customization that is only active for a given page or group then you
may end up editing other files in this directory as well...

> 2. In the wikimail.php is the line (note the quotation marks)
> SDV($WikiMailSMTP['Host'], "");        // only used on win32 systems
> Should that not be (quotes to single pops)?
> SDV($WikiMailSMTP['Host'], ' ');        // only used on win32 systems
> Also with the same possible problem in the same array:
> SDV($WikiMailSMTP['From'], "");        // must be set in config.php unless

If I'm reading your question right you are asking whehter the
double-quotes should be changed to single-quotes?  If I'm
understanding the question correctly then the answer is "no, that
change is not necessary."  Single-quotes and double-quotes are not the
same in PHP, but in this case they are interchangeable.

> 3. Should the variables for receiving mail also be changed in the
> wikimail.php? (located after the following)
> # These are the defaults for *receiving* email via POP3
> ## NOTE that these are the WikiMail defaults -- the recipe utilizing WikiMail
> ## may be over-riding these defaults.

No, there's no need to change anything in wikimail.php.  (See comment
above re config.php)

> I managed to get an install to get all the way to the test phase.
> When I tested the entry of a new user, the user email appeared to be
> sent twice, which is why I suspect that assuming that I should enter
> both the send and receive data in wikimail may have been incorrect.
> I'm sorry of these questions seem silly, but I know nothing about
> wikis and little about coding. I'm finding some of the PMwiki
> directions daunting because they say "change this" and it doesn't say
> in what file or where in what file to change it or sometimes even how
> to change it, anticipating a level of knowledge that I do not have.

As you find your answers, please feel free to update the documentation
to be clearer.  You are in a position where you can help a great deal
in this exactly BECAUSE you are doing this for the first time.  Things
that other people assume and so are not clearly documented will not be
obvious to you and so as you figure them out please take the extra
5-10 minutes to help the next person that comes along.


More information about the pmwiki-users mailing list