solved custom forms send to custom email

soaringeagle
@soaringeagle
5 years ago
3,304 posts
can we add an option when creating a form to have it send to a specific email instead of just master admins or all users?
or, even a form field type thats hidden but includes a cc or bcc address?
i would like form data to also get sent to a yahoo group where we organise the flights


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 11/01/19 07:15:54AM
michael
@michael
5 years ago
7,740 posts
At the moment a listener would be the way to do it:

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1011/events-and-listeners

The jrUser_notify() function is the one that does all the sending and checking of users preference of how they want to be notified and it has an event trigger in it 'notify_user'.

OR if you're only interested in emails, then there is the event 'email_addresses' in the jrCore_send_email() function.

You could use your listener to add any address you wanted into there.
soaringeagle
@soaringeagle
5 years ago
3,304 posts
hmm ok i'll look into that thanks


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags