Email of search results not received
- Article Type: General
- Product: Aleph
- Product Version: 20, 21, 22, 23
Email works in the GUI but not the Web OPAC.
Is there an SMTP setup required to enable emailing of search results? Email sent but not received.
1. Thank you for clarifying for us what the problem exactly is. Now we know that GUI email is sent and web email is not sent.
2. No specific configuration is necessary for the web to send email.
If you can send email via standard UNIX command from UNIX then ALEPH can also send email.
If this works from UNIX:
echo "hello" | mail -s "subject" "firstname.lastname@example.org"
Then ALEPH works from web.
3. To see what is "happening" you can do as follows:
A. cd $alephe_tab
B. cp -p send_mail.example send_mail
C. in file send_mail comment out (with #) the last line which is "rm -f $TMPDIR/send_mail.$$"
D. restart web server
E. go to web and send email
F. you should then see something like this in $LOGDIR web log:
G. In directory $TMPDIR you will have a file such as send_mail.29726 (where number after period will be process number).
This will be there becasue the "rm" line was removed above from send_mail file.
H. The contents of the above file will be what the email should have been.
If you do all of the above and email is not sent then please tell us in additional step which of the above actions you took and what the results of each one was.
Note: One customer found that their $TMPDIR/send_mail.29726 included system message format. They realized that all of the usual system messages had also stopped. They had the System Admin review the server settings related to email, and he found there was a typo which was causing the problem.
See also the article " Server mail doesn't work: notification of joblist job runs; mailing of search results ".
The version 21 release notes say: To change the default mailing address used in the "From" field of e-mails sent from the Web OPAC, set the value of the "SMTP_FROM" variable in $alephe_root/www_server.conf, for example: setenv SMTP_FROM "email@example.com" . The problem was that the $alephe_tab/send_mail script was calling a /usr/lib/send_mail command that is not existing. The send_mail script was modified so that it is working if the SMTP_FROM variable is set and also if it?s not set.
- Article last edited: 10-Apr-2017