. */ /* DEVELOPER NOTE: If you are having difficulty with your email configuration, go to users/helpers/helpers.php (around line 114) and set $mail->SMTPDebug to a non-zero value. This is a development-platform-ONLY setting - be sure to set it back to zero (or leave it unset) on any live platform - otherwise you would open significant security holes. */ ?> data()->id != 1){ Redirect::to('account.php'); } ?>

Test your email settings.


It's a good idea to test to make sure you can actually receive system emails before forcing your users to verify theirs.

query("SELECT * FROM email"); $results = $query->first(); */ $to = $_POST['test_acct']; $subject = 'Testing Your Email Settings!'; $body = 'This is the body of your test email'; $mail_result=email($to,$subject,$body); if($mail_result){ echo '
'; }else{ echo '
'; } } ?>