Below is the line I am using to attach a csv while sending automated mail from R. But I get only mail and not the attachement. Can anyone let me know what wrong I am doing
file = "File.csv"
add_attachment(email, file , content_type = mime::guess_type(file),filename = basename(file))