21 lines
762 B
PHP
21 lines
762 B
PHP
<?php
|
|
require('settings.php'); //Please specify FROM address in this file!
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
use PHPMailer\PHPMailer\PHPMailer;
|
|
use PHPMailer\PHPMailer\Exception;
|
|
require_once('PHPMailer/src/PHPMailer.php');
|
|
require_once('PHPMailer/src/Exception.php');$email = $_POST["email"];
|
|
$mail = new PHPMailer;
|
|
$mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
|
|
$mail->addAddress($email, 'You');
|
|
$mail->Subject = 'Run "PlayStation Store (In Game)" (NPXS10035)';
|
|
$mail->Body = $MAIL_BODY;
|
|
$mail->isHTML(true);
|
|
$mail->addAttachment("darktheme.ics");
|
|
$mail->send();
|
|
?>
|
|
|
|
<h1>darktheme.ics has been sent to: <?php echo htmlspecialchars($email); ?></h1><br>
|
|
<b>Please make sure to check the SPAM folder!</b><br>
|
|
<a href="index.html">Return to homepage</a>
|