Windows Vista Forums

SMTP on Vista Home Premium
  1. #1


    Mr. Arnold Guest

    Re: SMTP on Vista Home Premium


    "Nick" <nospam@xxxxxx> wrote in message
    news:5FBB4571-8114-40A3-BE89-EAE1F1B58016@xxxxxx

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





    >

      My System SpecsSystem Spec

  2. #2


    Nick Guest

    SMTP on Vista Home Premium

    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?


      My System SpecsSystem Spec

  3. #3


    Sanford Whiteman Guest

    Re: SMTP on Vista Home Premium

    > 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


      My System SpecsSystem Spec

  4. #4


    Steve Schofield Guest

    Re: SMTP on Vista Home Premium

    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" <nospam@xxxxxx> wrote in message
    news:5FBB4571-8114-40A3-BE89-EAE1F1B58016@xxxxxx

    >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?

      My System SpecsSystem Spec

  5. #5


    Nick Guest

    Re: SMTP on Vista Home Premium

    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. Arnold@xxxxxx> wrote in message
    news:OcaHard6HHA.2380@xxxxxx

    >
    > "Nick" <nospam@xxxxxx> wrote in message
    > news:5FBB4571-8114-40A3-BE89-EAE1F1B58016@xxxxxx

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

    >>
    >

      My System SpecsSystem Spec

  6. #6


    Nick Guest

    Re: SMTP on Vista Home Premium

    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: support@xxxxxx
    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=support@xxxxxx>

    <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(SmtpReplyReader caller,
    Boolean oneLine) +280
    System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
    +26
    System.Net.Mail.SmtpReplyReader.ReadLine() +13
    System.Net.Mail.SmtpConnection.GetConnection(String 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" <steve@xxxxxx> wrote in message
    news:eaLqcYe6HHA.5796@xxxxxx

    > 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" <nospam@xxxxxx> wrote in message
    > news:5FBB4571-8114-40A3-BE89-EAE1F1B58016@xxxxxx

    >>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?
    >

      My System SpecsSystem Spec

  7. #7


    Sanford Whiteman Guest

    Re: SMTP on Vista Home Premium

    > 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

      My System SpecsSystem Spec

  8. #8


    Nick Guest

    Re: SMTP on Vista Home Premium

    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-software@xxxxxx> wrote
    in message newsp.txty1zeq6c17zw@xxxxxx

    >> 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

      My System SpecsSystem Spec

  9. #9


    Sanford Whiteman Guest

    Re: SMTP on Vista Home Premium

    > 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@xxxxxx?). 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

      My System SpecsSystem Spec

  10. #10


    Sanford Whiteman Guest

    Re: SMTP on Vista Home Premium

    > ...ready to deal with the whole picture. People spend years knowing

    > how...
    ^before

      My System SpecsSystem Spec

SMTP on Vista Home Premium problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
UPgrade to Win 7Home premium from Win Vista Home Premium. JBrown Vista installation & setup 4 23 Oct 2009
Unable to share folder from Vista Home premium to XP Home SP3 mach G Vista networking & sharing 1 30 Aug 2008
Remote Access from Vista Home Premium to Vista Home Premium and XP Home Edition cmacandrew Network & Sharing 2 26 Mar 2008
Retail 32bit vista Home Premium upgrade to 64 bit Home Premium - H rrdToledo Vista General 6 24 Sep 2007
Windows XP Home (Full Vers.) to Vista Home Premium Upgrade (Academ TNTeacher Vista General 2 14 Feb 2007