Sample code for 30+ languages & platforms
PHP Extension

Email Object Examples for PHP Extension