To send emails with PHP SMTP PHPmailer is vital in most backend projects we develop. Situations will arise when the standard mail() PHP function won’t be sufficient to send emails.
Why? Because a lot of emails filter out the mail() function. It is used by spammers and hackers to spam their victims. Even hosting website has started to discourage the use of the mail() function. But what can you do to send simple emails?