Hi, I have been using the php mail() function for all web forms on a website. I have learned about phpmailer and have a couple of questions that I hope someone can help answer. I have some knowledge of the mail() function but have not use phpmailer before.

1. Is there anything bad about using php mail() function? (e.g. more vulnerable than phpmailer, etc)

2. I need to have html content and inline images for the emails that goes to the user (e.g. send to a friend email) is phpmailer better than the mail() function?

3. What is the advantages of phpmailer over mail() function?

4. is phpmailer or swiftmail hard to learn compare to mail() function?


thanks.