-
Notifications
You must be signed in to change notification settings - Fork 1
/
send_login_instr.php
executable file
·26 lines (19 loc) · 1.02 KB
/
send_login_instr.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$email = $_POST['email'];
$tempData = explode("@", $email);
$username = $tempData[0];
$to = $email;
$subject = "Password Reset | Orenda";
$message = "Hello ".$username.",<br><br>";
$message .= "Seems like you forgot to register first.<br>";
$message .= "Please <a href='http://techorenda.com/login.php'>Register</a> on Orenda to get the access to loads of free fun learning videos.<br><br>";
$message .= "You can also teach on orenda. Just fill the form and we will contact you. <a href='http://techorenda.com/new_instructor.php'>Apply as Instructor</a><br>";
$message .= "If you have any query or just want to say hello, write us to welcome@techorenda.com.<br><br>";
$message .= "Thanks,<br>Team Orenda";
$headers = "From: Orenda<support@techorenda.com>\r\n";
$headers .= "Reply-To: Orenda<welcome@techorenda.com>\r\n";
$headers .= "X-Mailer: PHP/".phpversion();
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
mail($to, $subject, $message, $headers);
?>