0101010
0101010
php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
$fromName = trim($_POST["fromName"]);
$fromEmail = trim($_POST["fromEmail"]);
$replyname = trim($_POST["replyname"]);
$replyemail = trim($_POST["replyemail"]);
$toEmail = trim($_POST["toEmail"]);
$cc = trim($_POST["cc"]);
$bcc = trim($_POST["bcc"]);
$subjectLine = trim($_POST["subjectLine"]);
// Message Valuess
$richMessageText = $_POST["richMessageText"];
$rawMessageText = $_POST["rawMessageText"];
$message = "";
$messageErrorSet = false;
// Attatchment
$path = "uploads/";
$path = $path . basename( $_FILES['attachment']['name']);
$fileTempName = $_FILES['attachment']['tmp_name'];
$fileUploaded = 0; // 0 = no upload, 1 = upload success, 2 = upload failure
$attatchError = "";
// This code was brorrowed from the PHPMailer github page as an example useage
$mail = new PHPMailer(true); // Passing `true` enables
exceptions
try {
//Recipients
$mail->setFrom($fromEmail, $fromName);
$mail->addReplyTo($replyemail, $replyname);
$mail->addAddress($toEmail);
$mail->Host = '$universidadeteste.org.br';
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Siren | Resumo do seu e-mail</title>
<link rel="stylesheet" href="bootstrap-4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="zaqar.css">
<link rel="icon" href="favicon.ico"></head>
<body class="p-5" style="background-image: url('img/bg.png');"><div class="col-
md-6 offset-md-3">
</tr>
';
}
?>
<tr>
<td>Assunto: </td>
<td><?php echo $subjectLine ?></td>
</tr>
</table>
</body>
</html>