add background send email function & support multiple attachments