Current File : /home/caballoscriollos/www/web/library/class.gmail.php
<?php
include_once('mail/class.phpmailer.php');
class GMail
{
public static function SendEmail($Subject, $Contenido, $arrEmails)
{
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPDebug = 5; // enables SMTP debug information (for testing)
// 1 = errors and messages
// 2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->Username = "sitioweb@reumatologia.org.ar"; // GMAIL usernam0
$mail->Password = "Sitio.124578!"; // GMAIL password
$mail->From = 'sitioweb@reumatologia.org.ar';
$mail->FromName = utf8_encode('Sociedad Argentina de Reumatologia');
$mail->AddReplyTo("sitioweb@reumatologia.org.ar", $nombre_empresa);
$mail->Subject = $Subject;
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->IsHTML(true);
$mail->MsgHTML(utf8_encode($Contenido));
foreach ($arrEmails as $Email)
{
$mail->AddAddress($Email, "");
}
$mail->Send();
}
}
?>
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat