SHARE
TWEET

Untitled

a guest Oct 2nd, 2017 533 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     require '/usr/local/cpanel/base/horde/pear/php/Mail.php';
  2.     $theirname = $row['username'];
  3.     $theiremail = $row['email'];
  4.     $theiremail2 = "$theiremail";
  5.     $theemail = "Hey there, $theirusername! This is a Gamercon announcment alert! $thetext";
  6.     $FromName = "Gamercon";
  7.     $FromEmail = "codybeer456@aol.com";
  8.  
  9.  $from = "$FromName <$FromEmail>";
  10.  $to = "$theirname <$theiremail>";
  11.  $subject = "Hi!";
  12.  $body = "Hi,\n\nHow are you?";
  13.  
  14.  $host = "gc-gaming.info";
  15.  $username = "gamercon";
  16.  $password = "killa4life";
  17.  
  18.  $headers = array ('From' => $from,
  19.    'To' => $to,
  20.    'Subject' => $subject);
  21.  $smtp = Mail::factory('smtp',
  22.    array ('host' => $host,
  23.      'auth' => true,
  24.      'username' => $username,
  25.      'password' => $password));
  26.  
  27.  $mail = $smtp->send($to, $headers, $body);
  28.  
  29.  if (PEAR::isError($mail)) {
  30.    echo("<p>" . $mail->getMessage() . "</p>");
  31.   } else {
  32.    echo("<p>Message successfully sent!</p>");
  33.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top