11-25-2016, 02:47 PM
Ok. So this is a standalone page. I didn't run a query to find the user (the $thatUser) query, so if you want to test it, just go in on line 39 and put a real "to" email address there.
http://pastebin.com/ukxgegtx
A few things I changed...
For your errors I changed from to to stop it from throwing errors.
Also, the form was throwing errors if there was no input on it, so I made the value and the errors only be able to show up if the form had already been posted...
Finally, I changed the email function from mail to email to use the built in userspice one.
Again, if you cannot send an email from the test page, you're not going to be able to send one here.
I hope that helps!
http://pastebin.com/ukxgegtx
A few things I changed...
For your errors I changed from
Code:
if !$errName
Code:
if (!isset($errName)
Also, the form was throwing errors if there was no input on it, so I made the value and the errors only be able to show up if the form had already been posted...
Code:
value="<?php if($_POST){echo htmlspecialchars($_POST['name']);} ?>">
Code:
<?php if($_POST){echo "<p class='text-danger'>$errName</p>";}?>
Finally, I changed the email function from mail to email to use the built in userspice one.
Again, if you cannot send an email from the test page, you're not going to be able to send one here.
I hope that helps!