Send an email after a form is submitted

edster - 3 weeks ago

Is this best done as a form handler? Or does this belong somewhere else?

Answer

- 3 weeks ago

I ended up building a handler that fires out an email ^.^

edster - 3 weeks ago

Looks like I could use the onSaved function in the builder OR create a handler, this email basically is to send to an admin and go, what do you want to do with this, with some options.

If I use onSaved, how can I pass this access request over?

Thanks!

ryanthompson - 3 weeks ago

If I use onSaved, how can I pass this access request over?

What do you mean there?

You would just use Laravel notification / or some mailer servers from the callback if you wanted.

You could also fire an event and listen to that.. but sounds like you're fine with what you said.

edster - 3 weeks ago

I ended up building a handler that fires out an email ^.^