Skip to content
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

Feature request: Send attachments #5

Open
matteocarpi opened this issue Nov 10, 2021 · 2 comments
Open

Feature request: Send attachments #5

matteocarpi opened this issue Nov 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@matteocarpi
Copy link

I think it would be a great feature to be able to send attachments through the plugin.

At the moment i'm implementing a "work with us" on which a user can attach a CV and i'm not sure how to go about with it.

If you have any suggestion or if the plugin is already able to do that i'm all ears :).

@ashhitch
Copy link
Owner

This would be a great idea, I think we would need to get it to work with this plugin https://github.com/dre1080/wp-graphql-upload

@ashhitch ashhitch added the enhancement New feature or request label Nov 10, 2021
@matteocarpi
Copy link
Author

Yes I was looking at that plugin and I think for now I'll use a combination of the 2 using them independently on the frontend:

  • upload the file
  • get the url from the response of the mutation
  • send an email and include the url in the body of the email

Though it's not gonna be great for security... that will mean that the file is publicly accessible to whoever has the url of the uploaded media... Instead it would be cool if the file could really be sent in the email without really uploading it anywhere...

Mailgun has such an option in their API, but I wouldn't know where to start in our case...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants