vitatricks/caldbdumper.php

22 lines
834 B
PHP
Raw Normal View History

2017-11-29 22:49:58 +00:00
<?php
2018-12-24 03:56:59 +00:00
require('settings.php'); //Please specify FROM address in this file!
2017-11-29 22:49:58 +00:00
error_reporting(E_ERROR | E_PARSE);
use PHPMailer\PHPMailer\PHPMailer;
2020-12-13 23:59:26 +00:00
use PHPMailer\PHPMailer\Exception;
2017-11-29 22:49:58 +00:00
require_once('PHPMailer/src/PHPMailer.php');
2020-12-13 23:59:26 +00:00
require_once('PHPMailer/src/Exception.php');$email = $_POST["email"];
2017-11-29 22:49:58 +00:00
$mail = new PHPMailer;
2018-12-24 03:56:59 +00:00
$mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
2017-11-29 22:49:58 +00:00
$mail->addAddress($email, 'You');
$mail->Subject = 'Dump Calendar.db';
2020-03-13 11:42:07 +00:00
$mail->Body = '<b>1. Press ... > "Add To Calendar"<br>2. Find The Event In Calendar<br>3. Press ... > Send By Email</b>';
2020-03-13 11:39:04 +00:00
$mail->isHTML(true);
2017-11-29 22:49:58 +00:00
$mail->addAttachment("caldbdumper.ics");
$mail->send();
?>
2018-12-24 06:07:23 +00:00
<h1>caldbdumper.ics has been sent to: <?php echo htmlspecialchars($email); ?></h1><br>
2018-12-24 06:22:30 +00:00
<b>Please make sure to check the SPAM folder!</b><br>
<a href="index.html">Return to homepage</a>
2018-12-24 06:07:23 +00:00