Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Mailform and mail adresses from mysql

Codes here !

Moderators: macek, egami, gesf

Mailform and mail adresses from mysql

Postby baek » Sat Oct 26, 2002 9:16 am

Hey there,
I have a phpBB2 and wants to make a mailform, that will send out a mail to all the mail adresses from the mysql. (about 60 mail adresses)

I have found this code, that retrieves all the mail adresses, but i don't know how to combine it with a mail form...(i'm not capable at making anything in PHP myself :( )

mysql_connect("localhost","********","********");
mysql_select_db("hakom");
$query_result = mysql_query("SELECT user_email FROM phpbb_users");

while ($query_array = mysql_fetch_array($query_result)){

echo $query_array["user_email"] . '<br>';
}

Hope you can help.

//baek
baek
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Oct 26, 2002 9:05 am

Postby DoppyNL » Sat Oct 26, 2002 9:43 am

You want to send an email to the users of you're forum?
Why do difficult:

Login to phpBB
goto:
Admin Panel -> Main Management (Translated, probably something else, 3rd block) --> Bulk Email

There you can mail all users or to a group that exists in your forum.

Greetz Daan
DoppyNL
 

SOmething like that, but possible for others to

Postby baek » Sat Oct 26, 2002 10:03 am

DoppyNL wrote:You want to send an email to the users of you're forum?
Why do difficult:

Login to phpBB
goto:
Admin Panel -> Main Management (Translated, probably something else, 3rd block) --> Bulk Email

There you can mail all users or to a group that exists in your forum.

Greetz Daan


Yes I know that, but i wants to make it possible for other do it it as well. Others who doesn't hav acces to the admin. But it's something like the thing in the admin panel i want to make... :D

//baek
baek
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Oct 26, 2002 9:05 am


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.