• # January 27, 2010 at 5:23 pm

    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:wampwwwrandymail.php on line 11
    there?s some errors to send the mail, verify your server options
    Name: Email: Subject: Message:

    I am using the wamp server for local development. I have tried several different types of contact forms and i still get this message.

    on line 11 i have if(mail($to, $subject,$message)){

    # January 27, 2010 at 6:38 pm

    This reply has been reported for inappropriate content.

    I’m sure someone will correct me if I am wrong but you cannot use WAMP to perform the mail() function as WAMP does not come with a mail server.

    Test it online and you will find out if it works

    # January 27, 2010 at 8:11 pm

    Sounds right to me, TT_Mark.

    # January 27, 2010 at 11:29 pm

    Yep, You both are right. The code works great on the live server.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.