Viewing posts about Mail.

Mocking Internal PHP Functions

A problem that I've run into during the unending quest for complete test coverage is mocking of internal PHP functions. Unit tests are easy to write as long as a class method returns everything it does, but when a method starts to call out to certain internal PHP functions things get difficult. It's…

  • Category Web Development
  • Posted May 31, 2016
  • read more

A Simple Mail Object

Sending plain emails with PHP can be pretty easy. On a basic level you can just call mail(), which triggers the server-side sendmail command. Pass in three parameters (a recipient email address, subject, and message) and you're done. When you start looking into file attachments and HTML messages,…

  • Category Web Development
  • Posted April 12, 2013
  • read more

Activity Stream

  • Read Leviathan Falls (The Expanse #9) by James S.A. Corey.
  • Tweeted | @nickguillory Been there. No idea why “current balance” is even an option on that interface. Navient, if I had 20k+… [twitter.com/i/web/status/1…]
  • Tweeted | Tillman Run was a blast ✅ — trying to do a 4.2 mile run with three kids and manage them seemed like a really dumb i… [twitter.com/i/web/status/1…]
  • Tweeted | @BugsySailor Your project/journey would make an interesting study in mental well-being.
  • Tweeted | RT @brad_frost: Your health is more important than your deadline.
View more activities…