This is a migrated thread and some comments may be shown as answers.

Attachment mail

1 Answer 57 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 26 Nov 2012, 12:50 PM
I want to attachment mail so i use AsyncUpload :


 <telerik:RadAsyncUpload runat="server" ID="rad_upload" Skin="Default" OnClientFileUploadFailed="onUploadFailed"<br>                                            OnClientFileSelected="onFileSelected" OnClientFileUploaded="onFileUploaded" Culture="Arabic" TemporaryFileExpiration="00:07:00" > <Localization Select="اختر" /> </telerik:RadAsyncUpload>
 List<Attachment> attach = new List<Attachment>(); if (rad_upload.UploadedFiles != null && rad_upload.UploadedFiles.Count > 0){; foreach (UploadedFile file in rad_upload.UploadedFiles){; Attachment f = new Attachment(Server.MapPath("~/App_Data/RadUploadTemp/") + file.GetName(), file.ContentType); attach.Add(f); }

I get an exception File not found !! how attach the file with this method

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 28 Nov 2012, 11:47 AM
Hi Mohamed, 

 
You can refer to this help topic where is explained how to implement similar behavior.

Hope this will be helpful.

All the best,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
mohamed
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or