Possible Duplicate:
Use Zend Framework components without the actual framework?
I just need the Zend_Mail functions of the Zend Framework, but the whole framework is about 300MB in size. Is there a way to cut it down to just the basics and Zend_Mail to save up some disk space?
Yes, I have used Zend_Mail with SMTP standalone before, here are the files I needed. I also reduced it down to what you need if you only want to use sendmail also.
If you want to use Sendmail, that is the easiest. Your dependencies are:
And with those files, here is an example use:
If you need SMTP, then you have a few more dependencies to include. In addition to the above you need at least:
Then you can do something like this: