https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29501

Tomás Cohen Arazi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         QA Contact|[email protected] |jonathan.druart+koha@gmail.
                   |y.org                       |com
                 CC|                            |[email protected]

--- Comment #20 from Tomás Cohen Arazi <[email protected]> ---
(In reply to Jonathan Druart from comment #14)
> You also need to determinate which SMTP server to use (from which library?).

Hi, I've tried to learn more about the feature to answer you, Jonathan. So
correct me if I'm wrong.

The feature is not that evolved. It is designed to generate the notice(s) in a
directory (shared mount?). Print notices are generated in several ways which
should be better documented. CHECKOUT is not one of them :-D Thanks to Andrew I
now know that you can generate a print notice when trapping a hold for a patron
with no valid email.

Once you have that (it shows as 'print' on the patron's notices tab), I ran:

$ perl misc/cronjobs/gather_print_notices.pl /tmp --email
[email protected],[email protected] --send --html


As you will notice, the --send addresses list is not tied to any Koha feature.
You just pass the addresses... I can forsee a development in which we could add
print notices addesses configuration to libraries and a --library parameter to
the print notices, but it will still require added a library_id column to the
message_queue table.

Anyway...

The follow-up makes it work. It uses the default configured SMTP server. My
config:

 <smtp_server>
    <host>smtp.gmail.com</host>
    <port>587</port>
    <timeout>50</timeout>
    <ssl_mode>starttls</ssl_mode>
    <user_name>[email protected]</user_name>
    <password>xxx</password>
    <debug>1</debug>
 </smtp_server>


The password I used was generated on the 'generate applilcation password' on my
Google account. debug=1 made the SMTP session super verbose. And email arrived
at destination :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to