I you search this forum for similar problems you will find a lot of postings...

Try to install the smtp service of IIS and you need access to a DNS server (don't ask me how) I use existing SMTP servers on the network where I'm working on...

    olaf wrote:

    I you search this forum for similar problems you will find a lot of postings...

    Try to install the smtp service of IIS and you need access to a DNS server (don't ask me how) I use existing SMTP servers on the network where I'm working on...

    Thanx for the reply. Now i get the following error and i think u r right.

    PHP Warning: mail(): Failed to connect to mailserver at "130.207.218.151" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Inetpub\wwwroot_debug_tmp.php on line 9

    Can anyone plz guide me how to configure SMTP server on Windows XP?

    Thanx in advance.

      A good place to start would be the MCSA/E IIS books.

        Kudose wrote:

        A good place to start would be the MCSA/E IIS books.

        hehe.... cool...

          olaf wrote:

          hehe.... cool...

          Hi, I install SMTP server for Windows 2003 server and now i get this error message:

          PHP Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for chintan_2512@yahoo.com in C:\Inetpub\wwwroot_debug_tmp.php on line 9

          My code is :
          <?php
          // The message
          $message = "Line 1\nLine 2\nLine 3";

          // In case any of our lines are larger than 70 characters, we should use wordwrap()
          $message = wordwrap($message, 70);

          // Send
          mail("chintan_2512@yahoo.com", 'My Subject', $message);
          ?>

          and my php.ini file is:

          [mail function]
          ; For Win32 only.
          SMTP = 127.0.0.1
          smtp_port = 25

          ; For Win32 only.
          sendmail_from = gth838t@mail.gatech.edu

          Plz tell me what's the wrong with the code?

          Thanx in advance.

            you can also use ur ISP smtp address.

              Yeah, just point your SMTP settings to the same that you use to send mail for your ISP.

                but don't screw it up or they'll send you awarning letter

                  olaf wrote:

                  I think you missed the DNS...

                  is this a user account on the server? gth838t@mail.gatech.edu

                  Hey, thanx for the reply. But I am very confused with all these things. I am still not able to send messages.

                  This is not a user account on server. It's my private mail address and i used to test it on the server.

                  What should i have to do? I installed SMTP and start it's service. But when i test it using telnet i am not able to connect it. Can you point me to some good link of SMTP configuration and then send mail using PHP.

                  Thanx,
                  Chintan.

                    phprock wrote:

                    you can also use ur ISP smtp address.

                    Hey, what's that ISP SMTP address? I don't know anything abt it. I am using Georgia Tech's private wireless network.

                    Plz tell me what i should have to do?

                    Chintan.

                      Kudose wrote:

                      Yeah, just point your SMTP settings to the same that you use to send mail for your ISP.

                      Plz elaborate more abt this. I am really dumb it this area.

                      Thanx,
                      Chintan.

                        If you use outlook or someother MUA like that, then you set your SMTP settings to your ISP's. They generally have something like:

                        mail.isp.com
                        pop.isp.com
                        smtp.isp.com

                        Domains like that. Instead of setting your SMTP to the general loopback address (127.0.0.1), set it to smtp.yourisp.com or which ever your ISP uses for SMTP.

                          Write a Reply...