Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question PHP Mail Not Working


    I recently setup a new LAMP server and moved a forum to it. However PHP Mail doesn't seem to be working, at least not with vBulletin. Any ideas?


  2. #2
    Linux Newbie
    Join Date
    Feb 2008
    Bangalore, India
    Did you check without configuring PHP and vBulltin.?
    Registered Linux User: #476440

  3. #3

    php mail not working under localhost in linux

    can any body tell me how i can send email using php mail function in linux?

    please help me

  4. $spacer_open
  5. #4
    Linux Newbie
    Join Date
    Apr 2008
    there are 2 ways I know to send emails
    1.php mail function
    PHP mail() Function

    2. via smtp ath:
    require_once "Mail.php";

    $from = ''; //FROM MAIL ID
    $to = ''; //TO MAIL ID
    $subject = ''; //MAILER SUBJECT

    $host = $config['smtp_host'];
    $username =$config['smtp_username'];
    $password = $config['smtp_password'];

    $headers = array ('From' => $from,
    'To' => $to,
    'Subject' => $subject);

    $smtp = Mail::factory('smtp',
    array ('host' => $host,
    'auth' => true,
    'username' => $username,
    'password' => $password));

    $message = 'Mail Body';

    $mail = $smtp->send($to, $headers, $message);
    if (PEAR::isError($mail)) {
    echo $mail->getMessage();
    } else {
    echo "Mail sent successfully" );

    the other possiblity might be php pear check you have installed ..your application might need that
    David Anand
    -->Success is the list of failures ...!!!

Posting Permissions

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