You can use fep_action_message_after_send action hook to send email.
Thread Starter
bustel
(@bustel)
thank you for the response. Is that another plugin ?
You can learn more about action hook from https://codex.wordpress.org/Plugin_API#Actions http://codex.wordpress.org/Glossary#Action or search in google
To send mail when a message is sent add following code in your theme’s functions.php
add_action( 'fep_action_message_after_send', function() {
wp_mail( 'abc@example.com', 'Subject', 'Content' );
});
Change mail address to your admin mail address, also change Subject and Content as you like.
It needs your php version to be 5.3+
Thread Starter
bustel
(@bustel)
Hello
it isn’t another plugin I have seen on your page. So how can i set it, is it in the function.php?
if (!is_admin())
add_action(‘fep_action_message_after_send’);
and where do I set the e-mail from the admin?
thanks