By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,606 Members | 1,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,606 IT Pros & Developers. It's quick & easy.

sending email

P: n/a
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)
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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)

Nov 19 '05 #2

P: n/a
Thanks for the response.
Yes the email is going to the badmail folder and when I look at the .BAD
suffix it shows my email but I do not understand why it is being rejected.
The .BRD suffix shows "The specific error code was 0xC00402C7."

If there is anything else I can send to help solve this let me know.

thanks
"Steve Lutz" <sl***@nospam.comcast.net> wrote in message
news:ON****************@TK2MSFTNGP12.phx.gbl...
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)


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.