11-24-2016, 04:48 PM
You didn't include your actual form...if you want to paste it on pastebin and give me the link that would probably help, but I can see a few things off the bat...
should probably be...
Secondly, you may want to consider using
instead of
It most likely wouldn't be a problem on sending emails, but that would sanitize the input in case someone was doing something mischievous. Do this especially if you plan on saving a copy of the sent message to the database.
You may not be able to do it for the email address. It's been a while since I've done that.
Either way, try fixing the
and see if it sends. If not, we can look a little farther.
Code:
$from = $user->data()->email['email'];
Code:
$from = $user->data()->email;
Secondly, you may want to consider using
Code:
$name = Input::get('name');
Code:
$name = $_POST['name'];
It most likely wouldn't be a problem on sending emails, but that would sanitize the input in case someone was doing something mischievous. Do this especially if you plan on saving a copy of the sent message to the database.
You may not be able to do it for the email address. It's been a while since I've done that.
Either way, try fixing the
Code:
$from = $user->data()->email;
and see if it sends. If not, we can look a little farther.