Hi Shamim,
Thanks for your quick reply.
I can confirm that if I use your code in functions.php it works fine and the notification email is sent.
However, I am using it a bit differently. I am using it in relation to another plugin. The code is as follows:
if($params['formid'] == 69) {
if ( get_current_user_id() < 1 )
return;
if ( ! function_exists( 'fep_send_message' ) )
return;
// Prepare message data
$message = array(
'message_title' => 'New Enquiry', //change with message title
'message_content' => $params['fieldname42'], //change with message content
'message_to_id' => 8037
);
$override = array(
'mgs_author' => get_current_user_id(), //change with message sender id
);
// Send message
fep_send_message( $message, $override );
}
When I submit the form on the other plugin the message sends ok but the notification email does not send. I have checked the email log and nothing is sending.
Can I use it like this? I cannot really see why it does not work.
Thanks for any further help..