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.
- 07-23-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 31
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.
- 07-29-2008 #2Linux 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
- 05-17-2009 #3Just 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
- 05-23-2009 #4Linux 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.s
davidanands.co.cc
-->Success is the list of failures ...!!!


Reply With Quote
