OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Email to authors not being sent

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Email to authors not being sent

Postby ramon » Fri Apr 16, 2004 8:26 am

Fellows,

I was testing the email to all authors and something´s not right.

I tried the forgot password and that one worked.. So it´s a problem with the file, not the system. But I don´t know where to start.

I noticed that the switch statement was different, but I´m not sure if that´s the problem...
Code: Select all
From admin/editor/authors.php ##
switch($op) {
   case "record":
      viewAuthorRecord((int) $id);
      break;
   case "email":
      emailAuthor($id);
      break;
   case "send_email":
      sendAuthorEmail($HTTP_POST_VARS);
      break;
   case "delete":
      deleteAuthor((int) $id);
      showAuthors();
      break;
   default:
      showAuthors();
      break;
}


Code: Select all
from forgotpw.php ###
// perform selected function
switch($op) {
   case "send":
      sendPassword($HTTP_POST_VARS);
      break;
   default:
      lostPasswordForm();
      break;
}


thanks to all
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Postby kevin » Fri Apr 16, 2004 11:41 am

There is indeed a small bug in admin/editor/authors.php:

Code: Select all
Index: admin/editor/authors.php
===================================================================
RCS file: /cvs/ojs/admin/editor/authors.php,v
retrieving revision 1.61
diff -u -r1.61 authors.php
--- a/admin/editor/authors.php  17 Feb 2004 03:29:40 -0000      1.61
+++ b/admin/editor/authors.php  16 Apr 2004 18:40:40 -0000
@@ -316,7 +316,7 @@
        $vars[mailbody] .= "\n\n--\n" . sprintf(_tr('NOTIFICATION_UNSUBSCRIBE_EMAIL_FOOTER'), $baseurl . "login.php");
       
        // get list of authors to send emails to
-       $sql = "SELECT chFirstName, chMiddleInitial, chSurname, chEmail FROM tblauthors, tblusers where nAuthorID = fkAuthroID ";
+       $sql = "SELECT chFirstName, chMiddleInitial, chSurname, chEmail FROM tblauthors, tblusers where nAuthorID = fkAuthorID ";
        if(!empty($vars[id])) { $sql .= "and nAuthorID IN ('" . join("', '", $vars[id]) ."') "; }
        $sql .= "ORDER BY nAuthorID";
        $result = $db->query($sql);


Thanks for pointing that out.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest