473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2215
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt....
0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
3
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
7
by: bleachie | last post by:
Hey, I just need some help, my form seems to not send me all of the 'guestNames' and 'guestEmails' forms. i use this function to add more guestnames and guestemail fields based on the number of...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.