kopia lustrzana https://github.com/newroco/mail2deck
reply with correct mail server address.
rodzic
27e908f2c3
commit
08e8b51cc7
|
@ -31,10 +31,16 @@ class MailClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function reply($sender, $response = null) {
|
public function reply($sender, $response = null) {
|
||||||
$serverName = parse_url(NC_SERVER);
|
$server = NC_SERVER;
|
||||||
|
|
||||||
|
if(str_contains($server, "https://")) {
|
||||||
|
$server = str_replace('https://', '', $server);
|
||||||
|
} else if(str_contains($server, "http://")) {
|
||||||
|
$server = str_replace('http://', '', $server);
|
||||||
|
}
|
||||||
|
|
||||||
$headers = array(
|
$headers = array(
|
||||||
'From' => 'no-reply@' . $serverName['host'],
|
'From' => 'no-reply@' . $server,
|
||||||
'MIME-Version' => '1.0',
|
'MIME-Version' => '1.0',
|
||||||
'Content-Type' => 'text/html'
|
'Content-Type' => 'text/html'
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue