OrchardCore
OrchardCore copied to clipboard
Is there any posibility to send attachments with email in email activity in workflow ?
I have a job form and it contain candidate CV in pdf form how do I can send that pdf through email to the recipient email address? or is there any other way to do this ?
The current email abstraction APIs doesn't support sending an attachment file, but we could add this feature in the future releases
any other solution for this ? what should you propose ?
M suggestion is to create a new implementation of ISmtpService
which support sending attachments, you could have a look to the current SmtpService
implementation if you do so
First we need a task to extract files from POST requests. Then save it temporarily and then another task that could join files to emails.
Hello All,
I'm running into the same issue now even two years later as I am just learning about using the workflow activities. Has there been any update on this? I mean in regards to adding the attachment feature.
I would also welcome this feature.
imho related to #6027 should be enough to finish save files task, add their paths to output and create input in send email task that would consume list of files and send them as attachments.
I need it for my project anyway, so I created a POC for OC too. #12218
We need a different issue to track adding an API in the email service to send file.
@MikeKry I believe that this PR is adding support to send files to a workflow and store them, which is a different step.
@sebastienros we already support attachments in OC.Email
, what API you refer to above?
@hishamco my bad then, it's just about the workflows.
Which means what @MikeKry did is the good first task, support file uploads in workflows. Next step would then be to be able to attach one of these files in an email task. Or another file that is not coming from the workflow (media).
I'm still suggesting to rid-off media abstractions in OC.Email
, just extract the posted file and download it temparory using OC.FileSystem
APIs as @sebastienros suggested earlier
@sebastienros @hishamco
I confirm that email API already can send attachments.
Mentioned PR handles attachment downloading to FileSystem and also handles attaching them to Email Task and sending via email.
But it should be reviewed if it is safe and if it fits OC architecture.
My concern here to remove the dependency on media APIs and follow what described above
can you assign issue to me
@Abhi441 if you want to work on this, feel free to send a PR
can you connect for giving kt on issue and application .
I didn't understand your question?!!