This is the message that i got if i check "Attach fike uloads to email" L
There was a problem sending an email to '[email protected]' from Workflow for Form 'Form test' with id '910f6d62-f344-47fc-ae94-fdd31508ac24' for Record with unique id '7114907a-0414-414e-812d-bced4dc15b18'
System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType)
at System.Net.Mail.Attachment..ctor(String fileName)
at Umbraco.Forms.Core.Providers.WorkflowTypes.SendEmail.Execute(Record record, RecordEventArgs e)
If I try to access the image with this url http://mydomain.com\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png
it works.
I think that the issue is how Umbraco forms add the path for attached file, unfortunately I don't know how to fix this.
So I guess that D:\home\site\wwwroot\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png doesn't work then? Otherwise it wouldn't state so I guess...
Looks like maybe you have one more directory under your wwwroot? Or is the site actually placed in the wwwroot folder?
If that's the case I'd look for a path starting with "../" somewhere :)
Umbraco Forms - Attach file uploads to email
Hi all,
For a form if I check "Attach file uploads to email" and I have a file upload I don't get the email on submission.
If I uncheck "Attach file uploads to email" I get the email but I have only the path for attached file ( /media/attachedImage.jpg).
Any help would be appreciated.
Thanks, Florin
Hi Florin
It's default behavior of Umbraco Forms, but you can change it easily just go to your form settings in Umbraco admin. And check this checkbox:
It should solve your issue.
Thanks,
Alex
I'd check your logs. Probably your SMTP having trouble sending the mail with a file or something like that.
Otherwise it should work. Since my understanding is that your first case when the mail isn't being sent is what Alex posted.
/Mats
Hi all,
This is the message that i got if i check "Attach fike uloads to email" L
If I try to access the image with this url http://mydomain.com\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png
it works.
I think that the issue is how Umbraco forms add the path for attached file, unfortunately I don't know how to fix this.
florin
So I guess that D:\home\site\wwwroot\media\forms\upload\form_910f6d62-f344-47fc-ae94-fdd31508ac24\161b54bd-7753-4fd6-a29c-48812cb6e4d5\topics.png doesn't work then? Otherwise it wouldn't state so I guess...
Looks like maybe you have one more directory under your wwwroot? Or is the site actually placed in the wwwroot folder?
If that's the case I'd look for a path starting with "../" somewhere :)
Hi all,
It seems that the issue is related to this http://issues.umbraco.org/issue/CON-1056#comment=67-31566
Unfortunately, that package doesn't work :(
Florin
Hi all,
Lets vote for this issue.
Hi guys,
Any updates here.?
Thanks, Florin
I believe I'm experiencing the same issue on a Forms version 4.4.0 and Umbraco version 7.3.0 assembly: 1.0.5750.18157
Hosted on Azure...
is working on a reply...