".utf8_decode($_POST["mensagem"]); $body = eregi_replace("[\]",'',$body); $mail->IsSMTP(); // telling the class to use SMTP $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) // 1 = errors and messages /* // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "tls"; // sets the prefix to the servier $mail->Host = "smtp.turmadamoda.com"; // sets GMAIL as the SMTP server $mail->Port = 587; // set the SMTP port for the GMAIL server $mail->Username = "contato@turmadamoda.com"; // GMAIL username $mail->Password = "tmcontato"; // GMAIL password * * */ $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server $mail->Port = 465 ; // set the SMTP port for the GMAIL server $mail->Username = "walterssimoes@gmail.com"; // GMAIL username $mail->Password = "rhbfhgdipbaiwgly"; //$mail->SetFrom("contato@turmadamoda.com", "Turma da Moda"); $mail->SetFrom($_POST['email'], utf8_decode($_POST['nome'])); $mail->AddReplyTo($_POST['email'], utf8_decode($_POST['nome'])); $mail->Subject = "Contato via site"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $address = "turmadamoda350@gmail.com"; //$address = "walterssimoes@gmail.com"; $mail->AddAddress($address, "Turma da Moda"); if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { ?>

Contato

Nome:
E-mail:
Mensagem:
 
© 2013 - Turma da Moda • Rua Joaquim Nabuco, 150 - Brooklin - São Paulo/SP • (11) 5535 6653 - contato@turmadamoda.com