Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require '/usr/local/cpanel/base/horde/pear/php/Mail.php';
- $theirname = $row['username'];
- $theiremail = $row['email'];
- $theiremail2 = "$theiremail";
- $theemail = "Hey there, $theirusername! This is a Gamercon announcment alert! $thetext";
- $FromName = "Gamercon";
- $FromEmail = "codybeer456@aol.com";
- $from = "$FromName <$FromEmail>";
- $to = "$theirname <$theiremail>";
- $subject = "Hi!";
- $body = "Hi,\n\nHow are you?";
- $host = "gc-gaming.info";
- $username = "gamercon";
- $password = "killa4life";
- $headers = array ('From' => $from,
- 'To' => $to,
- 'Subject' => $subject);
- $smtp = Mail::factory('smtp',
- array ('host' => $host,
- 'auth' => true,
- 'username' => $username,
- 'password' => $password));
- $mail = $smtp->send($to, $headers, $body);
- if (PEAR::isError($mail)) {
- echo("<p>" . $mail->getMessage() . "</p>");
- } else {
- echo("<p>Message successfully sent!</p>");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement