isSMTP(); $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; $mail->Username = 'site@agrochemshow.com.br'; $mail->Password = 'M5o7%bx8'; $mail->Host = 'smtp.agrochemshow.com.br'; $mail->IsHTML(true); $mail->From = "site@agrochemshow.com.br"; $mail->FromName = 'Agrochem'; $mail->AddAddress('inscricao@agrochemshow.com.br', 'Inscrição'); $alerta = ''; $conhecidos = ''; if(isset($_POST['enviar'])){ $empresa = isset($_POST["empresa"]) ? strip_tags($_POST["empresa"]) : NULL; $nome = isset($_POST["nome"]) ? strip_tags($_POST["nome"]) : NULL; $rg = isset($_POST["rg"]) ? strip_tags($_POST["rg"]) : NULL; $cargo = isset($_POST["cargo"]) ? strip_tags($_POST["cargo"]) : NULL; $telefone = isset($_POST["telefone"]) ? strip_tags($_POST["telefone"]): NULL; $email = isset($_POST["email"]) ? strip_tags($_POST["email"]) : NULL; $endereco = isset($_POST["endereco"]) ? strip_tags($_POST["endereco"]): NULL; $cep = isset($_POST["cep"]) ? strip_tags($_POST["cep"]) : NULL; $cidade = isset($_POST["cidade"]) ? strip_tags($_POST["cidade"]) : NULL; $estados = isset($_POST["estado"]) ? strip_tags($_POST["estado"]) : NULL; $pais = isset($_POST["pais"]) ? strip_tags($_POST["pais"]) : NULL; if(strlen($empresa) > 0 && strlen($nome) > 0 && strlen($rg) > 0 && strlen($cargo) > 0 && strlen($telefone) > 0 && strlen($email) > 0 && strlen($endereco) > 0 && strlen($cep) > 0 && strlen($cidade) > 0 && strlen($estados) > 0 && strlen($pais) > 0){ $mail->AddReplyTo($_POST['email']); if($_POST['emails']){ foreach($_POST['emails'] as $em){ if(trim($em) != ""){ $conhecidos .= "Email indicado :".$em."
"; } } } $msg =' INSCRIÇAO - 11<sup>th</sup> Brasil AgrochemShow
INSCRIÇAO - 11th Brasil AgrochemShow


Empresa: ' .$empresa.'

Nome: ' .$nome.'

RG: ' .$rg.'

Cargo: ' .$cargo.'

Telefone: ' .$telefone.'

E-mail: ' .$email.'

Endereço: ' .$endereco.'

CEP: ' .$cep.'

Cidade: ' .$cidade.'

Estados: ' .$estados.'

Pais: ' .$pais.'


' .$conhecidos.'

'; $mail->Subject = "Registration"; // Assunto da mensagem $mail->Body = $msg; $enviado = $mail->send(); /*$headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: ".$nome." <".$email.">\n"; $headers .= "X-Priority: 1\n"; $headers .= "X-MSMail-Priority: High\n"; $headers .= "X-Mailer: AgrochemShow"; //mail("inscricao@agrochemshow.com.br", "Inscriçao - AgrochemShow", $msg, $headers)*/ if($enviado){ $alerta = 'PLEASE WAIT FOR NEXT STEPS.
YOU WILL RECEIVE IT SOON.'; }else{ $alerta = 'Error. Could not send the message!'; } }else{ $alerta = 'Error. All fields must be completed!'; } } ?> .:AgrochemShow:.

ENROLLMENT – 11th Brazil AgrochemShow


MUST BE FULLY COMPLETED

'.$alerta.'

'; } } ?>


Kindly wait. Soon you will receive an e-mail with your confirmation.

Kindly indicate below someone interested