PHP mail()함수 | Server Side


 

function send_mail($fromaddress, $fromname, $toaddress, $toname, $subject, $body)
 {

  $to = $toaddress;
 
     $Headers .= "Return-Path: $fromaddress\n"; 
     $headers .= "From: $fromname<$fromaddress>\n"; 
     $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n"; 
     $headers .= "Content-Type: text/html; charset=euc-kr"; 
     $memo  = stripslashes($body); 
  
  @mail($to, $subject, $memo, $headers);     
 }

//send_mail("보내는메일","보내는이","받는주소","받는사람","제목","내용");


mail
Comment Write
Comment List
등록된 코멘트가 없습니다.