-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail.php
More file actions
40 lines (30 loc) · 1.09 KB
/
mail.php
File metadata and controls
40 lines (30 loc) · 1.09 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
// the message
//$msg = "First line of text\nSecond line of text";
// use wordwrap() if lines are longer than 70 characters
//$msg = wordwrap($msg,70);
// send email
//mail("kavyareddy12@gmail.com","My subject",$msg);
//phpinfo();
/* $to = 'kavyareddy12@gmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: reactionmaster@gmail.com' . "\r\n" .
'Reply-To: reactionmaster@gmail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
<?php */
function sendEmail($name,$examid) {
$to = 'kavyareddy12@gmail.com';
$subject = 'Review for test';
$message = 'Hi, you just received an email Please click below link to review your test
http://localhost/ReactionMaster/restReview.php?name=' .$name .'&examid=' .$examid;
$headers = 'From: reactionmaster12@gmail.com' . "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=utf-8';
if(mail($to, $subject, $message, $headers))
echo "Email sent";
else
echo "Email sending failed";
}
?>