no message

This commit is contained in:
AtelierWindows\SilicaAndPina 2018-12-24 16:56:59 +13:00
parent 4a82272962
commit a2e74bf97d
8 changed files with 25 additions and 8 deletions

View File

@ -1,2 +1,6 @@
# VitaTricks # VitaTricks
Src code for http://vitatricks.tk Src code for http://vitatricks.tk
If you plan on hosting a copy of vitatricks yourself.
change the FROM email in settings.php to match the one used by your webserver.
it should be the same email used by php's mail() function.

View File

@ -1,10 +1,11 @@
<?php <?php
require('settings.php'); //Please specify FROM address in this file!
error_reporting(E_ERROR | E_PARSE); error_reporting(E_ERROR | E_PARSE);
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
require_once('PHPMailer/src/PHPMailer.php'); require_once('PHPMailer/src/PHPMailer.php');
$email = $_POST["email"]; $email = $_POST["email"];
$mail = new PHPMailer; $mail = new PHPMailer;
$mail->setFrom('vitatric@xo2.x10hosting.com', 'SilicaAndPina'); $mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
$mail->addAddress($email, 'You'); $mail->addAddress($email, 'You');
$mail->Subject = 'Dump Calendar.db'; $mail->Subject = 'Dump Calendar.db';
$mail->Body = 'Click the attachment :)'; $mail->Body = 'Click the attachment :)';

View File

@ -1,10 +1,11 @@
<?php <?php
require('settings.php'); //Please specify FROM address in this file!
error_reporting(E_ERROR | E_PARSE); error_reporting(E_ERROR | E_PARSE);
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
require_once('PHPMailer/src/PHPMailer.php'); require_once('PHPMailer/src/PHPMailer.php');
$email = $_POST["email"]; $email = $_POST["email"];
$mail = new PHPMailer; $mail = new PHPMailer;
$mail->setFrom('vitatric@xo2.x10hosting.com', 'SilicaAndPina'); $mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
$mail->addAddress($email, 'You'); $mail->addAddress($email, 'You');
$mail->Subject = 'PS Store Dark Theme'; $mail->Subject = 'PS Store Dark Theme';
$mail->Body = 'Click the attachment, then click the Browser Icon.'; $mail->Body = 'Click the attachment, then click the Browser Icon.';

View File

@ -21,4 +21,7 @@
<b>PS4 Error-On-Demand:</b><br> <b>PS4 Error-On-Demand:</b><br>
<a href="psal:play?id=NPXS10031">NP-363211-3</a><br> <a href="psal:play?id=NPXS10031">NP-363211-3</a><br>
<a href="http://">WV-33896-9</a><br> <a href="http://">WV-33896-9</a><br>
<a href="http://invalid">WV-33898-1</a> <a href="http://invalid">WV-33898-1</a><br><br>
<b>vitatricks - Github Repository</b><br>
<input type="text" value="git clone https://SilicaAndPina@bitbucket.org/SilicaAndPina/vitatricks.git" size="60" readonly="true"></input>

View File

@ -1,10 +1,11 @@
<?php <?php
require('settings.php'); //Please specify FROM address in this file!
error_reporting(E_ERROR | E_PARSE); error_reporting(E_ERROR | E_PARSE);
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
require_once('PHPMailer/src/PHPMailer.php'); require_once('PHPMailer/src/PHPMailer.php');
$email = $_POST["email"]; $email = $_POST["email"];
$mail = new PHPMailer; $mail = new PHPMailer;
$mail->setFrom('vitatric@xo2.x10hosting.com', 'SilicaAndPina'); $mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
$mail->addAddress($email, 'You'); $mail->addAddress($email, 'You');
$mail->Subject = 'Package Installer'; $mail->Subject = 'Package Installer';
$mail->Body = 'Click the attachment, then click the Browser Icon.'; $mail->Body = 'Click the attachment, then click the Browser Icon.';

4
settings.php Normal file
View File

@ -0,0 +1,4 @@
<?php
// Specify EMAIL (FROM) Address:
$MAIL_SERVER_FROM = "vitatric@xo2.x10hosting.com"
?>

View File

@ -1,10 +1,11 @@
<?php <?php
require('settings.php'); //Please specify FROM address in this file!
error_reporting(E_ERROR | E_PARSE); error_reporting(E_ERROR | E_PARSE);
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
require_once('PHPMailer/src/PHPMailer.php'); require_once('PHPMailer/src/PHPMailer.php');
$email = $_POST["email"]; $email = $_POST["email"];
$mail = new PHPMailer; $mail = new PHPMailer;
$mail->setFrom('vitatric@xo2.x10hosting.com', 'SilicaAndPina'); $mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
$mail->addAddress($email, 'You'); $mail->addAddress($email, 'You');
$mail->Subject = 'Sign Up'; $mail->Subject = 'Sign Up';
$mail->Body = 'Click the attachment, then click the Browser Icon.'; $mail->Body = 'Click the attachment, then click the Browser Icon.';

View File

@ -1,4 +1,6 @@
<?php <?php
require('settings.php'); //Please specify FROM address in this file!
error_reporting(E_ERROR | E_PARSE); error_reporting(E_ERROR | E_PARSE);
$file = fopen("uri.ics", "rb"); $file = fopen("uri.ics", "rb");
$text = fread($file,filesize("uri.ics")); $text = fread($file,filesize("uri.ics"));
@ -12,7 +14,7 @@ use PHPMailer\PHPMailer\PHPMailer;
require_once('PHPMailer/src/PHPMailer.php'); require_once('PHPMailer/src/PHPMailer.php');
$email = $_POST["email"]; $email = $_POST["email"];
$mail = new PHPMailer; $mail = new PHPMailer;
$mail->setFrom('vitatric@xo2.x10hosting.com', 'SilicaAndPina'); $mail->setFrom($MAIL_SERVER_FROM, 'SilicaAndPina');
$mail->addAddress($email, 'You'); $mail->addAddress($email, 'You');
$mail->Subject = 'Your URI Call'; $mail->Subject = 'Your URI Call';
$mail->Body = 'Click the attachment, then click the Browser Icon.'; $mail->Body = 'Click the attachment, then click the Browser Icon.';