1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Send Mail - Port Problem Unresolved

Discussion in 'PHP' started by MichaelLewis, May 18, 2008.

  1. #1
    I'm developing my site on my local computer under XAMPP Appache & MySQL.

    I'm trying to have my site send an e-mail and I'm getting error msg:

    "Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in ..."

    Is it the port number that is wrong? Where/How do I find the correct port number? Or, what do I do to get a connection?

    I was told to create a php file called info.php with the following code:

    <?php
    phpinfo();
    ?>

    upload, execute it and look for SMTP Port info...

    I did this. The result shows:

    SMTP localhost
    smtp_port 25

    and so it doesn't help me. It looks to me as if this is just info obtained from the php.ini file. Is this just a logical port? Does it exist on my computer?
    How do I get around this problem?

    Thanks
     
    MichaelLewis, May 18, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Are you running windows? You need to install an SMTP server on port 25 of your PC
     
    jayshah, May 18, 2008 IP
  3. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In your First message you have not stated whether it is on your local system or server. While requesting help please state your issues clearly. You are trying to execute a SMTP server which does not exist on your local system.
     
    vishnups, May 18, 2008 IP
  4. MichaelLewis

    MichaelLewis Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #4
    Sorry I didn't provide all necessary info in first instance.
    Of course it was not intentional but simply lack of knowledge.

    Yes, I'm running Windows.

    Where do I get an SMTP server & how do I install?
     
    MichaelLewis, May 18, 2008 IP
  5. ksamir2004

    ksamir2004 Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi all,

    Which OS you are running. if u are running MS Xp. then no need to install SMTP. By defaut SMTP works.
     
    ksamir2004, May 19, 2008 IP
  6. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,825
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #6
    Try to telnet port 25 of your computer, see if it responds.
     
    wisdomtool, May 19, 2008 IP
  7. MichaelLewis

    MichaelLewis Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #7
    1) Yes, I'm using MS XP.

    2) How do I "telnet port 25 of my computer to see if it responds?
    I don't know what you mean by "telnet".

    Many tahnks for your help!
    Michael
     
    MichaelLewis, May 19, 2008 IP