Author Topic: Help with Mass Mail of 4images  (Read 5580 times)

0 Members and 1 Guest are viewing this topic.

Offline cyber

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Help with Mass Mail of 4images
« on: September 09, 2002, 04:15:44 AM »
Hello...
Can you tell me how i can list all e-mail's of people registered inf my 4images gallerie because i've got a geral newsletter of my site and i wan't only send one Newsletter.. but i wan't send for the e-mails of the ppl registered in my gallerie... can you tell me how?

One script that list all e-mails .. because if i go to the database i need to put one a one.. and i want, list all, selected all, copy and past in my newsletter..

Thanks for all *

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Help with Mass Mail of 4images
« Reply #1 on: September 09, 2002, 08:41:01 AM »
Just edit "admin/email.php" to show only the email adresses in plain text.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline cyber

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Can you be more especific?
« Reply #2 on: September 09, 2002, 01:39:06 PM »
Can you be more especific please?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Help with Mass Mail of 4images
« Reply #3 on: September 09, 2002, 01:43:59 PM »
If you want to write a script which will output you all email adresses, see "admin/email.php". There you will find all nessecary code bits.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline cyber

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Thisť
« Reply #4 on: September 09, 2002, 01:57:12 PM »
Hi have created a file with that code:

<?php


require('config.php');

if ($action == "emailusers") {
  if ($msg != "") {
    printf("<b>%s</b>\n", $msg);
  }
  show_form_header("email.php", "sendemails");
  show_table_header($lang['send_emails'], 2);
  show_input_row($lang['send_emails_subject'], "subject", "", 45);
  show_textarea_row($lang['send_emails_message'], "message", "", 60, 20);

  $select = "emails";

  $sql = "SELECT ".get_user_table_field(", ", "user_email")."
          FROM ".USERS_TABLE."
          WHERE ".get_user_table_field("", "user_id")." <> ".GUEST." AND ".get_user_table_field("", "user_allowemails")." = 1
          ORDER BY ".get_user_table_field("", "user_level")." DESC";
  $result = $site_db->query($sql);

  $level = 1000;
}
?>

But i can't see anything.. it is incorrect?
I put that in root of the gallerie