17 lines
542 B
PHP
17 lines
542 B
PHP
<?php
|
|
require('settings.php'); //Please specify FROM address in this file!
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
use PHPMailer\PHPMailer\PHPMailer;
|
|
require_once('PHPMailer/src/PHPMailer.php');
|
|
$email = $_POST["email"];
|
|
$mail = new PHPMailer;
|
|
$mail->setFrom($MAIL_SERVER_FROM, '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; ?>
|