1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Return-path when sending with the PHP mail() function
When sending an email with the PHP mail() function, the return-path will be recorded as firstname.lastname@example.org for example.
On the other hand, in your form code, the "Reply-To:" header allows a valid return address to be specified.