From 7c46d6ae9919e6402b2267832cf734abca04bc2e Mon Sep 17 00:00:00 2001 From: thilo Date: Thu, 10 Oct 2019 18:48:40 +0000 Subject: [PATCH] added return-path mail header --- htdocs/create.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/create.php b/htdocs/create.php index aea8aa7..86dab02 100644 --- a/htdocs/create.php +++ b/htdocs/create.php @@ -59,7 +59,8 @@ function sendWelcomeMsg($authmail,$mbox,$domain) { $password = getenv("SMTP_PW"); $headers = array ('From' => $from, 'To' => $to, - 'Subject' => $subject); + 'Subject' => $subject, + 'Return-Path' => $from); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, -- GitLab