My next guess would be there is something wrong with the email template. If you use the --use-email-outfile switch, you can see what it's trying to send. Make sure the headers are well formed. For example, no empty lines before the headers, one header per line, and at least 1 empty line between the headers and body.<br>
<br>-b<br><br><div class="gmail_quote">On Thu, Jul 23, 2009 at 2:22 PM, Soulliere, Robert <span dir="ltr"><<a href="mailto:robert.soulliere@mohawkcollege.ca">robert.soulliere@mohawkcollege.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi Bill,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">All the org units seem to have valid addresses . I am using
<a href="mailto:rsoulliere@evergreen-server.mohawkcollege.ca" target="_blank">rsoulliere@evergreen-server.mohawkcollege.ca</a> for testing. This is what is entered in the “sending email address for patron notices” field for all locations in the staff client. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks,</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Robert</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:open-ils-dev-bounces@list.georgialibraries.org" target="_blank">open-ils-dev-bounces@list.georgialibraries.org</a> [mailto:<a href="mailto:open-ils-dev-bounces@list.georgialibraries.org" target="_blank">open-ils-dev-bounces@list.georgialibraries.org</a>]
<b>On Behalf Of </b>Bill Erickson<br>
<b>Sent:</b> July 23, 2009 10:17 AM<br>
<b>To:</b> Evergreen Discussion Group<br>
<b>Cc:</b> Evergreen Development Discussion List<br>
<b>Subject:</b> Re: [OPEN-ILS-DEV] [OPEN-ILS-GENERAL] Overdue notices not sending error</span></p>
</div>
<p> </p>
<p style="margin-bottom: 12pt;"><br>
Hi Robert,<br>
<br>
I would verify any addresses configured in the staff client Library Settings interface (actor.org_unit_setting table) look like valid email addresses.<br>
<br>
-b<br>
<br>
</p>
<div>
<p>On Thu, Jul 23, 2009 at 9:52 AM, Soulliere, Robert <<a href="mailto:robert.soulliere@mohawkcollege.ca" target="_blank">robert.soulliere@mohawkcollege.ca</a>> wrote:</p>
<div>
<div>
<p>Hi Guys,</p>
<p> </p>
<p>We are still having trouble in getting automatic email notifications to function.
</p>
<p> </p>
<p>When I run the generate_circ_notices.plI get the following Warning in osrfsys.log:</p>
<p> </p>
<p> [2009-07-23 06:01:13] generate_circ_notices.pl [INFO:14462:CStoreEditor.pm:104:] editor[0|0] action.circulation.search : returned 1 result(s)</p>
<p>[2009-07-23 06:01:13] generate_circ_notices.pl [WARN:14462:generate_circ_notices.pl:378:] notice: unable to send overdue email to
<a href="mailto:robert.soulliere@mohawkcollege.ca" target="_blank">robert.soulliere@mohawkcollege.ca</a>: $VAR1 = bless( {</p>
<p> 'prop' => {},</p>
<p> 'string' => 'Can\'t call method "address" on an undefined value at /usr/share/perl5/Email/Send/SMTP.pm line 24.</p>
<p>',</p>
<p> 'type' => 'failure',</p>
<p> 'errno' => 1</p>
<p> }, 'Return::Value' );</p>
<p> </p>
<p>It seems to not like the sender address or information, but I am not sure if it is the setting in the opensrf.xml file or the settings in the staff client. I am not getting a bounce email notification sent to the addresses specified as the sender email.
We have correct email addresses in the sender address set up in both the opensrf.sml file and in the staff client location configuration. </p>
<p> </p>
<p>Here is the notification section of opensrf.xml:</p>
<p> </p>
<p> </p>
<p> <notifications></p>
<p> <!-- global mail server settings --></p>
<p> <smtp_server>localhost</smtp_server></p>
<p> <sender_address><a href="mailto:rsoulliere@evergreen-server.mohawkcollege.ca" target="_blank">rsoulliere@evergreen-server.mohawkcollege.ca</a></sender_address></p>
<p> </p>
<p><!-- Overdue notices --></p>
<p> <overdue></p>
<p> </p>
<p> <!-- optionally, you can define a sender address per notice type --></p>
<p> <sender_address><a href="mailto:rsoulliere@evergreen-server.mohawkcollege.ca" target="_blank">rsoulliere@evergreen-server.mohawkcollege.ca</a></sender_address></p>
<p> </p>
<p> <!-- The system can generate an XML file of overdue notices. This is the</p>
<p> directory where they are stored. Files are named overdue.YYYY-MM-DD.xml --></p>
<p> <notice_dir>/openils/var/data/overdue</notice_dir></p>
<p> <combined_template>/openils/var/data/overdue_notice.example</combined_template></p>
<p> </p>
<p> <notice></p>
<p> <!-- Notify at 7 days overdue --></p>
<p> <notify_interval>7 days</notify_interval></p>
<p> <!-- Options include always, noemail, and never. 'noemail' means a notice</p>
<p> will be appended to the notice file only if the patron has no valid email address. --></p>
<p> <file_append>noemail</file_append></p>
<p> <!-- do we attempt email notification? --></p>
<p> <email_notify>true</email_notify></p>
<p> <!-- notice template file --></p>
<p> <email_template>/openils/var/data/overdue_notice.example</email_template></p>
<p> </notice></p>
<p> </overdue></p>
<p> </p>
<p> <!-- Courtesy notices --></p>
<p> <predue></p>
<p> <notice></p>
<p> <!-- All circulations that circulate between 5 and 13 days --></p>
<p> <circ_duration_range></p>
<p> <from>5 days</from></p>
<p> <to>13 days</to></p>
<p> </circ_duration_range></p>
<p> <!-- notify at 1 day before the due date --></p>
<p> <notify_interval>1 day</notify_interval></p>
<p> <file_append>false</file_append></p>
<p> <email_notify>true</email_notify></p>
<p> <email_template>/openils/var/data/predue_notice.example</email_template></p>
<p> </notice></p>
<p> </predue></p>
<p> </notifications></p>
<p> </p>
<p>I was wondering of the problem would most likely relate to:</p>
<p> </p>
<p style="text-indent: -18pt;">1.<span style="font-size: 7pt;"> </span>The opensrf.xml file configuration</p>
<p style="text-indent: -18pt;">2.<span style="font-size: 7pt;"> </span>Setup in the staff client.
</p>
<p style="text-indent: -18pt;">3.<span style="font-size: 7pt;"> </span> An issue with a perl script: /usr/share/perl5/Email/Send/SMTP.pm or generate_circ_notices.pl</p>
<p> </p>
<p>Thanks,</p>
<p>Robert</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<p> </p>
<div style="text-align: center;" align="center">
<hr size="2" align="center" width="100%">
</div>
<p><span style="font-size: 7.5pt; color: gray;">This E-mail contains privileged and confidential information intended<br>
only for the individual or entity named in the message. If the reader<br>
of this message is not the intended recipient, or the agent responsible<br>
to deliver it to the intended recipient, you are hereby notified that<br>
any review, dissemination, distribution or copying of this communication<br>
is prohibited. If this communication was received in error, please<br>
notify the sender by reply E-mail immediately, and delete and destroy<br>
the original message.</span></p>
</div>
</div>
<p><br>
<br clear="all">
<br>
-- <br>
Bill Erickson<br>
| VP, Software Development & Integration<br>
| Equinox Software, Inc. / The Evergreen Experts<br>
| phone: 877-OPEN-ILS (673-6457)<br>
| email: <a href="mailto:erickson@esilibrary.com" target="_blank">erickson@esilibrary.com</a><br>
| web: <a href="http://esilibrary.com" target="_blank">http://esilibrary.com</a></p>
</div>
<br>
<hr>
<font size="1" color="Gray" face="Arial">This E-mail contains privileged and confidential information intended<br>
only for the individual or entity named in the message. If the reader<br>
of this message is not the intended recipient, or the agent responsible<br>
to deliver it to the intended recipient, you are hereby notified that<br>
any review, dissemination, distribution or copying of this communication<br>
is prohibited. If this communication was received in error, please<br>
notify the sender by reply E-mail immediately, and delete and destroy<br>
the original message.<br>
</font>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Bill Erickson<br>| VP, Software Development & Integration<br>| Equinox Software, Inc. / The Evergreen Experts<br>| phone: 877-OPEN-ILS (673-6457)<br>| email: <a href="mailto:erickson@esilibrary.com">erickson@esilibrary.com</a><br>
| web: <a href="http://esilibrary.com">http://esilibrary.com</a><br>