Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Setting From: for registration/password e-mails, posted by Ben Waugh on Fri Feb 16 12:08:19 2007 
    icon2.gif   Re: Setting From: for registration/password e-mails, posted by Stefan Ritt on Fri Feb 16 16:45:33 2007 
       icon2.gif   Re: Setting From: for registration/password e-mails, posted by Stefan Ritt on Fri Feb 16 17:14:53 2007 
Message ID: 2136     Entry time: Fri Feb 16 16:45:33 2007     In reply to: 2135     Reply to this: 2138
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Linux  ELOG Version: 2.6.3-1762 
Subject: Re: Setting From: for registration/password e-mails 

Ben Waugh wrote:
We had a problem, as mentioned in the documentation, with "new password" e-mails being rejected because the default From: address is invalid, so we changed this using "Use Email From".

According to the documentation, "By default, the email address of the currently logged in user is used for the "From:" field. If no user is logged in, or the current user has not specified a email address in the password database, the setting of the option Use Email From is used for the "From:" field."

However, when an address is specified in "Use Email From" we find that all e-mail notifications, even those sent automatically when a logged-in user submits a log entry, are sent from this address.

How can we set a valid address for use for "change of password" or registration e-mails, but still use the appropriate user's e-mail address for log entries?


Right. The logic in the program and the documentation disagreed. The program uses the "Use Email From" address always if it's there, while the documentation gives preference to the user's email address. I change that in the program so that it agrees with the documentation. The modification is in SVN revision 1789 and will be contained in the upcoming next release.
ELOG V3.1.5-3fb85fa6