Fixing IOS Sendmail functionality

The arguments are being pulled from the wrong indexes.  Also fixing
some leaked objects by using autoreleased objects.
Merge pull request #735 from JandyCo/ios-sendmail

Fixing IOS sendMail functionality