Results 1 to 7 of 7

Thread: Cannot send email

  1. #1

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362

    Cannot send email

    Code:
    PHP Code:
    mail("[email protected]""Test""Line 1\nLine 2\nLine 3"); 
    Error :
    Failed to Connect
    What's wrong?

  2. #2
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    php.ini settings are right.?


    <?php
    mail("[email protected]","$subject","$DEMAIL","From: $mailfrom\nReply-To: $wonmail\nSender: $email");
    ?>

    and PHP.INI:
    [mail function]
    SMTP = localhost
    sendmail_from = [email protected]
    ;sendmail_path =

  3. #3

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    I never put something in the php.ini concerning the email...

    I'll try it.

  4. #4

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    doesnt work

  5. #5
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    are you running on local host? then good luck getting it to send. hence the word localhost

  6. #6

    Thread Starter
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    What i put to replace localhost?

  7. #7
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    your IP of your machine or the one that your ISP gives you to connect to the internet. then you have to configure the SMTP or the sendmail to send email. all that is in the php.ini. but don' ask me as I can't even get mine to send email let alone here anybody that has got it to work, if they set it up as localhost.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width