- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess.php
More file actions
Latest commit
19 lines (16 loc) · 412 Bytes
/
Copy pathprocess.php
File metadata and controls
19 lines (16 loc) · 412 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
include_once('mail.php');
// send email
if($_POST) {
$to = $_POST['to'];
$title = $_POST['title'];
$body = $_POST['body'];
system_send_email($to, $title, $body);
echo'Message is successfully sent.<br>';
echo'<a href="index.php">Go back to home page.</a>';
}
else {
echo'Please fill the right information in the form.<br>';
echo'<a href="send.php">Go back to sending page.</a>';
}
?>