| | 469 | '''Mail''' |
| | 470 | |
| | 471 | Set the LDAP attributes where user email may be stored: |
| | 472 | |
| | 473 | {{{ |
| | 474 | $mail_attributes = array( "mail", "gosaMailAlternateAddress", "proxyAddresses" ); |
| | 475 | }}} |
| | 476 | |
| | 477 | You can also define which LDAP attribute contains the user name (will be used in mail body content): |
| | 478 | |
| | 479 | {{{ |
| | 480 | $mail_username_attribute = "cn"; |
| | 481 | }}} |
| | 482 | |
| | 483 | '''Sender name''' |
| | 484 | |
| | 485 | You can change the default From header and add a signature: |
| | 486 | |
| | 487 | {{{ |
| | 488 | $mail_from = "admin@example.com"; |
| | 489 | $mail_from_name = "Self Service Password administrator"; |
| | 490 | $mail_signature = ""; |
| | 491 | }}} |
| | 492 | |
| | 493 | '''Change password notification''' |
| | 494 | |
| | 495 | Use this option to send a confirmation mail to the user, just after a successful password change: |
| | 496 | |
| | 497 | {{{ |
| | 498 | $notify_on_change = true; |
| | 499 | }}} |
| | 500 | |
| | 501 | This option is false by default. |
| | 502 | |
| | 503 | '''PHPMailer''' |
| | 504 | |
| | 505 | You have to set all parameters for PHPMailer if you use mail notification. |
| | 506 | |
| | 507 | {{{ |
| | 508 | $mail_sendmailpath = '/usr/sbin/sendmail'; |
| | 509 | $mail_protocol = 'smtp'; |
| | 510 | $mail_smtp_debug = 0; |
| | 511 | $mail_debug_format = 'html'; |
| | 512 | $mail_smtp_host = 'localhost'; |
| | 513 | $mail_smtp_auth = false; |
| | 514 | $mail_smtp_user = ''; |
| | 515 | $mail_smtp_pass = ''; |
| | 516 | $mail_smtp_port = 25; |
| | 517 | $mail_smtp_timeout = 30; |
| | 518 | $mail_smtp_keepalive = false; |
| | 519 | $mail_smtp_secure = 'tls'; |
| | 520 | $mail_smtp_autotls = true; |
| | 521 | $mail_smtp_options = array(); |
| | 522 | $mail_contenttype = 'text/plain'; |
| | 523 | $mail_wordwrap = 0; |
| | 524 | $mail_charset = 'utf-8'; |
| | 525 | $mail_priority = 3; |
| | 526 | }}} |
| | 527 | |
| | 528 | See https://github.com/PHPMailer/PHPMailer for more information |
| | 529 | |