Image and resource caching with htaccess
This is as much a bookmark for myself as anything. I just discovered this .htaccess trick to easily set resource caching with apache. It requires mod_headers enabled which comes compiled by default but switched off. Then all you need do is add something like this to your .htaccess file:
<IfModule mod_headers.c> <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$"> Header set Cache-Control "max-age=2592000" </FilesMatch> </IfModule>
Which will cache images and flash for one month. The link posted above has loads more info.
Using Postmark to send emails with SwiftMailer
SwiftMailer as I've mentioned before is a great php library for creating and sending emails. Along with a great plugin architecture it is by default setup to handle SMTP, sendmail and php's native mail() function as transport agents for the email.
Recently I discovered and started using Postmark in a project. There can be so many issues with emails generated by a website; messages being marked as spam for numerous reasons, MTA issues, blacklisted IP addresses, shared servers, Hotmail rejecting your email, SPF records, reverse DNS, domain keys and plenty more to think about. Postmark takes care of all this for you, as they say on their website: "Postmark helps small and large businesses...







