[Koha-bugs] [Bug 8000] Test mode for notices
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 3 19:33:51 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8000
M. Tompsett <mtompset at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25924|0 |1
is obsolete| |
--- Comment #37 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 37463
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37463&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. Here's one way:
a) set AutoEmailOpacUser to true
b) create a new user, with an email address
c) Normally, a confirmation email is sent to the user. Validate that it
goes to the SendAllEmailsTo one.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list