// Put the commentator's name as sender in the e-mail.
// This is not working for me, because my hosting service prevents
// forging sender addresses, but it may work for you.
$pinmozhi_from = "From: $comment->comment_author <$wp_email>";
// Pinmozhikal needs e-mails in HTML format,
// otherwise line breaks will not be visible
$pinmozhi_message_headers = "MIME-Version: 1.0\r\n"
. "$pinmozhi_from\r\n"
. "Content-Type: text/html; charset=\""
. get_settings('blog_charset') . "\"\r\n";
// Replace newlines within the comment with '
',
// so that line breaks will be visible
$pinmozhi_message = str_replace("\r\n", "
", $pinmozhi_message);
$pinmozhi_message = str_replace("\n", "
", $pinmozhi_message);
// Finally, send it to pinmozhikal
@wp_mail("pinmozhikal@gmail.com", $pinmozhi_subject, $pinmozhi_message,
$pinmozhi_message_headers);
// We are done!