Damn.... Just lost my whole usage example. sigh. here we go again.
Anyways, please understand i hacked this together in an hour or so. Please dont flame me, if you can improve it let me know and post a suggestion and ill fix it for you! This is more for an idea of how files can be sent pretty easily!
Im not a PHP god and I dont pretend to be, so any critism would be welcome and appreciated!
$sender = New FileSenderPro;
$built_data = array();
$basepath = "/path/to/file/";
$filename = "the_File.zip";
$built_data['email_to_send'] = "email@example.com";
$built_data['data'] = file_get_contents($basepath . $filename);
$built_data['ftp_server'] = "server.server.com";
$built_data['ftp_username'] = "username";
$built_data['ftp_password'] = "complicated_password";
$built_data['ftp_subaddress'] = "/path/to/file/";
$built_data['filename'] = "new_filename.zip";
//something went seriously wrong!