PHPのmb_send_mailでメールを送信する時に差出人を設定したい
mb_send_mail関数の場合、mail関数と同じように、第四引数に設定する
$to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);