For learning purposes I want to know how to make a contact form for my website.
I did not understand something. Every person that I talk to recommend me to not use the mail() function in PHP, because there is a lot of problem with it, the mail go to spam or don't even send, but every tutorial that I see in the web is using mail() function.
I even downloaded a complete contact form from the web and they are using mail().
I even downloaded a full websites template and online stores template with all the functionality and they even use mail() function.
So I also heard about phpMailer or swiftMailer and my knowledge in OOP is not very strong but I downloaded and some tutorials and for what i realize is that this phpMailer idea is to send email from my email to some other people.
I want to receive email from the client (from contact from) to my email. What is the best way to do that? There is any snippet that I can use for my projects to learn from that?