Here's what I'm trying to do:
Code: Select all
require_once "../swift/Swift.php";
require_once "../swift/Swift/Connection/SMTP.php";
require_once '../includes/header.inc.php';
// ... ... ...
$u = "username"; //not the actual value
$activationCode = "theactivationcode"; //not the actual value
$subject = 'Forum Activation';
$body = "Welcome to the forums, " . $u . ". To activate your account, please go to the following link: http://forums.chalksdesign.com/activation.php?u=" . $u . "&code=" . $activationCode . " Please do not reply to this email. Thank you!";
$swift = new Swift(new Swift_Connection_SMTP("mail.chalksdesign.com"));
$message = new Swift_Message($subject, $body);
if($swift->send($message, $e, "forums@chalksdesign.com"))
header('Location: /?e=new');
else
echo "something bad happened";
Thanks.
Edit: oh wow. This is my first post since the site redesign, and I'm _very_ impressed. Especially the nifty line numbers. <3