Sure. You'll have to specify which API you want to use. We have people here who have dealt with a lot of different APIs, so you might get lucky and find one who already knows what you need to do with it.
You seem frustrated. But we aren't mind readers and need at least a little something to work with.
As to using ANYTHING via an API, usually we can do a "send object" (like a report). But the question is, were you trying to use a Mail API? If you can send a file through ordinary unencrypted mail, I would recommend that you look into Collaboration Data Objects (CDO) OR you can look at the "send object" capabilities, which do require you to have a mail client installed on your system - like Outlook, for example.