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.

mail function..php.ini config??????

Discussion in 'PHP' started by yoursanjay, Aug 5, 2008.

  1. #1
    I have written a script for mail. but it shows :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:\xampp\htdocs\TEST\mail.php on line 35.

    my php.ini file has:
    SMTP ="localhost"
    smtp_port ="25"
    sendmail_from=sanjay@localhost
    For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

    Plz help me to to resolve this problem.
     
    yoursanjay, Aug 5, 2008 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Are you sure you have a mail server installed? The WAMP or XAMPP package does not install a mail server. A mail server is different from your apache or mysql server. It has to be installed separately. I suggest you install a MailEnable Administrator standard edition [FREE]
     
    rohan_shenoy, Aug 6, 2008 IP