UPDATE
I placed the following code in submit_comment.php. So far so good. If somebody clicks the submit button a mail will be sent...
But even if captha or a field is not filled in correctly you wil also get a mail. Does anybody have a solution?
<?php
// Setup email to send
$mail_subject = 'SUBJECT';
$mail_to = 'email@01.com' . ', ';
$mail_to .= 'email@02.com';
$mail_message = ''.
'Hello'.$display_name.',
There is a new comment '.WEBSITE_TITLE.'.
From: '.$title.'
Comment: '.$comment.'
Go to www.websitebaker.com';
// Try sending the email
(mail($mail_to, $mail_subject, $mail_message, "From: ".SERVER_EMAIL."\r\n". "Bcc: ". SERVER_EMAIL."\r\n"))
?>