PHPMailer is a library that allows you to send emails from localhost using a PHP server. It also supports HTML emails. You can also use Gmail as an SMTP server to send emails from localhost.