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

Hey,

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/RegistrationForm.inc.php”.

It works fine when I provide a hard coded email address as recipient.
My question is: inside the RegistrationForm.inc.php, 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?