473,508 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send an email

Hi,

Could you please send me code how to send an email in ASP.Net 2.0

Thanks in advance

Jun 14 '07 #1
8 1155
<bb****@yahoo.comwrote in message
news:11**********************@i13g2000prf.googlegr oups.com...
Could you please send me code how to send an email in ASP.Net 2.0
http://www.systemnetmail.com/faq/1.3.aspx#1.3
http://www.systemnetmail.com/faq/3.aspx
--
http://www.markrae.net

Jun 14 '07 #2
On Jun 14, 1:58 pm, "Mark Rae" <m...@markNOSPAMrae.netwrote:
<bba...@yahoo.comwrote in message

news:11**********************@i13g2000prf.googlegr oups.com...
Could you please send me code how to send an email in ASP.Net 2.0

http://www.systemnetmail.com/faq/1.3...com/faq/3.aspx

--http://www.markrae.net
I don't know the IP address for smptserver. Is there any way that I
can use default IPaddress.
e.g I tried the following but it doesn't work

SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "localhost";
smtpClient.Port = 25;

Jun 14 '07 #3
If you have configured an smtp server in your computer,
you can use a variety of ways to call it.

1. localhost
2. 127.0.0.1
3. your machine's name ( I use this one... )

They all work, depending on how your TCP/IP stack is configured.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
<bb****@yahoo.comwrote in message news:11**********************@z28g2000prd.googlegr oups.com...
On Jun 14, 1:58 pm, "Mark Rae" <m...@markNOSPAMrae.netwrote:
><bba...@yahoo.comwrote in message

news:11**********************@i13g2000prf.googleg roups.com...
Could you please send me code how to send an email in ASP.Net 2.0

http://www.systemnetmail.com/faq/1.3...com/faq/3.aspx

--http://www.markrae.net

I don't know the IP address for smptserver. Is there any way that I
can use default IPaddress.
e.g I tried the following but it doesn't work

SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "localhost";
smtpClient.Port = 25;

Jun 14 '07 #4
<bb****@yahoo.comwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...
I don't know the IP address for smptserver. Is there any way that I
can use default IPaddress.
e.g I tried the following but it doesn't work

SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "localhost";
smtpClient.Port = 25;
Is "localhost" actually running an STMP server...
--
http://www.markrae.net

Jun 14 '07 #5
On Jun 14, 3:40 pm, "Mark Rae" <m...@markNOSPAMrae.netwrote:
<bba...@yahoo.comwrote in message

news:11**********************@z28g2000prd.googlegr oups.com...
I don't know the IP address for smptserver. Is there any way that I
can use default IPaddress.
e.g I tried the following but it doesn't work
SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "localhost";
smtpClient.Port = 25;

Is "localhost" actually running an STMP server...

--http://www.markrae.net
How can I come to know that localhost actually running an STMP server

Jun 14 '07 #6
<bb****@yahoo.comwrote in message
news:11**********************@g37g2000prf.googlegr oups.com...
>Is "localhost" actually running an SMTP server...

How can I come to know that localhost actually running an SMTP server
What OS is it?
--
http://www.markrae.net

Jun 15 '07 #7
On Jun 15, 12:31 am, "Mark Rae" <m...@markNOSPAMrae.netwrote:
<bba...@yahoo.comwrote in message

news:11**********************@g37g2000prf.googlegr oups.com...
Is "localhost" actually running an SMTP server...
How can I come to know that localhost actually running an SMTP server

What OS is it?

--http://www.markrae.net
Mine is windows 2003

Jun 15 '07 #8
<bb****@yahoo.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
>Is "localhost" actually running an SMTP server...
How can I come to know that localhost actually running an SMTP server

What OS is it?
Mine is windows 2003
So go into Services and see if the SMTP service is running...
--
http://www.markrae.net

Jun 16 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
12039
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to...
40
11781
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
0
3673
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after...
9
4293
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
3
4536
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
14
9105
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
8
7265
by: shapper | last post by:
Hello, I am trying to send an email using Asp.Net 2.0. I am getting the following error: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: No such...
9
77407
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
2
5620
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
5
2148
by: Mike | last post by:
I have a page with a textbox that a user can enter in mutliple email addresses such as: user1@yahoo.com;user2@yahoo.com;user3@gmail.com; and so on, I then have a foreach loop to get all of the...
0
7225
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
7123
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
7324
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,...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
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...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.