SMTP on Windows XP Pro

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default SMTP on Windows XP Pro

    I'm using the System.Web.Mail.SmtpMail object (.NET 1.1)
    to send email from an ASP.NET application. Everything
    works fine when I run it from Windows 2000 Server, but
    not from WinXP Pro. Is it not possible to send mail
    using the SMTP service or XP? Is there a different class
    that I should be using? I don't really need to send
    email from XP, but since I'm doing my development from XP
    it's really slows down debugging to have to comment out
    these lines everytime I need to debug.

    Thanks!

    Ian
    R. Ian Lee Guest

  2. Similar Questions and Discussions

    1. PHP and SMTP
      Greetings, Quick question about smtp and php. I have a Linux server running Apache/PHP and Postfix as an MTA. My question is about masq'ing...
    2. Problems sending mail with Windows 2003 server's SMTP server (I'm also using the integrated POP3 service)
      Hi, I am setting up POP3 accounts for my users. I am using the POP3 and SMTP services built into Windows 2003 Server Std Edition. My users can...
    3. How to set sendmail SMTP auth and SMTP SSL on Solaris 9 (x86)
      Dear all, Can anybody tell me how to set sendmail SMTP auth and SMTP SSL on Solaris 9(x86). Thanks!
    4. HELP: Linux telnet smtp server fails, Works from MS Windows
      I'm stumped. And I'm not a guru. I think I have a network setup problem on my Linux box, but I'm not sure what to look for. Problem: Trying...
    5. How do I set up Windows XP's SMTP server?
      How do I set up Windows SMTP server and log on to send email. I can get it started but cannot send mail because it wont log on.
  3. #2

    Default Re: SMTP on Windows XP Pro

    I have it installed, but not running. I tried re-
    installing it and still no luck. The ASP.NET application
    gives the following error:

    The "SendUsing" configuration value is invalid.

    Thanks,

    Ian
    >-----Original Message-----
    >Ian,
    > Did you install the SMTP service in XP Pro? It's
    an optional
    >component so it's not always installed (under Control
    Panel | Add/Remove
    >Programs | Add/Remove Windows Components). Otherwise,
    not all the supporting
    >features may be installed for the mail classes, such as
    CDO which the mail
    >functions typically wrap around.
    >
    > Hope this helps,
    > Mark Fitzpatrick
    > Microsoft MVP - FrontPage
    >
    >"R. Ian Lee" <ian.lee@jacobs.com> wrote in message
    >news:030c01c34713$9c4a6da0$a301280a@phx.gbl...
    >> I'm using the System.Web.Mail.SmtpMail object (.NET
    1.1)
    >> to send email from an ASP.NET application. Everything
    >> works fine when I run it from Windows 2000 Server, but
    >> not from WinXP Pro. Is it not possible to send mail
    >> using the SMTP service or XP? Is there a different
    class
    >> that I should be using? I don't really need to send
    >> email from XP, but since I'm doing my development from
    XP
    >> it's really slows down debugging to have to comment out
    >> these lines everytime I need to debug.
    >>
    >> Thanks!
    >>
    >> Ian
    >
    >
    >.
    >
    R. Ian Lee Guest

  4. #3

    Default Re: SMTP on Windows XP Pro

    Hi Ian,
    Without seeing your code, I'm guessing you didn't set the
    SmtpMail.SmtpServer property.

    Set this property, even if it is local.

    ex:
    SmtpMail.SmtpServer = "127.0.0.1";

    Let me know if that works.

    Cheers!
    Dave
    [url]www.aspNetEmail.com[/url]

    "R. Ian Lee" <ian.lee@jacobs.com> wrote in message news:<0ccf01c3472a$6c1f1240$a001280a@phx.gbl>...
    > I have it installed, but not running. I tried re-
    > installing it and still no luck. The ASP.NET application
    > gives the following error:
    >
    > The "SendUsing" configuration value is invalid.
    >
    > Thanks,
    >
    > Ian
    >
    > >-----Original Message-----
    > >Ian,
    > > Did you install the SMTP service in XP Pro? It's
    > an optional
    > >component so it's not always installed (under Control
    > Panel | Add/Remove
    > >Programs | Add/Remove Windows Components). Otherwise,
    > not all the supporting
    > >features may be installed for the mail classes, such as
    > CDO which the mail
    > >functions typically wrap around.
    > >
    > > Hope this helps,
    > > Mark Fitzpatrick
    > > Microsoft MVP - FrontPage
    > >
    > >"R. Ian Lee" <ian.lee@jacobs.com> wrote in message
    > >news:030c01c34713$9c4a6da0$a301280a@phx.gbl...
    > >> I'm using the System.Web.Mail.SmtpMail object (.NET
    > 1.1)
    > >> to send email from an ASP.NET application. Everything
    > >> works fine when I run it from Windows 2000 Server, but
    > >> not from WinXP Pro. Is it not possible to send mail
    > >> using the SMTP service or XP? Is there a different
    > class
    > >> that I should be using? I don't really need to send
    > >> email from XP, but since I'm doing my development from
    > XP
    > >> it's really slows down debugging to have to comment out
    > >> these lines everytime I need to debug.
    > >>
    > >> Thanks!
    > >>
    > >> Ian
    > >
    > >
    > >.
    > >
    dave wanta Guest

  5. #4

    Default RE: SMTP on Windows XP Pro

    Hi Lan,

    Please use smarthost.
    > MailMessage mail = new MailMessage();
    > mail.From = "from@somewhere.com";
    > mail.To = "ekimgnow@microsoft.com";
    > mail.Subject = "subject";
    > mail.Body = "message!";
    > mail.BodyFormat = MailFormat.Html;
    > SmtpMail.SmtpServer= "smarthost";
    > SmtpMail.Send(mail);
    SMTPMail does work on XP Pro. We do it all the time. But please pay
    attention to smarthost relay, it may cause the email relay. Thanks.

    Regards,
    HuangTM
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Tian Min Huang Guest

  6. #5

    Default Re: SMTP on Windows XP Pro

    That partly solves my problem. This solves the problem if the SMTP service
    is running, however, if the service is not running I still get an error
    stating "The transport failed to connect to the server." Since this is a
    development machine and I do not want the emails to actually go anywhere
    except the "Pickup" directory I prefer not to have this service running.
    This isn't a problem using Windows 2K Server. Is this normal behavior for
    XP or am I missing a setting somewhere? Otherwise, how am I supposed to
    inspect emails during development without actually sending them?

    Thanks!!!

    Ian



    "dave wanta" <google2@123aspx.com> wrote in message
    news:e28722d8.0307130343.678b9d24@posting.google.c om...
    > If you are getting the standard relay error. Open up the SMTP Service
    > properties, and on the Access tab, click the Relay button.Grant access
    > to 127.0.0.1 to "relay through this virutal server."
    >
    > hth,
    > Dave
    > [url]www.aspNetEmail.com[/url]
    >
    >
    >
    >
    >
    >
    >
    > "R. Ian Lee" <ian.lee@jacobs.com> wrote in message
    news:<02bd01c347dd$46014a20$a301280a@phx.gbl>...
    > > This seems to work...sort of. It is now trying to
    > > connect to the SMTP server, but since I do not have the
    > > SMTP service running (because I don't want the email to
    > > actually be sent) I am getting the following error:
    > >
    > > "The transport failed to connect to the server."
    > >
    > > Using SmtpMail.SmtpServer="smarthost" returns this error
    > > even if the service is running. But, if I set
    > > SmtpMail.SmtpServer="127.0.0.1" and start the service
    > > then I get a "cannot relay" error which seems to indicate
    > > that everything is working. Unfortunately, this is not
    > > the behavior I was expecting. When I develop using
    > > Windows 2000 Server as my OS, I do not get this error.
    > > The messages are simply dropped into the "Pickup"
    > > directory but my application thinks that they are
    > > delivered OK. Using Windows XP, it seems that the errors
    > > are sent back to my application immediately. Is there
    > > some setting that I need to set in XP to get this same
    > > behavior as I get when using Windows 2000 Server?
    > >
    > > Thanks!!!
    > > Ian
    > >
    > > >-----Original Message-----
    > > >Hi Lan,
    > > >
    > > >Please use smarthost.
    > > >
    > > >> MailMessage mail = new MailMessage();
    > > >> mail.From = "from@somewhere.com";
    > > >> mail.To = "ekimgnow@microsoft.com";
    > > >> mail.Subject = "subject";
    > > >> mail.Body = "message!";
    > > >> mail.BodyFormat = MailFormat.Html;
    > > >> SmtpMail.SmtpServer= "smarthost";
    > > >> SmtpMail.Send(mail);
    > > >
    > > >SMTPMail does work on XP Pro. We do it all the time.
    > > But please pay
    > > >attention to smarthost relay, it may cause the email
    > > relay. Thanks.
    > > >
    > > >Regards,
    > > >HuangTM
    > > >This posting is provided "AS IS" with no warranties, and
    > > confers no rights.
    > > >
    > > >.
    > > >

    msnews.microsoft.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139