It's normal that you could not send your attachement. You must export your local file on the machine where your perl traitment is installed.
For that you have different way:
- first export by FTP ( use module NET::FTP )
- second you could do a script on remote machine to upload your file ( but you will must send this file by manipulation on LWP ).
The second solution look more difficult that the first.
Sorry ,
For this bad reflexion , i dont' read all of the comment.
Perhaps have you a right-problem on this file ...