Send post approval notification with "user submitted posts"

Hi, I recently added this code to my functions file:

function authorNotification($post_id) {

$post = get_post($post_id);

$author = get_userdata($post->post_author);

$message = "

Hi ".$author->display_name.",

Your post, ".$post->post_title." has just been published at ".get_permalink( $post_id ).". Well done!


wp_mail($author->user_email, "Your article is online", $message);


add_action('publish_post', 'authorNotification');

It sends users notification when their posts are approved. However the site I'm working on uses the plugin "[login to view URL]", and does not require registration. When submitting, an email address MAY be included by the user. I need a notification to be sent to that email.

1. You must work on this on your own testing site, I won't be giving out access due to security

2. I'm open to other options to accomplish this

3. Neep done ASAP!

4. Ask questions!!

Evner: CSS, MySQL, PHP, Web Design, WordPress

Se mere: sharepoint 2007 send notification doc submitted, phpbb send post notification, phpbb2 send post notification mail, accesspress anonymous post pro, how to make a website where users can post, user submitted posts custom post type, user submitted posts pro nulled, user submitted posts custom fields, wordpress plugin to allow users to post on front end, wordpress user submitted photo gallery, add post from frontend wordpress without plugin, wordpress user submitted posts, user submitted post wordpress, phpbb email notification user post, user submitted posts, user submitted posts attached files, user submitted posts images error, user submitted url user submitted posts, url link user submitted posts, wordpress user submitted posts url

Om arbejdsgiveren:
( 27 bedømmelser ) Thunder Bay, Canada

Projekt ID: #18866778

6 freelancere byder i gennemsnit $31 på dette job


Hi, I am ready to fix your emailing issue and assure 100% satisfaction guarantee. Looking forward to your fruitfully response. Regards Muhammad Alyas

$35 CAD på 1 dag
(211 bedømmelser)

Hello, Trust you are doing well! I have ample experience CSS, HTML, PHP, Website Design, WordPress. I have checked your requirements exactly. I am the responsible for the working and try to keep the best rela Flere

$30 CAD in 2 dage
(102 bedømmelser)

Hello Sir, Wordpress I can start right now. I accept payment to be done only after u are 100% satisfied with the job done. Thanks, Naum

$30 CAD på 1 dag
(24 bedømmelser)

Thank you for posting a Job. I WILL DO THIS AS PER YOUR REQUIREMENT AND EXPECTATIONS. With the experience of over 300+web development projects including ANDROID, IOS, WEBSITES, WEB APPLICATIONS AND SOFTW Flere

$30 CAD in 10 dage
(25 bedømmelser)

Hi, I have read your project description and willing to do this for you in your required time spam with 100% Satisfaction. Kindly message me so we can discuss in detail over chat......

$30 CAD på 1 dag
(35 bedømmelser)

Hi, Greeting of the day! Thank's for providing us with an opportunity to bid on your project. I am totally new here but I can assure you that you will be happy with my work & your project. Currently, I am trying to b Flere

$30 CAD in 5 dage
(0 bedømmelser)