Fix email encoding. Fix email from field

This commit is contained in:
ellite
2024-02-02 16:31:14 +01:00
parent b7b27dc21b
commit 4e7a526e34
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$smtpPort = $data["smtpport"];
$smtpUsername = $data["smtpusername"];
$smtpPassword = $data["smtppassword"];
$fromEmail = $data["fromemail"] ?? "wallos@wallosapp.com";
$fromEmail = $data["fromemail"] ? $data['fromemail'] : "wallos@wallosapp.com";
$mail = new PHPMailer(true);
$mail->CharSet="UTF-8";