solved custom forms send to custom email

soaringeagle
@soaringeagle
7 months ago
3,272 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: 01 Nov 2019 07:15:54AM
michael
@michael
7 months ago
7,058 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
7 months ago
3,272 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