PHP 메일 보내기 함수
function sendmail_ctrl($from_mail, $from_name, $to_mail, $to_name, $subject, $body, $headers) { $fp = popen( '/usr/sbin/sendmail -f'.$from_mail.' '.$to_mail,"w"); if(!$fp) return false; if($to_name){ fputs($fp, "To: $to_name \n"); }else{ fputs($fp, "To: $to_mail\n"); } fputs($fp, "From: $from_name \n"); fputs($fp, "Subject: $subject\n"); fputs($fp, $headers."\n\n"); fputs($fp, $body); fputs($fp,..
2008. 10. 18.