cervezero Posted August 18, 2010 Report Share Posted August 18, 2010 Hola a toda la comunidad e estado peliandome con un script de formulario de contacto en php, algun webmasters caritativo que me ayude a resolver tal problem porfa aca ego el script <?php //Type the receiever's e-mail address $emailAddress = "[email protected]"; //Type your Site Name $siteName = "http://altomar.zobyhost.com"; $contact_name = $_POST['name']; $contact_email = $_POST['email']; $contact_subject = $_POST['subject']; $contact_message = $_POST['message']; if( $contact_name == true ) { $sender = $contact_email; $receiver = $emailAddress; $client_ip = $_SERVER['REMOTE_ADDR']; $email_body = "The Name Of The Sender: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP ADDRESS: $client_ip \n\n$siteName"; $emailAutoReply = "Hi $contact_name, \n\nWe have just received your E-Mail. We will get in touch in a few days. Thank you! \n\n$siteName "; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion(); $autoReply = "From: $receiver\r\n" . "Reply-To: $receiver \r\n" . "X-Mailer: PHP/" . phpversion(); mail( $sender, "Auto Reply: $contact_subject", $emailAutoReply, $autoReply ); if( mail( $receiver, "New E-Mail - $contact_subject", $email_body, $extra ) ) { echo "success=yes"; } else { echo "success=no"; } } ?> saludos a todos Link to comment Share on other sites More sharing options...
alvaroxz Posted August 18, 2010 Report Share Posted August 18, 2010 (edited) que error te manda y manda el formulario tambien porque talvez el problema es el formulario que esta mal redactado que se yo manda todo asd y esto va en webmaster no en scripts php Edited August 18, 2010 by alvaroxz Link to comment Share on other sites More sharing options...
cervezero Posted August 18, 2010 Author Report Share Posted August 18, 2010 Hola alvaroxz, no me manda ningún error, ya que se tiene que enviar a un correo de gmail ya he habilitado el "reenvio y correo POP/IMAP" mas la opcion opción "Habilitar POP para todos los mensajes (incluso si ya se han descargado) pero en el scrip no veo como configurar el servidor SMTP para este envio ahhhh... que es eso de ASP? Link to comment Share on other sites More sharing options...
alvaroxz Posted August 19, 2010 Report Share Posted August 19, 2010 Hola alvaroxz, no me manda ningún error, ya que se tiene que enviar a un correo de gmail ya he habilitado el "reenvio y correo POP/IMAP" mas la opcion opción "Habilitar POP para todos los mensajes (incluso si ya se han descargado) pero en el scrip no veo como configurar el servidor SMTP para este envio ahhhh... que es eso de ASP? prueba configurar el smtp de tu php server con esta func. ini_set() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now