DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • November 20, 2017, 02:44:24 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: SEND EMail to translators  (Read 1083 times)
0 Members and 1 Guest are viewing this topic.
trapeur
Guest
« on: September 16, 2006, 04:50:00 PM »

I want to find a module to send an email to all my translator or moderators of the site.

+ Grin
Logged
Nightborn
Guest
« Reply #1 on: September 17, 2006, 12:48:38 AM »

Well, Talisman pointed you to the right edge...

Quote
Pyewacket had a module on her server which was an MoTD for superusers, with a link from the grotto.  Something like that would be good for making announcements without having them disappear in the normal chatter.

Don't know what the module was called though...

You could try:
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=62

This sends out YOMs.

If you want to have emails, you need to change

Code:
$sql = "SELECT name FROM ".db_prefix("accounts")." \
INNER JOIN ".db_prefix("module_userprefs")."
ON userid = acctid
WHERE modulename = 'supermessage'
AND setting = 'position'
AND value >= '3'";

(example query from the module)

to add the email address to your select like

Code:
$sql = "SELECT name,emailaddress FROM ".db_prefix("accounts")." \
INNER JOIN ".db_prefix("module_userprefs")."
ON userid = acctid
WHERE modulename = 'supermessage'
AND setting = 'position'
AND value >= '3'";

and then change
Code:
            while($row = db_fetch_assoc($result)){
require_once("lib/systemmail.php");
            systemmail($row['userid'],$subject,$body);
}

to

Code:
            while($row = db_fetch_assoc($result)){
            mail($row['emailaddress'],$subject,$body);
}

You have to change these in some places (note that the first change is only an example, you only need to add the "emailaddress" to the sql query.
Logged
Pyewacket
Militia
**
Offline Offline

Posts: 57



View Profile WWW
« Reply #2 on: September 17, 2006, 08:29:42 AM »

the module Talisman mentioned is Sichae's Grotto MoTD.
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=54. Very handy module indeed.
Logged

GizBug's Follies - a new LoGD server
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
17 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search