How to get journal's primary contact email address from code?


OJS V 2.4.8

I want to add an email notification so that whenever there is a new registration, an email is sent to the journal’s primary contact. To do this I add the email sending function in “…/classes/user/form/”.

It works fine when I provide a hard coded email address as recipient.
My question is: inside the, function execute(), how I can get the journal’s primary contact (which is set in Setup Step 1) ?

These are journal settings, ‘contactEmail’ and ‘contactName’.

See, for example:

1 Like

Thanks graham, it worked.

Is there any setting for this through UI in ojs 3.0?