Auto-determine the mimetype on a attachment #967
Labels
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
I'm using SendGrid on my website and it allows a user to attach a file to an email. I used to just have the code $email->addattachment($filename) which no longer works on the new version of SendGrid. The new format is this:
My problem with that is, how am I possibly going to know what filetype the user uploads. It could be anything? Can't I just tell sendgrid to attach whatever file is uploaded to the email being sent?
The text was updated successfully, but these errors were encountered: