Thread: SMTP with Apache/PHP on Windows

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446

    SMTP with Apache/PHP on Windows

    Need your help.

    I'm already doing PHP scripting (it's indeed very easy and thanks everyone for the previous help).

    I need to mail a form contents. I don't want to setup an email server just to use SMTP and I don't want to test my scripts on my web host which I consider a production machine. So I went back to IIS to setup the SMTP virtual server as localhost.

    After setting it up and changing my php.ini file the script runs without a glitch, but email is not being sent. The event log viewer seems to reveal it can't connect to the domain gmail.com (the destination address).

    My personal firewall is setup to allow outgoing connections from IIS. I didn't setup my black box firewall though as I don't see the need to make IIS Virtual SMTP Server available to the outside.

    I can enter into more details on the setup I have in place for for the IIS virtual SMTP server. But if you have any idea alrady, please let me know.

    Either that or some simple easy to use smtp server i can install on my machine.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Nevermind. Been digging around IIS and I'm having some problems with it due to a faulty .Net installation.

    Solved the problem with a very handy free tool. A sort of smtp server that listens on locahost:25 and dispatches it to my ISP; Mobile TCP
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    Well this is what I got from a quick Google search:

    http://www.softstack.com/freesmtp.html

    http://www.postcastserver.com/


    I haven't used them, but the PostCast one looks pretty professional just from a quick glance.

    By the way, PHP Freaks (at www.phpfreaks.com) has some excellent PHP forums.
    My Website

    "Circular logic is good because it is."

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    Solved the problem with a very handy free tool. A sort of smtp server that listens on locahost:25 and dispatches it to my ISP; Mobile TCP
    Cool, I have only ever heard of free SMTP servers for Unix-like systems.

    By the way, PHP Freaks (at www.phpfreaks.com) has some excellent PHP forums.
    Heheh, I'm a regular on the PHPBuilder message board.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Yeah. I may have to create an account there. Thanks. This is feeling odd posting PHP related stuff on these forums.

    I've seen those two by the way. PostCast is ideal. Worked like a charm. But too much for my needs and asks for money. Freesmtp on the other hand has two problems; depends on the isp allowing port 25 (mine doesn't) and doesn't register itself as a service or move down to the tray.

    Mobile TCP solved those two problems. Thanks for the suggestions though David
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM