Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > SMTP on Vista Home Premium

Reply
Thread Tools Display Modes

SMTP on Vista Home Premium

 
 
Mr. Arnold
Guest
Posts: n/a

 
      08-29-2007

"Nick" <> wrote in message
news:5FBB4571-8114-40A3-BE89-...
>I have the Vista Home Premium operating system and I do software
>development on it using Visual Studio.Net. I am developing an ASP.Net web
>application that sends out emails.
>
> I need to configure SMTP and I have tried several options from installing
> SmarterMail and Free Smtp. I was able to actually send an email using
> SmarterMail but it has failed when using
> System.Net.Mail.SmtpClient.Send(MailMessage message).
>
> Should I continue to try to figure out SmarterMail or is there a better
> way? If SmarterMail is the way to go, how do I go about configuring this?


Although you are running Vista, where you should really be posting to about
the issue is a dotnet NG like MS.Public.dotnet.framework.aspnet or
MS.Public.dotnet.framework.general.



>


 
Reply With Quote
 
 
 
 
Nick
Guest
Posts: n/a

 
      08-29-2007
I have the Vista Home Premium operating system and I do software development
on it using Visual Studio.Net. I am developing an ASP.Net web application
that sends out emails.

I need to configure SMTP and I have tried several options from installing
SmarterMail and Free Smtp. I was able to actually send an email using
SmarterMail but it has failed when using
System.Net.Mail.SmtpClient.Send(MailMessage message).

Should I continue to try to figure out SmarterMail or is there a better way?
If SmarterMail is the way to go, how do I go about configuring this?

 
Reply With Quote
 
Sanford Whiteman
Guest
Posts: n/a

 
      08-29-2007
> I need to configure SMTP and I have tried several options from
> installing SmarterMail and Free Smtp. I was able to actually send an
> email using SmarterMail...


By which I suppose you mean "using the web interface or a mail
client."

> but it has failed when using
> System.Net.Mail.SmtpClient.Send(MailMessage message).


Failed with what error? Surely you can consult the docs to see what
error was returned by the SMTP server and/or the SMTP client
component.

> Should I continue to try to figure out SmarterMail or is there a better
> way?


If you want to develop code that is portable to a full-fledged SMTP
server, then you should code against SmarterMail or something similar.
This is not the place to outright recommend SmarterMail, however.

> If SmarterMail is the way to go, how do I go about configuring this?


You have to consult your mailserver logs and your mail component docs,
then tell us what error(s) you are actually seeing. For example, are
you allowed to relay without authentication, etc..

--Sandy

 
Reply With Quote
 
Steve Schofield
Guest
Posts: n/a

 
      08-29-2007
The issue is probably related to not defining the proper host in your code.
You can consult www.systemnetmail.com for examples. This site is a great
resource IMO.

On a side note about the 2 mail servers.

I found FreeSMTP pretty straight forward to configure. I don't want my
post to be about reviewing SMTP servers, FreeSMTP runs like a normal
application instead of a service.

If you want to continue using Smartermail, consult the vendors site at
www.smartertools.com. I personally use the free version and it works well.
I found it easy to configure, but I deal with email every day. At a
minimum, you need to enable the delivery and SMTP service(s). These are
inside the web-based admin tool.

--

Steve Schofield
Windows Server MVP - IIS
http://weblogs.asp.net/steveschofield


"Nick" <> wrote in message
news:5FBB4571-8114-40A3-BE89-...
>I have the Vista Home Premium operating system and I do software
>development on it using Visual Studio.Net. I am developing an ASP.Net web
>application that sends out emails.
>
> I need to configure SMTP and I have tried several options from installing
> SmarterMail and Free Smtp. I was able to actually send an email using
> SmarterMail but it has failed when using
> System.Net.Mail.SmtpClient.Send(MailMessage message).
>
> Should I continue to try to figure out SmarterMail or is there a better
> way? If SmarterMail is the way to go, how do I go about configuring this?


 
Reply With Quote
 
Nick
Guest
Posts: n/a

 
      08-29-2007
It is the very fact that I am on the Vista operating system that I am having
this issue. You see SMTP is installed on other operating systems and is not
in Vista. Please allow others that have something to contribute to respond.
Thank You.

