Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, 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? Thanks....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    RAH
    RAH is offline
    Just Joined!
    Join Date
    Jun 2008
    Posts
    31

    Question PHP Mail Not Working


    Hello,

    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?

    Thanks.

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

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    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. #4
    Linux Newbie
    Join Date
    Apr 2008
    Location
    India
    Posts
    170
    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

    //authontication
    $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));
    //end

    $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
    Regards
    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
  •