#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    3
    Rep Power
    0
    Hi,
    I am trying to use my php scripts to send email but am having difficulty....I used to use the unix 'sendmail' program when writing PERL and I also have it installed now on my machine.

    When I try to use the mail() funtion although it does not give me an error it does not send the mail either....

    Any ideas??

    thanks
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    3
    Rep Power
    0
    To add more info to that...
    I am using a machine with php3 installed running apache..

    in the php.ini file i have set the
    'sendmail_path = /usr/lib/sendmail'

    and if I run the phpinfo() function it sees the path correctly, it also gives the correct path to the php.ini file (if I change anything I see the changes in the result of phpinfo())

    but still when I have a simple script that does nothing except send an email like this:
    <?php
    if (mail("david@21network.com", "Test", "test")) :
    echo ("Sent");
    endif;
    ?>

    anyideas??? I am really stuck...
    Dave

Similar Threads

  1. sending email + multiple attachments using php
    By gbow in forum PHP Development
    Replies: 6
    Last Post: February 13th, 2004, 09:31 AM
  2. php sending mail?
    By stojan in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 10:25 PM
  3. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 06:55 AM
  4. sending mail with php
    By jacky_cheecheo in forum PHP Development
    Replies: 5
    Last Post: February 3rd, 2004, 04:34 PM
  5. Sending EMail to Mail server IP addr
    By MGotcha in forum Mail Server Help
    Replies: 1
    Last Post: January 22nd, 2004, 05:15 AM

IMN logo majestic logo threadwatch logo seochat tools logo