In the code you show above, `$name` is not defined: if the “From” header you construct is blank, the email probably won’t be sent.
Further, if you’re simply putting a name in the “From” header, the mail might be dropped anyway, since “From” requires an email address. Use an email that belongs to your domain (e.g., `firstname.lastname@example.org`).
[`mail()`](http://php.net/mail) wouldn’t know about such a failure: all it does is submit the message to the mailing queue.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".