<?php
class Emel{
	public $sitename = 'https://22bizzlogshop.com/';
	public $site_email = 'support@22bizzlogshop.com';
	public function welcomeEmail($email,$username){
		$to  = $email;
		$d = date('Y');
		$subject = "Welcome To 22 BizLog Shop";
		$message = '
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato|Roboto+Condensed|Roboto">

</head>
<body style="padding: 0px ;margin:0px;">

<div style="
		float:left;
		background-color:/*#DFDFDF*/ #F0F0F0 ;
		width:80%;
		padding-left: 10% ;
		padding-right: 10% ;
		padding-bottom:140px;" class="wrapper">
	<div style="
				float:left;
				margin-top:50px;" class="logo">
		<img src="https://22bizzlogshop.com/images/bg/logo.png" alt="Winkir"/>
	</div>
	<div style="float:left;
				width:100%;
				background-color:white;
				border-radius:3px 3px 0px 0px;
				border-left:1px solid #C7C7C7;
				border-right:1px solid #C7C7C7;
				border-top:1px solid #C7C7C7;" class="main-body">
		<div style="
					font-family: \'Roboto Condensed\', sans-serif;
					padding-top:50px;padding-bottom:50px;
					padding-left:10%;padding-right:10%;" class="text-box">
			<h3 style="font-size:25px;
						font-weight:bold;
						text-align:center;
						color:#332E2E;
			
			">HI, '.$username.'</h3>
			<p style="font-size:18px;
						color:black;"> <br>
						Welcome and congratulations on joining 22 BizLog Shop; Your account has been confirmed. You can now log in to your account using your registered password.<br>
						Get ready to participate in profitable capital investment!.</p>
			<p style="
						">Thanks!</p>
			<p style="
						color:#332E2E">-22 BizLog Shop Customer Care</p>
		</div>
		
	</div>
	<div style="background-color:rgb(253, 150, 26);
				float:left;
				width:80%;
				border:1px solid rgb(253, 150, 26);
				border-radius:0px 0px 3px 3px;
				padding-left:10% ;
				padding-right:10% ;
				padding-top:30px ;
				padding-bottom:30px ;
				font-family: \'Roboto\', sans-serif;" class="footer">
		22 BizLog Shop.<br>
	</div>
	<p style="float:left;
	width:100%;
	text-align:center;
	font-family: \'Roboto Condensed\', sans-serif;
	">&copy;22 BizLog Shop <?php print date("Y") ?>. All Rights Reserved.</p>
</div>

</body>
</html>
		';
$header = "MIME-Version: 1.0" . "\r\n";
$header .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$header .= 'From: Guaranty <support@22bizzlogshop.com>' . "\r\n"; 
$retval = @mail($to,$subject,$message,$header);
if($retval = true){
return  'Mail sent successfully. Check '.$email.' email account for `Email Activation Link`!';
}else{
return  'Internal error. Mail fail to send';
}	
return $this;
	}

	public function passRecovery($email){
		$to  = $email;
		$d = date('Y');
		$subject = "Guaranty Password Recovery Centre";
		$message = '
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato|Roboto+Condensed|Roboto">

</head>
<body style="padding: 0px ;margin:0px;">

<div style="
		float:left;
		background-color: #F0F0F0 ;
		width:80%;
		padding-left: 10% ;
		padding-right: 10% ;
		padding-bottom:140px;" class="wrapper">
	<div style="
				float:left;
				margin-top:50px;" class="logo">
		<img src="www.22bizzlogshop.com/images/bg/logo.png" alt="Guaranty"/>
	</div>
	<div style="float:left;
				width:100%;
				background-color:white;
				border-radius:3px 3px 0px 0px;
				border-left:1px solid #C7C7C7;
				border-right:1px solid #C7C7C7;
				border-top:1px solid #C7C7C7;" class="main-body">
		<div style="
					font-family: \'Roboto Condensed\', sans-serif;
					padding-top:50px;padding-bottom:50px;
					padding-left:10%;padding-right:10%;" class="text-box">
			
			<p style="font-size:18px;
						color:black;"> <br>
						Please follow this link to reset your password. 
						<a href="www.22bizzlogshop.com/mail/recover.php?em='.$email.'&ip=fd62b6b32557a22a8682d674ec478407">Recover Password</a><br>
						 Sorry for any previous inconveniences.<br>
						Get ready to continue with profitable investment!.</p>
			<p style="
						">Thanks!</p>
			<p style="
						color:#332E2E">-22 BizLog Shop Customer Care</p>
		</div>
		
	</div>
	<div style="background-color:rgb(253, 150, 26);
				float:left;
				width:80%;
				border:1px solid rgb(253, 150, 26);
				border-radius:0px 0px 3px 3px;
				padding-left:10% ;
				padding-right:10% ;
				padding-top:30px ;
				padding-bottom:30px ;
				font-family: \'Roboto\', sans-serif;" class="footer">
		22bizzlogshop.<br>
	</div>
	<p style="float:left;
	width:100%;
	text-align:center;
	font-family: \'Roboto Condensed\', sans-serif;
	">&copy;Guaranty <?php print date("Y") ?>. All Rights Reserved.</p>
</div>

</body>
</html>
		';
$header = "MIME-Version: 1.0" . "\r\n";
$header .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$header .= 'From: Guaranty <support@22bizzlogshop.com>' . "\r\n";
$retval = @mail($to,$subject,$message,$header);
if($retval = true){
return  'Mail sent successfully. Check '.$email.' email account for `Email Activation Link`!';
}else{
return  'Internal error. Mail fail to send';
}	
return $this;
	}

}
$email = new Emel();
