469,592 Members | 1,869 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

sending email

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
2 1882
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
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.

Similar topics

3 posts views Thread by Paul Lamonby | last post: by
reply views Thread by praba kar | last post: by
3 posts views Thread by Ant | last post: by
2 posts views Thread by =?Utf-8?B?QWRl?= | last post: by
7 posts views Thread by bleachie | last post: by
10 posts views Thread by Markgoldin | last post: by
31 posts views Thread by happyse27 | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.