0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

smtp_client variable empty by default

This commit is contained in:
CaptainArk 2016-03-09 19:57:23 +01:00
parent 7778c0b9c6
commit 21c4ec0dd8
2 changed files with 5 additions and 2 deletions

View File

@ -128,7 +128,7 @@ $CONF['smtp_port'] = '25';
// SMTP Client
// Hostname (FQDN) of the server hosting Postfix Admin
// Used in the HELO when sending emails from Postfix Admin
$CONF['smtp_client'] = 'localhost.localdomain';
$CONF['smtp_client'] = '';
// Encrypt
// In what way do you want the passwords to be crypted?

View File

@ -1136,7 +1136,10 @@ function smtp_mail ($to, $from, $data, $body = "") {
$smtpd_server = $CONF['smtp_server'];
$smtpd_port = $CONF['smtp_port'];
//$smtp_server = $_SERVER["SERVER_NAME"];
$smtp_server = $CONF['smtp_client'];
$smtp_server = php_uname('n');
if(!empty($CONF['smtp_client'])) {
$smtp_server = $CONF['smtp_client'];
}
$errno = "0";
$errstr = "0";
$timeout = "30";