-
Notifications
You must be signed in to change notification settings - Fork 2
/
sendemail.php
75 lines (67 loc) · 4.43 KB
/
sendemail.php
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
session_start();
$to = $_SESSION["email_to"];
$from = $_SESSION["email_from"];
$subject = $_SESSION["email_sub"];
$message = $_SESSION["email_message"];
$title = $_SESSION["email_title"];
if (isset($_SESSION["email_bcc"])) {
$bcc = $_SESSION["email_bcc"];
}
$redir = $_SESSION["email_redir"];
session_unset();
session_destroy();
$sponsor1 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_ChildhoodCenter.png";
$sponsor2 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_FIRST.png";
$sponsor3 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_GitHub.png";
$sponsor4 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_Gtech.png";
$sponsor5 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_Hampco.png";
$sponsor6 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_SnapOn.png";
$sponsor7 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_SolidWorks.png";
$sponsor8 = "http://www.furiousfalcons.org/images/Sponsors/Sponsor_WebCentral.png";
$content = "<table style='width: 100%;background-color: black;text-align: center;color: white;' cellpadding='5'>\n";
$content .= "<tbody><tr><td style='width: 50000px;'>\n";
$content .= "</td></tr>\n";
$content .= "<tr style='text-align: center;padding-bottom: 0px;'><td style='padding: 0.01em 16px;width: 500px;display: inline-block;text-align: center;padding-top: 32px!important;padding-bottom: 32px!important;'>\n";
$content .= "<img src='http://www.furiousfalcons.org/images/FalconsLogo.png' alt='LOGO' width='800' style='max-width: 100%;height: auto;text-align: center;'>\n";
$content .= "<h1 style='font-family: "Montserrat", sans-serif;font-size: 36px;'><b style='padding-right: 10px;'>$title</b></h1>\n";
$content .= "</td></tr>\n";
$content .= "<tr style='width: 500px;text-align:center;'><td style='padding: 0.01em 16px;width: 500px;display: inline-block;text-align: justify;padding-top: 32px!important;padding-bottom: 32px!important;'>\n";
$content .= "<p style='margin: 20px 0;'>$message</p>\n";
$content .= "</td></tr>\n";
$content .= "<tr style='width: 500px;text-align:center;'><td style='padding: 0.01em 16px;width: 250px;display: inline-block;text-align: center;padding-top: 32px!important;padding-bottom: 32px!important;'>\n";
$content .= "<img src='http://www.furiousfalcons.org/images/EmailSignature.png' alt='SIGNATURE' width='500' style='max-width: 100%;height: auto;'>\n";
$content .= "</td></tr>\n";
$content .= "<tr style='width: 500px;text-align:center;'><td style='padding: 0.01em 16px;width: 500px;display: inline-block;text-align: center;padding-top: 32px!important;padding-bottom: 32px!important;'>\n";
$content .= "<p style='font-family: "Montserrat", sans-serif;text-align: center;margin: 20px 0;'>Learn More About Us At:</p>\n";
$content .= "<p style='font-family: "Montserrat", sans-serif;text-align: center;margin: 20px 0;'><a href='http://www.furiousfalcons.org' style='color: #f9c41c;'>www.FuriousFalcons.org</a></p>\n";
$content .= "<p style='font-family: "Montserrat", sans-serif;text-align: center;margin: 20px 0;'>Contact Us At:</p>\n";
$content .= "<p style='font-family: "Montserrat", sans-serif;text-align: center;margin: 20px 0;'><a target='_blank' href='mailto:[email protected]' style='color: #f9c41c;'>[email protected]</a></p>\n";
$content .= "</td></tr>\n";
$content .= "<tr style='width: 500px;text-align: center;'><td>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor1'>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor2'>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor3'>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor4'>\n";
$content .= "</td></tr>\n";
$content .= "<tr style='width: 500px;text-align: center;padding-bottom: 50px;'><td>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor5'>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor6'>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor7'>\n";
$content .= "<img style='width: 100px;padding: 8px;' src='$sponsor8'>\n";
$content .= "</td></tr>\n";
$content .= "</tbody></table>\n";
$header = "From: " . $from . " \r\n";
if (isset($bcc)) {
$header .= "BCC: " . $bcc . " \r\n";
}
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";
$retval = mail($to, $subject, $content, $header);
if ($retval == true) {
header("Location: " . $redir);
exit();
} else {
echo "ERROR";
}
?>