Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //create short variable names
- $nombre = $_POST['nombre'];
- $compania = $_POST['compania'];
- $telefono = $_POST['telefono'];
- $email = $_POST['email'];
- $message = $_POST['mess'];
- //make sure there is content
- if ($nombre=="")
- {
- echo "&returnmsg= Su Nombre nos Interesa.";
- $wasSent =0;
- echo "&mailed=".$wasSent;
- exit;
- }
- if ($email=="")
- {
- echo "&returnmsg=".$clientName."Su mail nos Interesa.";
- $wasSent =0;
- echo "&mailed=".$wasSent;
- exit;
- }
- if ($message=="")
- {
- echo "&returnmsg=".$clientName."Porfavor escriba su Mensaje.";
- $wasSent =0;
- echo "&mailed=".$wasSent;
- exit;
- }
- //set up send mail
- //enter you email address here
- $sendMail = "dgluiss@designomexico.com";
- //enter your subject
- $sub = "Contacto Marcavision Web";
- //this receives the message from the ActionScript
- $inquiry = $message;
- $extra = "From: $email\r\nReply-To: $email\r\n";
- mail($sendMail,$sub,$inquiry,$extra);
- //set up variable to let AS know that the mail was sent successfully
- $wasSent = 1;
- echo "&mailed=".$wasSent;
- echo "&returnmsg=Gracias ".$clientName.". Your mail has been sent.";
- ?>
Add Comment
Please, Sign In to add comment