-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-determine the mimetype on a attachment #967
Comments
Hello @jiska78, Currently, we have not implemented mime-type detection in this version of the helper library. A workaround would be to utilize the I suggest we add a mimetype function to determine the mimetype and then optionally call it within the This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. I will update the title for this issue accordingly. With best regards, Elmer |
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: