PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Email site admin & post author

  1. I'm using posts so site authors can post content, a Gravity form is displayed on each post for inquiries, by default this gets pinged to the site admin, is there a way to email the site admin but also email the author of the post. I could create forms for each of the authors but with new authors constantly being added it's not ideal.

    Any pointers for how this maybe achieved?

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  2. Sounds like you could use the "User" notification for this. Since the user would be logged into the site, you could pre-populate an email field with the user meta for their email on file (you could then choose to show this or set this field to be admin only). Then map that field in the user notification To email field.

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  3. Cheers @Rob Harrell I'll have a gander and see what i can do, ta

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  4. I've figured all the workings out, the only thing I can't figure out how to do via Gravity settings is echoing the author email into the hidden field, I can do this through php I just can't figure out i can do it within the form editor.

    Under the hidden field properties where I can insert a variable I don't seem to be able to insert php if that makes any sense.

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  5. Check this out:
    http://www.gravityhelp.com/documentation/page/Merge_Codes

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  6. Ahh bingo, taa for that

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  7. Sorry to be a pain in the rear but I'm still having a bit of a mare trying to display the post author email within a hidden field.

    I came across this function which seems to get the author email like I was after

    add_filter('gform_field_value_user_email', 'populate_user_email');
    function populate_user_email($user){
    
    $user_email = get_the_author_meta('email', $user->ID);
    
    return $user_email;
    }

    but I can't seem to display it within my field

    I've tried all sorted of variations including {embed_post:user_email} & {custom_field:user_email}, I have a feeling I'm doing something obviously wrong I just can't figure it out, anyone any pointers for the muppet?

    Posted 11 years ago on Tuesday July 10, 2012 | Permalink
  8. Don't suppose anyone has any ideas, still racking my noodle over this one, tried all sorts of combos.

    ^JD

    Posted 11 years ago on Tuesday July 10, 2012 | Permalink
  9. Did you try just using this: {user:user_email}. This will show and populate the logged in user's email address.

    Posted 11 years ago on Tuesday July 10, 2012 | Permalink
  10. Hi Rob, tried that and it worked fine, just trying to pull the email for posts author which doesn't seem to be working.

    ^JD

    Posted 11 years ago on Tuesday July 10, 2012 | Permalink
  11. I think I'm confused - are you saying the logged in user who is filling out the form to create a post would NOT be the post author? Do you have a link to your form BTW?

    Posted 11 years ago on Tuesday July 10, 2012 | Permalink
  12. Hi Rob, no I have a custom post type for tutors, when they create a post for a class the post contains a contact form, by default the gravity form goes to the site owner, but I'm looking at pulling in the email of the tutor who created the post so they also receive the email when the forms submitted. I've managed to set it up so that the value of a hidden field is input into 'send to email' field, however I'm struggling to insert the authors email into the actual hidden field if you follow.

    Tried all sorts but I just can't seem to crack this one.

    ^JD

    Posted 11 years ago on Wednesday July 11, 2012 | Permalink
  13. Still no luck with this one, creating 19 identical forms it is then haha :/

    Posted 11 years ago on Monday July 16, 2012 | Permalink
  14. David Peralty

    I've gotten this to work before if you would still like help. E-mail me at peralty@rocketgenius.com and I'll help you set this up.

    Posted 11 years ago on Monday July 16, 2012 | Permalink