473,407 Members | 2,320 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,407 software developers and data experts.

How to setup a SMTP Server?

Dear all,

How to setup a smtp server for sending mail using System.Web.SmtpMail? Just
install a smtp service to the pc then

SmtpMail.SmtpServer = "myPC"; ??

I could not make it work. How?

Thanks for any help

Tedmond
Jul 12 '06 #1
3 1442
What SMTP software did you install? What Port is it listening on?

The value of the SmtpServer is either a domain name, machine name, host
name, or IP address.

Finally, what do you mean by "couldn't make it work?"

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
"Tedmond" <Te*****@discussions.microsoft.comwrote in message
news:93**********************************@microsof t.com...
Dear all,

How to setup a smtp server for sending mail using System.Web.SmtpMail?
Just
install a smtp service to the pc then

SmtpMail.SmtpServer = "myPC"; ??

I could not make it work. How?

Thanks for any help

Tedmond

Jul 12 '06 #2
There is one thing to note if you plan on doing this from your home... Many
(if not all) ISP block port 25 which is the port used for SMTP. As a result,
you can't have a smtp server at home because it would serve nothing because
it can't send anywhere except your ISP' SMTP server which won't relay
e-mails....

but what you said about SmtpMail.SmtpServer = "myPC"; is right... is
should work...

I hope it helps

ThunderMusic

"Tedmond" <Te*****@discussions.microsoft.comwrote in message
news:93**********************************@microsof t.com...
Dear all,

How to setup a smtp server for sending mail using System.Web.SmtpMail?
Just
install a smtp service to the pc then

SmtpMail.SmtpServer = "myPC"; ??

I could not make it work. How?

Thanks for any help

Tedmond

Jul 12 '06 #3
If you're sending from the PC where the application resides, use 127.0.0.1
as your SMTP server.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Tedmond" <Te*****@discussions.microsoft.comwrote in message
news:93**********************************@microsof t.com...
Dear all,

How to setup a smtp server for sending mail using System.Web.SmtpMail?
Just
install a smtp service to the pc then

SmtpMail.SmtpServer = "myPC"; ??

I could not make it work. How?

Thanks for any help

Tedmond

Jul 19 '06 #4

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

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
7
by: Nancy | last post by:
Hi, Is there any one knows, if I want to use mod_python to handle my html form, I must have a SMTP server on my PC(winxp pro)? Where can I get a free SMTP server? I cann't follow mod_python's...
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
2
by: David | last post by:
Hi Group, I'm having a few problems with getting an SMTP server configured on my Windows 2000 Server web server. My web server is co-located at my hosts and i use VNC to remotely access the web...
15
by: Steven Burn | last post by:
My server has POP but only has SMTP if sending to my domain, and not other domains (such as hotmail). I'm therefore wondering, if anyone knows of any scripts etc, that will allow me to have a sort...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
5
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
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...

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.