4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: cyber on September 09, 2002, 04:15:44 AM

Title: Help with Mass Mail of 4images
Post by: cyber 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 *
Title: Help with Mass Mail of 4images
Post by: Jan on September 09, 2002, 08:41:01 AM
Just edit "admin/email.php" to show only the email adresses in plain text.

Jan
Title: Can you be more especific?
Post by: cyber on September 09, 2002, 01:39:06 PM
Can you be more especific please?
Title: Help with Mass Mail of 4images
Post by: Jan 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
Title: Thisť
Post by: cyber 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