【phpbb】メール通知に本文を含める方法

/includes/functions_posting.php

1箇所目

// Changed Kazu
function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id, $topic_id, $post_id, $post_text='')
//function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id, $topic_id, $post_id)

2箇所目

				$messenger->assign_vars(array(
					'USERNAME'		=> htmlspecialchars_decode($addr['name']),
					'TOPIC_TITLE'	=> htmlspecialchars_decode($topic_title),
					'FORUM_NAME'	=> htmlspecialchars_decode($forum_name),
					// Add Kazu
					'POST_TEXT'		=> htmlspecialchars_decode($post_text),

3箇所目

		// Add Kazu
	    $stripped_post_text = $data['message'];
	    strip_bbcode($stripped_post_text, $data['bbcode_uid']);
		// Changed Kazu
		user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], $data['topic_id'], $data['post_id'], $stripped_post_text);
//		user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], $data['topic_id'], $data['post_id']);

参考記事:https://www.phpbb.com/community/viewtopic.php?f=46&t=709655

ブックマーク パーマリンク.