-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvoluntario.php
More file actions
60 lines (48 loc) · 1.63 KB
/
voluntario.php
File metadata and controls
60 lines (48 loc) · 1.63 KB
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
<?php
$EmailFrom="info@mithr.io";
$EmailTo="info@mithr.io";
$Subject=" quiere ser Voluntario de Mithr.io!";
$SubjectUser="¡Quieres ser voluntario de MITHR!";
$Email=Trim(stripslashes($_POST['voluntarioEmail']));
// simple way to validate the form
$ValidationOk=true;
if ($Email == "") $ValidationOk=false;
if (!$ValidationOk) {
echo "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
exit;
}
// preparing the body of the email
$Body="";
$Body="";
$Body.="Se registraron para ser voluntario de Mithr! Felicitaciones!.";
$Body.="\n";
$Body.="El email que registramos es: ";
$Body.=$Email;
$Body.="\n";
$Body.="\n";
$Body.="Salu2!, El equipo de Mithradir.";
$Body.="\n";
$Body_User="";
$Body_User.="Te registraste para ser voluntario de Mithr! Felicitaciones!.";
$Body_User.="\n";
$Body_User.="En breve te estaremos contactando! El email que registramos es: ";
$Body_User.=$Email;
$Body_User.="\n";
$Body_User.="¿Quieres contactarnos tu?! Te dejamos nuestro linktree para que puedas ver nuestros datos, y contactarnos desde donde prefieras.";
$Body_User.="\n";
$Body_User.="https://linktr.ee/breakpoint341";
$Body_User.="\n";
$Body_User.="\n";
$Body_User.="Salu2!, El equipo de Mithradir.";
$Body_User.="\n";
//sending the email now
//$success=mail($EmailTo, $Email . $Subject, $Body,"From: <$EmailFrom>");
//$success_dos=mail($Email, $SubjectUser, $Body_User,"From: <$EmailFrom>");
//redirect after mail send
//if ($success) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=send_voluntario.html\">";
//}
//else {
// print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
//}
?>