questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    questions

    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

    #2
    I need help to, in this case.
    mysterio.al - programming is a functional art

    Comment


      #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

      Comment


        #4
        LIke this??

        Code:
        <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
        PHP Code:
        $output="i am NOoob....";
        $newfile="ewanz.txt";
        $file fopen ($newfile"w");
        fwrite($file$output);
        fclose ($file); 

        Comment


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

          Comment


            #6
            N0t just tested.. B-)
            our lfe is simple words....
            http://mygenkz.net
            ewanz06@yahoo.com
            PHP Code:
            $output="i am NOoob....";
            $newfile="ewanz.txt";
            $file fopen ($newfile"w");
            fwrite($file$output);
            fclose ($file); 

            Comment


              #7
              yes u can send all them an email in 1 go

              Comment


                #8
                how do u do that then ori

                Comment


                  #9
                  Code:
                  $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...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment


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

                    Comment

                    Working...
                    X