diff options
author | Jonas Kohl | 2024-12-26 10:57:22 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-26 10:57:22 +0100 |
commit | a4119d145473ebb9b9e79d2985e97e5698d516b6 (patch) | |
tree | dbf9f1996398018c9f16687433525fe8ade1f2a1 /cgi | |
parent | 7534bf23c34d1a6882f6659627da8248bd8b26a0 (diff) |
Send CC to user
Diffstat (limited to 'cgi')
-rwxr-xr-x | cgi/contact.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cgi/contact.php b/cgi/contact.php index 0f9ac5f..1cf626d 100755 --- a/cgi/contact.php +++ b/cgi/contact.php @@ -66,10 +66,13 @@ $time = (new DateTimeImmutable("now", new DateTimeZone("Europe/Berlin")))->forma $message = implode("\n", array_map(fn($ln) => "> $ln", preg_split('~(*BSR_ANYCRLF)\R~', trim($message)))); $message = "Am $time schrieb $name via Kontaktformular:\n$message\n"; +$sender = new Address($email, $name); + $transport->send((new Email()) ->from(new Address("mystic-contactform+no-reply@jonaskohl.de", $name)) ->to("mystic@jonaskohl.de") - ->replyTo(new Address($email, $name)) + ->cc($sender) + ->replyTo($sender) ->subject("[Mystic House Corner] $subject") ->text($message) ); |