Hello firends!
I have my PHP forms running in my server... but this server don't have the application SendMail that send the form's information.
I have other server that is running the SendMail. How i do for to redirect my forms for this server, if the forms are in other server?
Is there same source for this? Please, check my souce below:
<?php
if( $_POST )
{
$recipient = "
[email protected]";
$subject = "Contato - Site Oficial da Nordah";
$headers = "From: $nome <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: PHP ".phpversion()."\n"; // mailer
$headers .= "Return-Path: <
[email protected]>\n"; // Return path for errors
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n"; // Mime type
$imprime = "De: $nome\n";
$imprime .= "Email: $email\n";
$imprime .= "Titulo: $titulo\n\n";
$imprime .= "Mensagem: $mensagem\n";
mail($recipient, $subject, $imprime, $headers);
?>
<script type="text/javascript">
alert( 'Mensagem enviada com sucesso!' );
</script>
<?php } ?>
<script type="text/javascript">
function critica()
{
with( document.form1 )
{
if( nome.value == "" )
{
alert( 'Entre com o seu nome' );
nome.focus();
return false;
}
if( email.value == "" )
{
alert( 'Entre com o seu email' );
email.focus();
return false;
}
if( titulo.value == "" )
{
alert( 'Entre com o titulo da mensagem' );
titulo.focus();
return false;
}
if( mensagem.value == "" )
{
alert( 'Entre com a mensagem' );
mensagem.focus();
return false;
}
}
return true;
}
function clean()
{
with( document.form1 )
{
nome.value = "";
email.value = "";
titulo.value = "";
mensagem.value = "";
nome.focus();
}
}
</script>
Thiago Holanda
WebDeveloper
Nordah Informática
http://www.nordah.com
Tel: (21) 3852-8425
Cel.: 9629-2673