vitatricks/pkg.php
2017-11-29 14:49:58 -08:00

16 lines
485 B
PHP

<?php
error_reporting(E_ERROR | E_PARSE);
use PHPMailer\PHPMailer\PHPMailer;
require_once('PHPMailer/src/PHPMailer.php');
$email = $_POST["email"];
$mail = new PHPMailer;
$mail->setFrom('vitatric@xo2.x10hosting.com', 'SilicaAndPina');
$mail->addAddress($email, 'You');
$mail->Subject = 'Package Installer';
$mail->Body = 'Click the attachment, then click the Browser Icon.';
$mail->addAttachment("pkg.ics");
$mail->send();
?>
<h1>pkg.ics has been sent to: <?php echo $email; ?>