| 402 | |
| 403 | '''Mail Attributes''' |
| 404 | |
| 405 | Set the LDAP attributes where user email may be stored: |
| 406 | |
| 407 | {{{ |
| 408 | $mail_attributes = array( "mail", "gosaMailAlternateAddress", "proxyAddresses" ); |
| 409 | }}} |
| 410 | |
| 411 | '''Sender Name''' |
| 412 | |
| 413 | You can change the default From header and add a signature: |
| 414 | |
| 415 | {{{ |
| 416 | $mail_from = "admin@learn.ac.lk"; |
| 417 | $mail_from_name = "Self Service Password administrator"; |
| 418 | $mail_signature = ""; |
| 419 | }}} |
| 420 | |
| 421 | '''Change password notification''' |
| 422 | |
| 423 | Use this option to send a confirmation mail to the user, just after a successful mail change: |
| 424 | |
| 425 | {{{ |
| 426 | $notify_on_change = true; |
| 427 | }}} |
| 428 | |
| 429 | '''PHPMailer''' |
| 430 | |
| 431 | {{{ |
| 432 | $mail_sendmailpath = '/usr/sbin/sendmail'; |
| 433 | $mail_protocol = 'smtp'; |
| 434 | $mail_smtp_debug = 0; |
| 435 | $mail_debug_format = 'html'; |
| 436 | $mail_smtp_host = 'localhost'; |
| 437 | $mail_smtp_auth = false; |
| 438 | $mail_smtp_user = ''; |
| 439 | $mail_smtp_pass = ''; |
| 440 | $mail_smtp_port = 25; |
| 441 | $mail_smtp_timeout = 30; |
| 442 | $mail_smtp_keepalive = false; |
| 443 | $mail_smtp_secure = 'tls'; |
| 444 | $mail_smtp_autotls = true; |
| 445 | $mail_smtp_options = array(); |
| 446 | $mail_contenttype = 'text/plain'; |
| 447 | $mail_wordwrap = 0; |
| 448 | $mail_charset = 'utf-8'; |
| 449 | $mail_priority = 3; |
| 450 | }}} |
| 451 | |
| 452 | For more info Regarding PHPmailer: https://github.com/PHPMailer/PHPMailer |
| 453 | |
| 454 | Other info: https://self-service-password.readthedocs.io/en/stable/presentation.html |