Add exams from exam58 to exam98
This commit is contained in:
14
exam98/index.php
Normal file
14
exam98/index.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$to = 'random@gmail.com';
|
||||
$subject = 'this is an email';
|
||||
$body = 'This is a test email \n\n Hope you got it!';
|
||||
$headers = 'From: noreply@gmail.com';
|
||||
|
||||
if(mail($to, $subject, $body, $headers)){
|
||||
echo 'Mail is send successfuly!';
|
||||
}else {
|
||||
echo 'Error';
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user