Things to do in Cape Town, the Helderberg, and the Cape Winelands

Tag mail

PHP and PHPMailer: How to Check if Your Mail Send Failed

PHPMailer is a great little mail sending workhorse class for PHP, widely expanding on the regular PHP mail() function and particularly easy to make use of, making it a personal favourite of mine. Anyway, to check whether or not your… Continue Reading →

PHP: How to Send a PDF File Attachment via E-mail

I’ve moved to the fantastic PHPMailer PHP class to handle all my e-mail send outs for my projects and have thus far been quite impressed by the ease-of-use and robustness of the class. Today I’ll quickly note how you can send an attachment (like a PDF file for example) with a mail send out.

PHP Code to Extract Attachments from Mail Files

For a recent project I needed to parse .mai mail files to locate excel and zip files that may have been sent through as attachments. The following block of code is the result of my work:

© 2021 An Exploring South African — Powered by WordPress