Here’s the best email library I found for PHP. Takes care of sending emails, attachments, HTML/Text content, CC, BCC – all you can think of.
PS: You may notice that the certificate doesn’t allow you to download the file using wget. Here’s the modified command that you could use:
wget --no-check-certificate https://phpmailer.apache-extras.org.codespot.com/files/PHPMailer_5.2.4.tgz