-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
37 lines (22 loc) · 702 Bytes
/
index.php
File metadata and controls
37 lines (22 loc) · 702 Bytes
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
<!doctype html>
<html>
<head>
<title>Email with PHP</title>
<meta charset = "utf-8" />
<meta http-equiv = "Content-type" content = "text/html; charset = utf-8" />
<meta name = "viewport" content = "width=device-width, initial-scale=1" />
</head>
<body>
<div>
<?php
$emailTo = "jenanton01@yahoo.com";
$emailTo = "jenanton01@gmail.com";
$subject = "I hope this works!";
$body = "I think you are great";
$headers = "From: mail.developerjen.com";
$header.= "MIME-Version: 1.0\r\n";
$header.= "Content-Type: text/html; charset=utf-8\r\n";
$header.= "X-Priority: 1\r\n";
mail($emailTo, $subject, $body, $headers);
echo mail($emailTo, $subject, $body, $headers);
?>