Apply some fixes

- Seperating attachments from the recipients address with `--` is mandatory.
- `put` should be used with source and target file. Otherwise, the transfer may fail.