File: /var/www/grapossconnect/include/testmail.php
<?php
// require 'class.phpmailer.php';
// function smtpMail($fromname,$replyto,$title, $subject, $content, $email_id)
// {
// $mail = new PHPMailer();
// $mail->IsSMTP(true); // SMTP
// $mail->SMTPAuth = true; // SMTP authentication
// $mail->SMTPSecure = 'tls';
// $mail->Mailer = "smtp";
// $mail->SMTPDebug = false;
// $mail->CharSet = "utf-8";
// //Ask for HTML-friendly debug output
// $mail->Debugoutput = 'html';
// $mail->Host = "email-smtp.ap-south-1.amazonaws.com"; // Amazon SES server, note "tls://" protocol
// $mail->Port = 587; // set the SMTP port
// $mail->Username = 'AKIATU377FQG5YXAKY4J'; // SES SMTP username
// $mail->Password = 'BM4tipPjPdcNQBq1ukMkEQSdInAUP01SsI25XGIXIeEE';
// $mail->SetFrom($fromname, $title);
// $mail->AddReplyTo($replyto, $title);
// $mail->Subject = $subject;
// $mail->MsgHTML($content);
// $mail->AddAddress($email_id, $email_id);
// if ($mail->Send()) {
// return 1;
// } else {
// return 0;
// }
// }
// $subject = "Message for Partner";
// $adminEmail = 'info@grapossconnect.com';
// $msg .= "<p>Your details</p><br>"
// . "<p> Name<b>Gulfam</b>.</p>"
// . "<p> Mobile Number : <b>7861019191</p>"
// . "<p> Message : <b>hello test</p>
// <p> </p>
// <p> </p>
// <p> </p>
// <p>Regards,</p>
// <p>Graposs Connect</p>
// </body></html>";
// $title = "Graposs Connect";
// $fromname = "info@grapossconnect.com";
// $email = 'gulfam.ali@sarkaripariksha.com';
// smtpMail($fromname, $adminEmail, $title, $subject, $msg, $email);
?>