EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09762


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Email notification to author when item is accepted

  • To: David R Newman <drn@ecs.soton.ac.uk>
  • Subject: Re: [EP-tech] Email notification to author when item is accepted
  • From: Mosys Consultancy Services Pvt Ltd <mosyssw@gmail.com>
  • Date: Sun, 21 Jul 2024 05:47:36 +0530

CAUTION: This e-mail originated outside the University of Southampton.
Thanks for the clarification. Its working fine now.

So kind of you.

thanks
Revathi

On Fri, Jul 19, 2024 at 6:13 PM David R Newman <drn@ecs.soton.ac.uk> wrote:

Hi Revathi,

I assume you followed the installation instructions fully on the page for the URL you sent me.  Particularly about adding the permission  +eprint/buffer/approve:editor to the admin and editor user roles.  You can either edit your archive's cfg/cfg.d/user_roles.pl if it already exists or if not create a new file called z_user_roles.pl (in the archive's cfg/cfg.d/ directory) and add the following two lines:

push @{$c->{user_roles}->{editor}}, '+eprint/buffer/approve:editor';

push @{$c->{user_roles}->{admin}}, '+eprint/buffer/approve:editor';

If you want to quickly test this before changing configuration you could just add this permission by editing your user record via Manage Profile and under the Account stage add +eprint/buffer/approve:editor to Roles. 

Sometimes I think the problem is likely to be that the plugin is not enabled.  You will need to edit your archive's cfg/cfg.d/plugins.pl or create a new file under cfg/cfg.d/ and add the following line:

$c->{plugins}->{"Screen::EPrint::ApproveWithEmail"}->{params}->{disable} = 0;

This is a little counter-intuitive but sometimes I have found you need to deliberately state the plugin is not disabled rather than assume that is the disable params is not defined it therefore must be enabled.

After doing either or both of these steps be sure to check the configuration and reload Apache:

bin/epadmin test
apachectl graceful


Regards

David Newman

On 19/07/2024 09:58, Mosys Consultancy Services Pvt Ltd wrote:
CAUTION: This e-mail originated outside the University of Southampton.
David,
Thanks for your quick response. 
When you say this is not working are you saying that the "Approve item (with notification) button" is not appearing so you cannot even attempt to send an email or are you clicking this button but the user is not receiving the email? 
Yes. We are not able to see the Approve item (with notification) button.

 If it is the latter, have you tried using the "Send Test Email" page from the Admin menu to send an email to the same email address as that set for the user who is the owner of the eprint that has just been approved.  If this test email does not arrive either, then it is a problem either sending or the user's email account receiving email from your EPrints repository.  This will likely be an issue with the mail server receiving these emails not trusting who has sent them as genuinely who they say they are.  You may need to look into DMARC configuration [1] for the sending mail server on your EPrints repository server.
Sending test emails is working, and the notification button is also working fine.

It is also worth checking the history tab for the eprint item that should have sent out an approved email notification as this should have been logged in the history. 
Checked it and it is not available for approving items.

 If this has happened but no email has been received, this make the likelihood of a general email sending/receiving issue even more likely, as EPrints looks to have done everything it needs to do successfully.  How have you configured email to be sent out from EPrints?  Is it still configured to use localhost and you have install Sendmail or Postfix as a smarthost to relay email or have you configure perl_lib/EPrints/SystemSettings.pm to directly connect a specific mail server using the smtp_server setting?
Yes, We use postfix as a smarthost and use O365. All kinds of email including request copy are also working fine. 

On Fri, Jul 19, 2024 at 1:26 PM David R Newman <drn@ecs.soton.ac.uk> wrote:
Hi Revathi,

When you say this is not working are you saying that the "Approve item (with notification) button" is not appearing so you cannot even attempt to send an email or are you clicking this button but the user is not receiving the email?  If it is the latter, have you tried using the "Send Test Email" page from the Admin menu to send an email to the same email address as that set for the user who is the owner of the eprint that has just been approved.  If this test email does not arrive either, then it is a problem either sending or the user's email account receiving email from your EPrints repository.  This will likely be an issue with the mail server receiving these emails not trusting who has sent them as genuinely who they say they are.  You may need to look into DMARC configuration [1] for the sending mail server on your EPrints repository server.

It is also worth checking the history tab for the eprint item that should have sent out an approved email notification as this should have been logged in the history.  If this has happened but no email has been received, this make the likelihood of a general email sending/receiving issue even more likely, as EPrints looks to have done everything it needs to do successfully.  How have you configured email to be sent out from EPrints?  Is it still configured to use localhost and you have install Sendmail or Postfix as a smarthost to relay email or have you configure perl_lib/EPrints/SystemSettings.pm to directly connect a specific mail server using the smtp_server setting?

Regards

David Newman

[1] https://en.wikipedia.org/wiki/DMARC

On 19/07/2024 6:22 am, Mosys Consultancy Services Pvt Ltd wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi,
We would to receive Email notification to author when item is accepted. We followed the procedure which is mentioned here http://files.eprints.org/370/

But it is not working. Can anyone suggest please

thanks
Revathi

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/