MyBB Community Forums

Full Version: Email adresses and Adress book
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way so i can have a list with all the emails of my my members so i can easily add them to my email client (eudora) adress book without doing it one by one? Cause if i want to send a mass email with attachments for example i cant do it through mybb etc
Not that I know of. I guess a simple coded php file
<?php
require("./global.php");
$query = $db->query("SELECT email FROM ".TABLE_PREFIX."users");
while ($r = $db->fetch_array($query)) {
echo $r['email']."<br />";
}
?>
would print out all the emails for you to copy and paste.
Cool. is there any way to have them displayed in horizontaly with a , ?
For some resone when i went to try your code it didn't do anything i got a blank page.

<?php
require("./global.php");
$query = $db->query("SELECT email FROM ".TABLE_PREFIX."users");
while ($r = $db->fetch_array($query)) {
echo $r['email']."<br />";
}
?>

http://blakemiller.no-ip.org/aao/upload/test.php
The code works but it displays them vertically. The perfect whould be the email to be horizontally displayed seperated by a , so u can insert them to BCC in 1 sec. If this can be done it whould be great
<?php
require("./global.php");
$query = $db->query("SELECT email FROM ".TABLE_PREFIX."users");
$string = "";
while ($r = $db->fetch_array($query)) {
$string .= (!empty($string)) ? "," : "";
$string .= $r['email'];
}
echo $string;
?>