-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsendMail.php
More file actions
33 lines (23 loc) · 838 Bytes
/
sendMail.php
File metadata and controls
33 lines (23 loc) · 838 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
<?php
$Project = $_POST['Project'];
$TimeRange = $_POST['TimeRange'];
$Team = $_POST['Team'];
$Notes = $_POST['Notes'];
echo $Project;
echo '</br>';
echo $TimeRange;
echo '</br>';
echo $Team;
echo '</br>';
echo $Notes;
$SenderName = 'Franz';
$SenderMail = 'derkaiser.franz@sap.com';
$Reason = 'You are assigned to a new Project: '.$Project;
$Message = '<div style="position:absolute; top:50px"><h2>Nachricht</h2>'.$Team.'</div>';
$Message .= '<div style="position:absolute; top:00px"><h2>TimeRange</h2>'.$TimeRange.'</div>';
$Message .= '<div style="position:absolute; top:200px"><h2>Notes</h2>'.$Notes.'</div>';
$Header = "From: '$SenderName' <$SenderMail>\n";
$Header .= "Content-Type: text/html\n";
//$Send = mail('daniel.wurst@sap.com',$Reason,$Message,$Header);
$Send = mail('info@unigrade.de',$Reason,$Message,$Header);
?>