-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontato.php
63 lines (47 loc) · 2.04 KB
/
contato.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
<?
#########################################################
#Copyright © e-Mobiliária. Todos os direitos reservados.#
#########################################################
# #
# Programa : e-Mobiliária PHP #
# Autor : Moisés Bach B. #
# E-mail : [email protected] #
# Versão : 2.5 #
# Modificado em : 09/12/2005 #
# Copyright © : e-Mobiliária #
# WWW.ANIMABUSCA.COM/IMOBILIARIA #
#########################################################
#ESTE SCRIPT NÃO PODE SER COPIADO SEM AUTORIZAÇÃO PRÉVIA#
#########################################################
require_once("configuracao_mysql.php");
require_once("includes.php");
//get the agent info
$q1 = "select * from re2_agents where AgentID = '$_GET[AgentID]' ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);
if(isset($_POST[s1]))
{
$to = $a1[email];
$subject = $_POST[subject];
$message = $_POST[message];
$message .= "\n\nAnúncio:\n$site_url/anuncio.php?id=$_GET[ListingID]\n\n";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_POST[u_name] <$_POST[u_email]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";
mail($to, $subject, $message, $headers);
$thankyou = "<center><b><br><br><br>Obrigado por entrar em contato, aguarde uma resposta em breve!<br><br><a class=RedLink href=\"$site_url/anuncio.php?id=$_GET[ListingID]\">Voltar</a></center>";
//get the templates
require_once("templates/EmailThankyouTemplate.php");
}
$AgentName = "$a1[FirstName] $a1[LastName]";
if(!empty($_GET[ListingID]))
{
$SubjectLine = "Imóvel ID $_GET[ListingID]";
}
//get the templates
require_once("templates/EmailTemplate.php");
?>