change method "send" in order to provide backward compatibility

We have a lot of code that works with first version of this lib, and also we want to send emails with attachments. 
This code solve both problems :)

Please review it.