mail not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sankarlux
    New Member
    • Aug 2010
    • 1

    mail not working

    Dear friends

    I try to run survey created by php scripts , but there is msg appeared when I click on send botton to receive survey result on my mail box ..
    The msg is

    Warning: mail() [function.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:\Inetpub\vhos ts\coolbestweb. com\httpdocs\co ntactus.php on line 53

    Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhos ts\coolbestweb. com\httpdocs\co ntactus.php:53) in C:\Inetpub\vhos ts\coolbestweb. com\httpdocs\co ntactus.php on line 55
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    For first part warning, there is no smtp server in your system. In order to send mail SMTP server needed to be installed or if you use a different smtp server instead of localhost smtp server.

    For the second warning:
    You are trying to set cookie or trying to set header information after sending any data to client. When you first send any data(even a single white space is a data) php finish sending header and start sending data. but if you send header after sending data then you will get this warning

    Comment

    Working...