questions

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

9 replies · 407 views · started 17 years ago · 1 min read

5 participants
down16 Junior · 39 posts #1

how do i copy alll emails off mysql, i have 300 users and i is there fast way then copying one by one, and how do i spend mass emailto alll them

ori Lead · 512 posts #3

u can use the mail function and a database query to email them all and u can export a whole table out database then u have them all in 1 go

ewanz Developer · 187 posts #4

LIke this??

<html>
<body>

<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
  {
  //send email
  $email = $_REQUEST['email'] ;
  $subject = $_REQUEST['subject'] ;
  $message = $_REQUEST['message'] ;
  mail( "someone@example.com", "Subject: $subject",
  $message, "From: $email" );
  echo "Thank you for using our mail form";
  }
else
//if "email" is not filled out, display the form
  {
  echo "<form method='post' action='mailform.php'>
  Email: <input name='email' type='text' /><br />
  Subject: <input name='subject' type='text' /><br />
  Message:<br />
  <textarea name='message' rows='15' cols='40'>
  </textarea><br />
  <input type='submit' />
  </form>";
  }
?>

</body>
</html>

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
down16 Junior · 39 posts #5

is there a easy way so i can send all them a email, there over 260 people

ewanz Developer · 187 posts #6

N0t just tested.. B-)

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ori Lead · 512 posts #7

yes u can send all them an email in 1 go

down16 Junior · 39 posts #8

how do u do that then ori

subzero Super moderator Fellow · 3,954 posts #9
$res = mysql_query("SELECT * FROM ibf_users");

while ($row = mysql_fetch_array($res)) 

   {

 //send email
  $email = $_REQUEST['email'] ;
  $subject = $_REQUEST['subject'] ;
  $message = $_REQUEST['message'] ;
  mail( "$row[email]", "Subject: $subject",
  $message, "From: $email" );
  echo "Thank you for using our mail form";

   }

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

down16 Junior · 39 posts #10

how do i set that up then, soz i am a noob

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close