Use point-min rather than 1. (message-send-mail): Use buffer-size rather than point-max.
Attach a file by drag & drop or click to upload