• Resolved Uprootednut

    (@uprootednut)


    I am currently using apply with ninja forms and it doesnt so quite what I am looking for, I am looking to send the application emails to different email addresses so it would use Application email/URL: and email the email address in there.

    I think both ninja forms / gravity forms both email the address specified in their respective settings.

    Is there a way to have different jobs applications email different people on a job by job basis?

    Thanks

    https://wordpress.org/plugins/wp-job-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • I can’t think of a way to do this easily without digging into some hooks / custom code right now.

    You could look into add post meta to a job (for the specific email address) and then hooking into ‘new_job_application’ with wp_mail() to fire it off where it needs to go.

    Here’s what action is available:
    do_action( 'new_job_application', $application_id, $job_id );

    ^ I would like to know this aswell since right now im using a dropdown to select which job you want to apply for. I quite don’t understand your ”fix” for this though scott 🙁 .

    Take a look at this example (haven’t tested):
    https://gist.github.com/scottbasgaard/69900845130e6346dbc7

    This is a pretty basic example but you could build on it to email specific people say based on application meta, etc.

    I’ll try, don’t think it’s going to end well with me seeing as I’m the worst PHP newbie there is. I hope the OP has got this fixed though.

    Right, so the code is just an example that would need to be built on / extended.

    Not gonna do much just adding it your functions.php template file for example.

    Hope this is useful for others as well though!

    Thread Starter Uprootednut

    (@uprootednut)

    Hi Scott, thanks for the reply.

    Not an expert at PHP either, so the code you linked to when added to functions.php will create a new function that will email what ever email address is in the Application email/URL?

    What will be emailed – I see from the git hub this –

    wp_mail( $canditate_email, 'The subject', 'The message' );

    Will the email include only content of job itself?

    if so (as I’m currently using Ninja forms) I presume I will need to make a form manually and then add the filled in field to the email?

    I hope that make sense!

    Plugin Author Mike Jolley

    (@mikejolley)

    That snippet will just send:

    The message

    You’d need to customise that message to fit your needs. The filter function has both:

    $application_id
    $job_id

    So in theory you can get any data from either the job or the application you want for your message.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Application email recipient’ is closed to new replies.