[Koha-bugs] [Bug 8000] Test mode for notices

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 11 22:02:45 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8000

--- Comment #3 from Blou <philippe.blouin at inlibro.com> ---
Created attachment 21976
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21976&action=edit
Bug 8000 - Override emails of every message sent from Koha

For testing purposes, we do not want emails sent to (legitimate) users.  And
sometime we also like to actually see what would be generated for the users. 
This preference will allow to override every message sent by koha with a new
(temporary) To address.  Leave it empty for normal usage.

C4/Letters.pm
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref

TESTING:
0) Run updatedatabase.pl
1) Enter a valid address for new preference SendAllEmailsTo, something that
will be easily identified as NOT the normal destination for the Koha emails.
2) Have koha generate an email to a user.  Or any other mean prefered that
cause Koha to send email.
3) Validate that the email is NOT sent to the user.
4) Validate that the email IS sent to the overriding address.
5) Clean the preference
6) Redo the test, validate that the email is going to the right address.

PS Not sure if those steps are precise enough.  I'm not comfortable enough to
specify the best way to generate emails, I personnally had to hack it in my
environment.  Feedbacks welcomed.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list