Use 'reply_to' attribute instead of 'from' to reply & assign sender.

pull/16/head
Alex Puiu 2022-02-17 13:27:00 +02:00
rodzic 49bd797057
commit 3ac5b2785e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -84,11 +84,11 @@ if ($emails)
}
$data->description = $description;
$mailSender = new stdClass();
$mailSender->userId = $overview->from[0]->mailbox;
$mailSender->userId = $overview->reply_to[0]->mailbox;
$newcard = new DeckClass();
$response = $newcard->addCard($data, $mailSender, $board);
$mailSender->userId .= "@{$overview->from[0]->host}";
$mailSender->userId .= "@{$overview->reply_to[0]->host}";
if($response) {
$inbox->reply($mailSender->userId, $response);