send message
-
how send message through network in asp.net.
-
how send message through network in asp.net.
Go through Socket Programming. You can refere below URL: http://www.developerfusion.com/article/3918/socket-programming-in-c-part-1/[^]
Parwej Ahamad g.parwez@gmail.com
-
how send message through network in asp.net.
-
how send message through network in asp.net.
hi, here is the way for mail message.. protected void btnSubmit_Click(object sender, EventArgs e) { try { MailAddress SendFrom = new MailAddress(txtFrom.Text); MailAddress SendTo = new MailAddress(txtTo.Text); MailMessage MyMessage = new MailMessage(SendFrom, SendTo); MyMessage.Subject = txtSubject.Text; MyMessage.Body = txtBody.Text; Attachment attachFile = new Attachment(txtAttachmentPath.Text); MyMessage.Attachments.Add(attachFile); SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text); emailClient.Send(MyMessage); litStatus.Text = "Message Sent"; } catch (Exception ex) { litStatus.Text=ex.ToString(); } } Regards Anil :)
Anil Pandey