Results 1 to 4 of 4

Thread: sending mail with PHP

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    10

    Question

    For some reason when I try to do this:

    mail("webmaster@programmerstuff.com","test","test");

    it doesn't work. Did I make some stupid mistake in the code above? (I don't think so) or is there something wrong with the server?
    Websurfer907

    ICQ: 11969470
    Website: programmerstuff.com

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I don't see anything wrong with the code above...it's a possiblity that the php on the server was down.

    D!m
    Dim

  3. #3
    Guest
    It's probably because you don't have a SMTP server set up on the machine you were trying to execute the code on....

    I don't know where to get one. but I am pretty sure thats the problem.

  4. #4
    New Member
    Join Date
    Feb 2000
    Location
    Chicago, IL, USA
    Posts
    9

    Thumbs up

    If you are using PWS or IIS4+ be sure to set the SMTP server address as well as the admin email address in the PHP.INI file in your winnt or windows directory.
    If you want to be known, GET ON THE NET!

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