Bug 12040: Add 3 parameters to runreport.pl for SMTP authentication
authorChris Nighswonger <cnighswonger@foundations.edu>
Mon, 7 Apr 2014 15:55:35 +0000 (11:55 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 11 Apr 2014 16:11:52 +0000 (16:11 +0000)
commit4d58383ede02779d261ef11b1b4da782221caaad
tree956c8c2298e820ca4f1ad94c674d9b8472081eaa
parentf4633cc5e51e8859f93be397eaee1370afc54099
Bug 12040: Add 3 parameters to runreport.pl for SMTP authentication

This patch adds three optional parameters to runreport.pl
to allow authentication with the SMTP server.

--username -> Username to pass to the SMTP server for
              authentication
--password -> Password to pass to the SMTP server for
              authentication
--method   -> Method is the type of authentication.
              Ie. LOGIN, DIGEST-MD5, etc.

Test Plan
---------
As for testing manually using a Gmail account:

1. Set up your sendmail as shown in
    misc/cronjobs/CONFIGURE.gmail

2. Before applying this patch, run misc/cronjobs/runreports.pl
    on your favorite report including the proper email parameters
    against your gmail account.

3. Note the failure message stating the authentication
    requirement.

4. Apply this patch, and return the script including the
    additional parameters and specifying "LOGIN" for the method.

5. Note the successful send.

6. perldoc misc/cronjobs/runreport.pl

7. Run the koha qa test tool.

Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu>
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/cronjobs/runreport.pl