Php mail function

Hi. I have been using the mail function but this causes a lot of mails to go into the spam box. To sort this out, I am intending to use something like PHPMailer. The only problem is, there are so many examples. I just want to send mail the same way the mail function does. Is this

Basic Mail() Example
Basic Sendmail Example
Basic Qmail Example
Basic SMTP Example
Basic SMTP (no authentication)
SMTP / Database Example
Basic Gmail Example
Basic POP before SMTP

Not sure which one to follow?

cheers

It depends on what you’ll be using to send your emails. If you’re unsure, I’d just go with the basic mail() example.