Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Davey's Blog:
POP before SMTP Authentication for PHPMailer
Nov 18, 2005 @ 11:45:20

Richard Davey has this new post today on his blog with a look at integrating POP authentication into the PHPMailer package.

Although it provides sending via SMTP, it only supports direct SMTP Authentication. Which was great until an application I built moved host and needed "POP before SMTP" Authentication instead. So I wrote this class. I figured I'd post it here incase anyone else had a use for it.

This is built for PHP Mailer 1.72 and was not tested with any previous version. It was developed under PHP 4.3.11 (E_ALL). It works under PHP 5 and 5.1 with E_ALL, but not in Strict mode due to var deprecation (but then neither does PHP Mailer either!). It follows the RFC 1939 standard explicitly and is fully commented.

From there, he shows you how to use it, including the classes, creating a new POP3 object and setting the user/pass for it, as well as a little (quick) documentation on how to use it. You can grab the files for this update here.

tagged: phpmailer pop smtp class phpmailer pop smtp class

Link:


Trending Topics: