Sending emails directly by PHP code requires a high-level familiarity to SMTP protocol standards (RFC 821, 2821, 5321) and related issues (such as Carriage return) and vulnerabilities about Email injection for spamming. From 2001 PHPMailer is one of the popular[9][10] solutions for these matters on PHP.