PHP Mailer Questions

Discussion in 'PHP' started by ip076, Nov 11, 2005.

  1. #1
    I get this error:

    Warning: fsockopen() [function.fsockopen]: unable to connect to "smpthosenamehere":25 (An established connection was aborted by the software in your host machine. ) in C:\rtsweb\rtss_v_13\lib\phpmailer\class.smtp.php on line 105
    There was a problem sending this mail!

    I put a generic host name in because I was a little nervous about putting my real one in there.

    Few Questions:

    Does the SMTP server have to be located on the machine that Apache and PHP are on?

    Could it be some firewall issue?

    Also, I tried downloading some SMTP programs like POSTCAST, and I cant get them to work either, I have the same error.

    If anyone could point me in the right direction, it'd be greatly appreciated, thanks!
     
    ip076, Nov 11, 2005 IP
  2. hnn

    hnn Peon

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With fsockopen you can connect to almost anything. It can be a firewall issue or your ISP may have blocked outgoing connections on port 25.
     
    hnn, Nov 11, 2005 IP