email - How to get php mail() working on Mac OSX 10.10? -


i setup postfix, works on terminal sending email gmail. doesn't work when used mail() on php webpage.

also, turned on terminal command (tail -f /var/log/mail.log) keep check status are. can see status if send email in terminal. however, can't see when send email through php. may know how fix it?

sendmail_path = "usr/sbin/sendmail -t -i -f xxxx@gmail.com"

thanks lot

my php coding:

<?php $user_email = $row_recusers['user_email']; $mailbody =  $row_recusers['user_name'] ; $mailbody .= " hello, find account , password already.";       $mailbody .= "your id is: " . $row_recusers['user_loginid']; $mailbody .= "\n password is:" . $row_recusers['user_pwd']; $mail_sent = mail($user_email,"online exam system notice",$mailbody); echo $mail_sent ? "mail sent" : "mail fail"; 

?>


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -