Jason Vertucio

You know me! ™

SendMail Class (PHP Programming)

In case you’re one of those people who doesn’t care about . . . you know . . . web programming . . . . here’s a fun picture of how we all feel about the new Total Recall film.

For all the rest of you . . . I created a little PHP class that I’d been using for about three years, and updating on and off during that period. It’s simply called SendMail (although for some reason I called the class tofSendMail, which I’ll fix in the next release), and it was developed to easily handle the creation and sending of emails.

For the first public release, I have given you simple features such as the obvious:

  • To, From, Subject
  • CC, BCC
  • HTML and Text versions
  • Sending via PHP’s built-in mail function
And of course:
  • Attaching a file
  • Loading and parsing a text file to send

It’s nothing spectacular, but I decided to release it under the GPL license. I wanted to make it public because I don’t know what else to do with it. I figure you guys can point me in the right direction. It’s currently functional, so you could use it in a live site today. Actually, I may plan to use it on a project I have coming to me this weekend.

If you end up using the PHP class, please let me know. If you want to fork and contribute, definitely let me know. And if you find any bugs or want to see any other features in it, it is compulsory that I know. Also, this is the first time I’m ever using GitHub. If this repo is a rousing success I’ll drop in some other bits of PHP that I had written in the past for everyone to enjoy.


Comments are closed.