EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07120
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Ask about frequency of items-under-review mailings:
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Ask about frequency of items-under-review mailings:
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Wed, 31 Jan 2018 11:01:15 +0000
Hi, That looks OK to me. First, try with a hardcoded email address on this line: to_email => #EDITOR OR ADMINISTRATOR
EMAIL?, You need to use single-quotes: to_email => 'the.email@domain.com', if you use double-quotes, it might not work. Let me know if that helps. If it doesn't, is there anything in the error log? You could add something to put a message into the Apache log to check the email looks like it's been sent: my $userMailOK = EPrints::Email::send_mail( … ); print STDERR "inbox to buffer email result: $userMailOK\n"; If that does work, the next question is 'how many editors do you have?'. If it's just one (or there more than one, but they use a shared mailbox), hard-coding the email address might be OK. If you have lots of editors, and they have different 'scopes' (you could allow one editor to process theses, another one to process
journal articles), then we can do something like: -
get all editors -
see if the item is 'in scope' of that editor -
email them if it is! Let me know how you get on! Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Ajunk Pracetio Hi John, I already try this and success. But it only for live archive, not for item that just deposited. I already try add below, but I dont know is it right or wrong. $c->add_dataset_trigger( "eprint", EP_TRIGGER_STATUS_CHANGE, sub{ Thank you On Tue, Jan 30, 2018 at 5:13 PM, John Salter <J.Salter@leeds.ac.uk> wrote:
Life isn't valuable if you don't have someone to care |
- Follow-Ups:
- Re: [EP-tech] Ask about frequency of items-under-review mailings:
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Ask about frequency of items-under-review mailings:
- References:
- [EP-tech] Ask about frequency of items-under-review mailings:
- From: Ajunk Pracetio <prazetyo@gmail.com>
- Re: [EP-tech] Ask about frequency of items-under-review mailings:
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Ask about frequency of items-under-review mailings:
- From: Ajunk Pracetio <prazetyo@gmail.com>
- Re: [EP-tech] Ask about frequency of items-under-review mailings:
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Ask about frequency of items-under-review mailings:
- Prev by Date: Re: [EP-tech] Ask about frequency of items-under-review mailings:
- Next by Date: Re: [EP-tech] Very slow access, File not found, Error Generating views
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):