Results 1 to 6 of 6

Thread: cant use mail()

  1. #1

    cant use mail()

    i have a dedi server with plesk and redhat

    i can send and recieve mail using pop smtp no problem

    but when i want to use mail function like this
    mail("[email protected]", "the subject", "Line
    1\nLine 2\nLine 3");
    it doesnot send mail

    anyone have idea?

  2. #2
    Join Date
    Dec 2000
    San Diego, CA
    Does it show any kind of error, or does it simply not send mail? I would check your php.ini file (usually in /usr/local/lib), especially this block:

    [mail function]
    SMTP = localhost ;for win32 only
    sendmail_from = [email protected] ;for win32 only
    ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i')

    (this is on my box)

    Be sure to restart Apache when done editing php.ini.
    Thoughtbug Software: Hosting shouldn't require any thought.
    Legitimate host? Support the Code of Ethical Conduct

  3. #3
    no error just donot send mail

  4. #4
    perhaps your php build doesnt support mail. make sure autoconf was able to find sendmail when you were compiling php.

    good luck,
    * Rusko Enterprises LLC - Upgrade to 100% uptime today!
    * Premium NYC collocation and custom dedicated servers
    call 1-877-MY-RUSKO or paul [at]

    dedicated servers, collocation, load balanced and high availability clusters

  5. #5
    Join Date
    Oct 2002
    Maybe no FROM field is causing this

  6. #6
    Or maybe your email address is simply not working. I made that mistake once

Posting Permissions

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