From e7d8143186ca8e102fd2c668627ee27b5e7606f6 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Mon, 12 Apr 2021 05:13:01 +0200 Subject: [PATCH] Trim the response from smarthost with the queue id Signed-off-by: Janos SUTO --- webui/model/mail/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/mail/mail.php b/webui/model/mail/mail.php index ca3cc8dc..6cbe4034 100644 --- a/webui/model/mail/mail.php +++ b/webui/model/mail/mail.php @@ -41,7 +41,7 @@ class ModelMailMail extends Model { $l = fgets($r, 4096); - if(preg_match("/^250/", $l)){ $queue_id = $l; $ok = 1; } + if(preg_match("/^250/", $l)){ $queue_id = trim($l); $ok = 1; } fputs($r, "QUIT\r\n"); $l = fgets($r, 4096);