Attachment mail

2 posts, 1 answers
  1. mohamed
    mohamed avatar
    4 posts
    Member since:
    Mar 2011

    Posted 26 Nov 2012 Link to this post

    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
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 28 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top