You need to be sure that SMTP is running and setup properly on your
computer(server) since you are sending to localhost:
Are you running an SMTP server locally (on localhost)?
If you are, check the mailroot directorys, specifically, the badmail folder,
I bet your email is in there.
From the server, you can telnet to port 25, and issue SMTP commands
manually, something like:
Telnet localhost 25
HELO myserver.com
MAIL FROM:an****@domain.com (put brackets around the email addresses, OE is
taken them out)
RCPT TO:my****@domain.com (put brackets around the email addresses, OE is
taken them out)
DATA
This is a test
..
If you do not get this email assuming you put your email address in the RCPT
TO, then there is a problem with your SMTP server.
Steve
"barry" <fl******@ix.netcom.com> wrote in message
news:#n**************@TK2MSFTNGP14.phx.gbl...
The code below is in a button but though there is no error message of any
kind I am not getting the email which I am sending to myself. Any help
would be appreciated.
System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1"
System.Web.Mail.SmtpMail.Send(TextBox1.Text, TextBox2.Text, TextBox3.Text,
TextBox4.Text)