Add attachment support for the sending API, now only support text/plain.