sending mail from winxp os ,apache ws, php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Safras Ahamed

    sending mail from winxp os ,apache ws, php

    I have windows xp pc and i have installed apache as a web server and
    php also working fine, but when i am sending mail, its giving me
    following error

    when upload same to linux live server its working, please help me what
    do i have to do for this


    Warning: mail(): Failed to connect to mailserver at "localhost" port
    25, verify your "SMTP" and "smtp_port" setting in php.ini or use
    ini_set() in C:\Safras\WebHo sting\netoffice .cybersoft.lk\f unctions.php
    on line 377

    Warning: mail(): Failed to connect to mailserver at "localhost" port
    25, verify your "SMTP" and "smtp_port" setting in php.ini or use
    ini_set() in C:\Safras\WebHo sting\netoffice .cybersoft.lk\f unctions.php
    on line 377
    done

    LINE 377
    mail("$MYFULLEM AIL", "$MYSUBJECT ", "$MYBODY", $MYHEADERS);
  • R. Rajesh Jeba Anbiah

    #2
    Re: sending mail from winxp os ,apache ws, php

    Safras Ahamed wrote:[color=blue]
    > I have windows xp pc and i have installed apache as a web server and
    > php also working fine, but when i am sending mail, its giving me
    > following error[/color]

    <snip>

    1. www.php.net/mail
    2.

    --
    | Just another PHP saint |
    Email: rrjanbiah-at-Y!com

    Comment

    • Stefan Hegenbart

      #3
      Re: sending mail from winxp os ,apache ws, php

      Safras Ahamed wrote:
      [color=blue]
      > I have windows xp pc and i have installed apache as a web server and
      > php also working fine, but when i am sending mail, its giving me
      > following error
      >
      > when upload same to linux live server its working, please help me what
      > do i have to do for this
      >
      >
      > Warning: mail(): Failed to connect to mailserver at "localhost" port
      > 25, verify your "SMTP" and "smtp_port" setting in php.ini or use
      > ini_set() in C:\Safras\WebHo sting\netoffice .cybersoft.lk\f unctions.php
      > on line 377
      >
      > Warning: mail(): Failed to connect to mailserver at "localhost" port
      > 25, verify your "SMTP" and "smtp_port" setting in php.ini or use
      > ini_set() in C:\Safras\WebHo sting\netoffice .cybersoft.lk\f unctions.php
      > on line 377
      > done
      >
      > LINE 377
      > mail("$MYFULLEM AIL", "$MYSUBJECT ", "$MYBODY", $MYHEADERS);[/color]

      it is trying to send a mail via your LOCAL mailserver. do you HAVE a
      local mailserver installed?

      --
      "The goal of Computer Science is to build something that will last at
      least until we've finished building it." -- unknown

      Comment

      Working...