mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Direct smtp connection instead of php_mail()
This commit is contained in:
parent
9c4f0f3c1a
commit
c39cb832bf
1 changed files with 4 additions and 2 deletions
|
@ -174,12 +174,12 @@ define('IMAP_FROM_LDAP_FULLNAME', '#givenname #sn');
|
||||||
// mail => mail() php function
|
// mail => mail() php function
|
||||||
// sendmail => sendmail executable
|
// sendmail => sendmail executable
|
||||||
// smtp => direct connection against SMTP
|
// smtp => direct connection against SMTP
|
||||||
define('IMAP_SMTP_METHOD', 'mail');
|
define('IMAP_SMTP_METHOD', 'smtp');
|
||||||
|
|
||||||
global $imap_smtp_params;
|
global $imap_smtp_params;
|
||||||
// SMTP Parameters
|
// SMTP Parameters
|
||||||
// mail : no params
|
// mail : no params
|
||||||
$imap_smtp_params = array();
|
//$imap_smtp_params = array();
|
||||||
// sendmail
|
// sendmail
|
||||||
//$imap_smtp_params = array('sendmail_path' => '/usr/bin/sendmail', 'sendmail_args' => '-i');
|
//$imap_smtp_params = array('sendmail_path' => '/usr/bin/sendmail', 'sendmail_args' => '-i');
|
||||||
// smtp
|
// smtp
|
||||||
|
@ -202,6 +202,8 @@ $imap_smtp_params = array();
|
||||||
// IMPORTANT: To use SSL you must use PHP 5.1 or later, install openssl libs and use ssl:// within the host variable
|
// IMPORTANT: To use SSL you must use PHP 5.1 or later, install openssl libs and use ssl:// within the host variable
|
||||||
// IMPORTANT: To use SSL with PHP 5.6 you should set verify_peer, verify_peer_name and allow_self_signed
|
// IMPORTANT: To use SSL with PHP 5.6 you should set verify_peer, verify_peer_name and allow_self_signed
|
||||||
//$imap_smtp_params = array('host' => 'ssl://localhost', 'port' => 465, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password');
|
//$imap_smtp_params = array('host' => 'ssl://localhost', 'port' => 465, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password');
|
||||||
|
$imap_smtp_params = array('host' => 'ssl://DOMAINTOCHANGE', 'port' => 465, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password', 'verify_peer' => true, 'verify_peer_name' => true, 'allow_self_signed' => true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue