thlinna

Send email to page creator

Recommended Posts

I was unable to find a proper way to send email to page creator. I'm pretty sure the API provides a way to refer $creator->email this, but how is it accomplished?

I've got WireMailMailgun set up and working, so all I practically need is a way to dig up the email address of the page creator.

Share this post


Link to post
Share on other sites

Actually it's very easy. You can get the email of the page creator with 

$page->createdUser->email

 

  • Like 6

Share this post


Link to post
Share on other sites

I knew it is easy, after all we’re talking about The #Processwire 😉

Thanks for the help.

  • Like 3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.