Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:self-service-password:0.8:config_mail [2017/01/25 12:09] (current)
Line 1: Line 1:
 +====== Mail ======
  
 +<​note>​Configuration file: ''​self-service-password/​conf/​config.inc.php''</​note>​
 +
 +===== LDAP Attribute =====
 +
 +Set the LDAP attribute where user email is stored:
 +
 +<file php>
 +$mail_attribute = "​mail";​
 +</​file>​
 +
 +<​note>​Only the first value of this attribute will be used to get the mail address.</​note>​
 +
 +===== SMTP =====
 +
 +==== Headers ====
 +
 +You can change the default ''​From''​ header:
 +
 +<file php>
 +$mail_from = "​admin@example.com";​
 +</​file>​
 +
 +==== Server ====
 +
 +SMTP server configuration is managed by PHP. See [[http://​www.php.net/​manual/​en/​mail.configuration.php|this documentation]] to learn how to configure it.
 +
 +===== Change password notification =====
 +
 +Use this option to send a confirmation mail to the user, just after a successful mail change:
 +
 +<file php>
 +$notify_on_change = true;
 +</​file>​