SendMail - Port Problem

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

  1. #1
    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 prot number that is wrong? Where/How do I find the correct port number?

    Thanks
    Michael
     
    MichaelLewis, May 17, 2008 IP
  2. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    create a php file called info.php with the following code:
    
    <?php
    phpinfo();
    ?>
    
    Code (markup):
    upload the file to your server and execute it as: http://www.yourwebsite.com/info.php

    Look for SMTP Port info...
     
    vishnups, May 17, 2008 IP
  3. MichaelLewis

    MichaelLewis Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #3
    Thanks for your help. However, the result shows:

    SMTP localhost
    smtp_port 25

    It looks to me as if this is info obtained from the php.ini file.
    Is this just a logical port? Does it exist on my computer?

    By the way, I'm developing my site on my local computer under XAMPP Appache & MySQL.

    So what do I do now? I'm lost! Have no idea where to go / what to do.

    Would appreciate mor help.
    Thanks
     
    MichaelLewis, May 17, 2008 IP