give use interface for creating body of mail

Swapnil Salunke replied to imran khan at 05-Jul-08 12:16

Hello imran khan

 You are having the answer with you only. What all you will be needing is to use one multiline textbox which gets \n\r when user press enter key that is Envirnoment.NewLine 
Also for attaching files you have to use the FileUpload control in asp.net 2.0 .

 If FileUpload1.HasFile Then
            Try
                FileUpload1.SaveAs("C:\Uploads\" & _
                   FileUpload1.FileName)
                Label1.Text = "File name: " & _
                   FileUpload1.PostedFile.FileName & "<br>" & _
                   "File Size: " & _
                   FileUpload1.PostedFile.ContentLength & " kb<br>" & _
                   "Content type: " & _
                   FileUpload1.PostedFile.ContentType
            Catch ex As Exception
                Label1.Text = "ERROR: " & ex.Message.ToString()
            End Try
        Else
            Label1.Text = "You have not specified a file."
        End If.

Please refer this link for more
http://msdn.microsoft.com/en-us/library/aa479405.aspx#uploadasp2_topic2

Happy Coding takecare  


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  how to give use interface for creating body of mail - imran khan  05-Jul-08 12:02 12:02:39 AM
      use Rich text Editors for this... - Vasanthakumar D  05-Jul-08 12:12 12:12:34 AM
      See this - Sujit Patil  05-Jul-08 12:13 12:13:26 AM
      give use interface for creating body of mail - Swapnil Salunke  05-Jul-08 12:16 12:16:24 AM
      You can c reate a user control and add it to your main page - santhosh kumar  05-Jul-08 01:00 1:00:47 AM
      check here - santhosh kapa  05-Jul-08 01:43 1:43:48 AM
      Try this - sri sri  05-Jul-08 02:33 2:33:58 AM
View Posts