"Mr. Arnold" <MR. > wrote in message
news:...
>
> "Nick" <> wrote in message
> news:5FBB4571-8114-40A3-BE89-...
>>I have the Vista Home Premium operating system and I do software
>>development on it using Visual Studio.Net. I am developing an ASP.Net web
>>application that sends out emails.
>>
>> I need to configure SMTP and I have tried several options from installing
>> SmarterMail and Free Smtp. I was able to actually send an email using
>> SmarterMail but it has failed when using
>> System.Net.Mail.SmtpClient.Send(MailMessage message).
>>
>> Should I continue to try to figure out SmarterMail or is there a better
>> way? If SmarterMail is the way to go, how do I go about configuring this?

>
> Although you are running Vista, where you should really be posting to
> about the issue is a dotnet NG like MS.Public.dotnet.framework.aspnet or
> MS.Public.dotnet.framework.general.
>
>
>
>>

>


 
Reply With Quote
 
Nick
Guest
Posts: n/a

 
      08-29-2007
It may very well be my host definition. I will give all information I can.

This is with SmarterMail. It is running on it's own internal web with is at
http://127.0.0.1:9998

First I configured the IIS7 SMTP E-Mail
E-mail address:
Deliver e-mail to SMTP server: http://127.0.0.1:9998
Port: 25
Authetication Settings: Not required (I'm not clear on if this should be the
Smarter Mail admin username and password).

Then I modified the web.config:
<system.net>

<mailSettings>

<smtp from=>

<network host="localhost" defaultCredentials="true" />

</smtp>

</mailSettings>

</system.net>

Then I sent the email from within the web application running locally:

An existing connection was forcibly closed by the remote host

Stack Trace:

[SocketException (0x2746): An existing connection was forcibly closed by the
remote host]
System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags) +1044443
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32
size) +119

[IOException: Unable to read data from the transport connection: An existing
connection was forcibly closed by the remote host.]
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32
size) +267
System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
+41
System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32
count) +96
System.Net.Mail.SmtpReplyReaderFactory.ReadLines(S mtpReplyReader caller,
Boolean oneLine) +280
System.Net.Mail.SmtpReplyReaderFactory.ReadLine(Sm tpReplyReader caller)
+26
System.Net.Mail.SmtpReplyReader.ReadLine() +13
System.Net.Mail.SmtpConnection.GetConnection(Strin g host, Int32 port)
+802
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485




This is what is in the SmarterMail smtpLog:

06:41:36 System.Net.Sockets.SocketException: An address incompatible with
the requested protocol was used
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,
SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at TcpServerLib.Pooled.PooledTcpServer.StartListening (IPEndPoint
ipEndPoint)
06:41:36 System.Net.Sockets.SocketException: An address incompatible with
the requested protocol was used
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,
SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at TcpServerLib.Pooled.PooledTcpServer.StartListening (IPEndPoint
ipEndPoint)


Does anything stand out here that I need to address to get SMTP up and
running?

"Steve Schofield" <> wrote in message
news:...
> The issue is probably related to not defining the proper host in your
> code. You can consult www.systemnetmail.com for examples. This site is a
> great resource IMO.
>
> On a side note about the 2 mail servers.
>
> I found FreeSMTP pretty straight forward to configure. I don't want my
> post to be about reviewing SMTP servers, FreeSMTP runs like a normal
> application instead of a service.
>
> If you want to continue using Smartermail, consult the vendors site at
> www.smartertools.com. I personally use the free version and it works
> well.
> I found it easy to configure, but I deal with email every day. At a
> minimum, you need to enable the delivery and SMTP service(s). These are
> inside the web-based admin tool.
>
> --
>
> Steve Schofield
> Windows Server MVP - IIS
> http://weblogs.asp.net/steveschofield
>
>
> "Nick" <> wrote in message
> news:5FBB4571-8114-40A3-BE89-...
>>I have the Vista Home Premium operating system and I do software
>>development on it using Visual Studio.Net. I am developing an ASP.Net web
>>application that sends out emails.
>>
>> I need to configure SMTP and I have tried several options from installing
>> SmarterMail and Free Smtp. I was able to actually send an email using
>> SmarterMail but it has failed when using
>> System.Net.Mail.SmtpClient.Send(MailMessage message).
>>
>> Should I continue to try to figure out SmarterMail or is there a better
>> way? If SmarterMail is the way to go, how do I go about configuring this?

>


 
Reply With Quote
 
Sanford Whiteman
Guest
Posts: n/a

 
      08-29-2007
> This is with SmarterMail. It is running on it's own internal web
> with is at http://127.0.0.1:9998


That's the web server, not the SMTP server.

> Deliver e-mail to SMTP server: http://127.0.0.1:9998


