Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "twist3ddb2.db.7064184.hostedresource.com"; //db host
- $user = "twist3ddb2"; // username
- $pass = "Overkill01"; // password
- $acct_data = "twist3ddb2"; // account db
- $port = "";
- ?>
- <?php
- $con = mysql_connect("$host","$user","$pass");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("$acct_data", $con);
- $result = mysql_query("SELECT name, confirmcode FROM tgusers");
- while($row = mysql_fetch_array($result))
- if ($row['confirmcode'] == y)
- {
- continue;
- }
- else
- {
- $to = "email@server.com";
- $subject = "Confirmation Codes";
- $body = "Hello Twist3d Nova, Here are your confirmation codes for the following users. '.name.', '.confirmcode.'";
- if (mail($to, $subject, $body)) {
- echo("<p>Message successfully sent!</p>");
- } else {
- echo("<p>Message delivery failed...</p>");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement