Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
mass email
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-12-12 09:19:17
i go on many sites

and cant reset my pass

especially daffys  ;)

so try this  ;)

<td align="center"><a href=admincp.php?action=massemail><img src=images/admin/mail.gif border=0 width=32 height=32><br>Mass Email</a><BR></td>
at the bottom of your admincp before the last




?>





add





if($action == "massemail" && get_user_class() == 7) {

stdhead("Mass Email");

navmenu();

$class = 0 + $_POST["class"];

$or = $_POST["or"];



if ($_POST['do'] == "sendmsg")

{

begin_frame("Messages Sent");

$res = mysql_query("SELECT id, username, email FROM users WHERE class $or $class") or sqlerr(__FILE__, __LINE__);



$from_email = $site_config['SITEEMAIL']; //site email



$subject = substr(trim($_POST["subject"]), 0, 80);

if ($subject == "") $subject = "(no subject)";

$subject = "Fw: $subject";



$message1 = trim($_POST["message"]);

if ($message1 == "") stderr("Error", "Empty message!");





while($arr=mysql_fetch_array($res)){



$to = $arr["email"];





$message = "Message received from ".$site_config['SITENAME']." on " . gmdate("Y-m-d H:i:s") . " GMT.\n" .

"---------------------------------------------------------------------\n\n" .

$message1 . "\n\n" .

"---------------------------------------------------------------------\n".$site_config['SITENAME']."\n";



mail($to, $subject, $message, $from_email, "-f".$from_email) or die("error");

echo $arr['username'].", ";

}

end_frame();

}







begin_frame("Mass Email");

?>



<p><table border=0 class=main cellspacing=0 cellpadding=0><tr>

<td class=embedded><img src=/pic/email.gif></td>

<td class=embedded style='padding-left: 10px'><font size=3><b>Send mass e-mail to all members</b></font></td>

</tr></table></p>

<table border=1 cellspacing=0 cellpadding=5>

<form method=post action=admincp.php?action=massemail>

<input type='hidden' name='do' value='sendmsg' />

<!--<tr><td class=rowhead>Your name</td><td><input type=text name=from size=80></td></tr>-->

<?

print("<tr><td class=rowhead>Class</td><td colspan=2 align=left><select name=or><option value='<'><<option value='>'>><option value='='>=<option value='<='><=<option value='>='>>=</select><select name=class>\n");

$classes = mysql_query("SELECT group_id as id, level FROM groups ORDER BY group_id ASC");

while($carr = mysql_fetch_assoc($classes))

print("<option value=".$carr['id'].">" . htmlspecialchars($carr['level']) . "\n");

print("</select></td></tr>\n");



?>



<!--<tr><td class=rowhead>Your e-mail</td><td><input type=text name=from_email size=80></td></tr>-->

<tr><td class=rowhead>Subject</td><td><input type=text name=subject size=80></td></tr>

<tr><td class=rowhead>Body</td><td><textarea name=message cols=80 rows=20></textarea></td></tr>

<tr><td colspan=2 align=center><input type=submit value="Send" class=btn></td></tr>

</form>

</table>

<?php

end_frame();

stdfoot();

}



change this line to your required access level





if($action == "massemail" && get_user_class() == 7) {



tried and tested and working on version 2.05

all credits goto tbdev for this mod
Unknown User
2010-03-23 13:04:05
ok got this installed but what does the <> = >= and all that mean lol
Unknown User
2010-07-06 17:51:57
"russellhearn69, post: 62803":
ok got this installed but what does the <> = >= and all that mean lol

= means "is equal to"

> means "is greater than"

< means "is less than"

<> means "is either less than or greater than" or simply "is not equal to"
Unknown User
2010-07-07 10:14:30
Thanks works great , am I right in thinking, if i enter <= & super mod , it will send to super mod and below ?
2011-11-19 17:22:06
THANS thedarklord,

De mon coter je ne re
Unknown User
2011-11-19 23:04:18
im on your site and ive just done a reset password and that did not come through
Unknown User
2011-11-20 01:19:26
those having issues with so called not sending emails, should really use the gmail mod here some place.  I am using it on my test site and it sends np to matter who I am testing it with.  + the fact if switch to using the gmail addon you can tech just plain shutdown your servers mail server.  1 less area for someone to try and hack in.
2011-11-20 14:22:39
"thedarklord, post: 76783":
im on your site and ive just done a reset password and that did not come through


thedarklord, You speak of this code in config.php!?

Quote:
// Mail settings// php to use PHP\'s built-in mail function. or pear to use [url="http://pear.php.net/Mail"]http://pear.php.net/Mail[/url]

// MUST use pear for SMTP

$site_config["mail_type"] = "php";

$site_config["mail_smtp_host"] = "localhost"; // SMTP server hostname

$site_config["mail_smtp_port"] = "25"; // SMTP server port

$site_config["mail_smtp_ssl"] = true; // true to use SSL

$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP

$site_config["mail_smtp_user"] = ""; // SMTP username

$site_config["mail_smtp_pass"] = ""; // SMTP password



P.S: and the reverse DNS was done!.
2011-11-20 14:26:30
"ArcticWolf, post: 76785":
those having issues with so called not sending emails, should really use the gmail mod here some place.  I am using it on my test site and it sends np to matter who I am testing it with.  + the fact if switch to using the gmail addon you can tech just plain shutdown your servers mail server.  1 less area for someone to try and hack in.


ArcticWolf, avant je demenage sur un serveur dedier, il fonctionnais  #1 et mon email est de @videotron.ca mon fournisseur internet la maison.

~~~~~~~~~~~~~~~~~~//

ArcticWolf, before I move to a server it worked Dedier # 1 and my email is my internet provider @videotron.ca home.
2011-11-25 11:44:44
Probl
Unknown User
2012-01-22 18:52:15
i have it installed on 2.08, and it is comming in as www-data and the subject is fwd: what ever the subject line is.  how do i change that to site name and get rid of the fwd?
Unknown User
2012-01-22 19:26:26
whats coming in as www-data?
Unknown User
2012-01-23 00:19:38
my guess its his default web user.. dont really know I personally been using the gmail hack its alot better all the way around and heck gmail is free hehehe
Unknown User
2012-01-23 01:13:28
tommorow i will release one for v2.08
Unknown User
2012-03-10 14:13:13
nm.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728