Tag Archive for PEAR

Sending emails with PHP

I got the idea recently that I’d upgrade a feedback form that I have on my photo gallery so that it would email me me comments left by visitors rather than just storing them on the web server for later perusal. I opened up my copy of PHP Unleashed (John Coggeshall, SAMS), turned to the relevant chapter and it all started to look rather daunting. Then, another suggestion popped into my head: potter over to PEAR and see what they have there. In the light of my reading, I knew what I wanted and downloaded the Mail and Mime-Mail packages. Another spot of perusal led me to some sample code that I could use with these and I modified that to suit. Within 30 minutes, the results of my labours were in place and it all works very nicely too. I still need to learn more about the code that I am using, though.

  • As is commonly the case with places like these, all the views that you find expressed on here in postings and articles are mine alone and not those of any organisation with which I have any association, through work or otherwise. With regards to any comments left on the site, I reserve the right to reject any that are inappropriate. Otherwise, whatever is said is the sole responsibility of whoever is leaving the comment.