Should be just '127.0.0.1'. SMTP servers don't use the HTTP protocol.

> Authetication Settings: Not required (I'm not clear on if this
> should be the Smarter Mail admin username and password).


If you have username (not the admin username, but preferably a
standard SmarterMail username), use it and its password. AUTH may not
be required by SM depending on your setup, but it will always be
accepted.

--Sandy
 
Reply With Quote
 
Nick
Guest
Posts: n/a

 
      08-29-2007
Sandy,

Thank you for your response. I modified the IIS7 SMTP E-Mail to have the
SMTP Server set to 127.0.0.1. I have only one user in SmarterMail and that
is "admin". The credential setup in IIS7 SMTP E-mail is that of "admin".

In the mail settings of web.config, I use
network host="localhost" userName="admin" password="mypassword"

There is also a port settings. I have left port off completely, set it to
9998, and also tried 25. In the event viewer I always see:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/29/2007 11:17:25 AM
Event time (UTC): 8/29/2007 6:17:25 PM
Event ID: 66c7688f90314ec5b9decef309ad99b3
Event sequence: 15
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: 2e5dc7fc-12-128328849928554765
Trust level: Full
Application Virtual Path: /Commerce.Web
Application Path: D:\Projects\CSK_2.0.1\CSK 2.0.1\Commerce.Web\
Machine name: NICK-PC

Process information:
Process ID: 4516
Process name: WebDev.WebServer.EXE
Account name: Nick-PC\Nick

Exception information:
Exception type: SmtpException
Exception message: Failure sending mail.

Request information:
Request URL: http://localhost:65365/Commerce.Web/...rdRecover.aspx
Request path: /Commerce.Web/PasswordRecover.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: Nick-PC\Nick

As you can see Is authenticated = False and I don't know why.

"Sanford Whiteman" <swhitemanlistens-> wrote
in message news...
>> This is with SmarterMail. It is running on it's own internal web
>> with is at http://127.0.0.1:9998

>
> That's the web server, not the SMTP server.
>
>> Deliver e-mail to SMTP server: http://127.0.0.1:9998

>
> Should be just '127.0.0.1'. SMTP servers don't use the HTTP protocol.
>
>> Authetication Settings: Not required (I'm not clear on if this
>> should be the Smarter Mail admin username and password).

>
> If you have username (not the admin username, but preferably a
> standard SmarterMail username), use it and its password. AUTH may not
> be required by SM depending on your setup, but it will always be
> accepted.
>
> --Sandy


 
Reply With Quote
 
Sanford Whiteman
Guest
Posts: n/a

 
      09-02-2007
> Thank you for your response. I modified the IIS7 SMTP E-Mail to have
> the SMTP Server set to 127.0.0.1. I have only one user in
> SmarterMail and that is "admin". The credential setup in IIS7 SMTP
> E-mail is that of "admin".


How do you know that you are passing the credentials in a valid format
(i.e. it doesn't need host@domain?). Have you tested using a full mail
client?

> There is also a port settings. I have left port off completely, set
> it to 9998, and also tried 25. In the event viewer I always see:


MTAs listen on port 25. You must stop getting distracted by the
proprietary web UI.


> Exception information: Exception type: SmtpException Exception
> message: Failure sending mail.


What do your SmarterMail logs say for this connection? You have to be
ready to deal with the whole picture. People spend years knowing how
to troubleshoot mail problems; you can't take the easy way out and not
even *look* at both client and server.

> As you can see Is authenticated = False and I don't know why.


B/c you did not authenticate to the web page. I believe this is an
HTTP log entry.

--Sandy
 
Reply With Quote
 
Sanford Whiteman
Guest
Posts: n/a

 
      09-02-2007
> ...ready to deal with the whole picture. People spend years knowing
> how...

^before
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow networking between Vista Home Premium and Windows Home Server Quentin Windows Vista Networking 7 02-29-2008 10:40 AM
Updating from Home Premium to Ultimate and moving Home Premium mor10 Windows Vista Installation 6 11-18-2007 07:57 PM
Retail 32bit vista Home Premium upgrade to 64 bit Home Premium - H rrdToledo Windows Vista General Discussion 5 09-25-2007 03:38 AM
I think I finially got my friends XP Home and Vista Home Premium machines to Share See signature below Windows Vista Networking 0 08-27-2007 03:53 PM
Windows XP Home (Full Vers.) to Vista Home Premium Upgrade (Academ TNTeacher Windows Vista General Discussion 2 02-15-2007 03:19 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59