Not able attach csv file while sending automated mail

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)) 

It would be helpful to offer a more complete reproducible example of your steps to create and send an email that results in this error. With the info provided, I can't seem to reproduce the error you're getting (and suspect others might be similarly befuddled).

I'm just following the steps here:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.