PHP でメールを送信する方法 $from1="from@gmail.com"; $headers = 'MIME バージョン: 1.0' . "\r\n ;
$headers.= 'Content-type: text/html; charset=utf-8' .
\r\n ;
$headers.=
From: Newslatter ' .$from1 \r\n
.; $headers .= Reply-To: '.$from1.
\r\n ;
$headers .=
Return-Path:'. $from1 \r\n
.; $headers .= CC:
.$CCMAIL1 \r\n
.; $headers .= ' BCC: '.$BCCMAIL \r\n
.;
if(mail($to,$subject,$message,$headers)){
return true;
}
else{
return false;
}