You cannot receive mail with ASP.NET.
You can send it.
Try this...
Dim objEmail as New MailMessage()
objEmail.To = txtTo.Text
objEmail.From = txtFrom.Text
objEmail.Cc = txtCc.Text
objEmail.Subject = "Test Email"
objEmail.Body = txtName.Text & ", " &txtComments.Text
objEmail.Priority = MailPriority.High
'SmtpMail.SmtpServer = "localhost"
try
SmtpMail.Send(EMail)
Response.Write(Your E-mail has been sent sucessfully - _
Thank You)
catch exc as Exception
Response.Write("Send failure: " + exc.ToString())
End Try
You can create a table to fill the variables then use a button as the event to send.
Receiving can only occur in a mail server, however rules can be set so that certain content or senders will forward content and other data to a table that can be picked up and sent to a web page for example.
It is quite easy to find out all you need by clicking
Here[
^]