I am having troubles with this hook too… but with your case in theory you get it from the variable passed through the hook.
In line 2095 of /wp-includes/comment.php is the do_action
you are hooking in to.
It says:
do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] );
so you can see what the variable is that you can use. In this case $comment_ID
function email_project_designer($comment_ID) {
$comment = get_comment($comment_ID);
$postID = $comment->comment_post_ID;
Then just use get_post_meta($postID , 'email_key' , true);
to get your email value.
The trouble is when using this particular hook I actually cannot get it to trigger at all when a comment is added.
Does it actually email the [email protected]
example you give when someone leaves a comment??