解説
開封通知メールをメールを送信するための方法を示す。更新日:2017年4月7日
サンプル・コード
*ヘッダー部に「Disposition-notification-to」を追加する。
<?php
/*
* 開封通知メールのサンプル
*/
$from = 'from@example.com';
$to = 'to@example.com';;
$submit = '開封通知のテスト';
$body = 'ここは本文ですよ。';
$header = '';
$header .= "From:$from\n";
$header .= "Disposition-notification-to:$from";
mb_send_mail($to,$subject,$body,$header);
?>