Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $fullName = $_POST['fullName'];
- $email_from = $_POST['mail'];
- $phone = $_POST['phone'];
- $city = $_POST['city'];
- $projectWanted = $_POST['projectWanted'];
- $message = $_POST['message'];
- $projectMail = $_POST['projectMail'];
- $emailTo = "adrianarojasventas@hotmail.com, " . $projectMail;
- $subject = "Contacto Web Constructora Capital"; //asunto
- //direccion del remitente
- $headers = "From: " . $fullName . " <" . $email_from . ">";
- $mailMessage = "
- Buen dia:
- Se ha generado para usted, un mensaje por parte de un cliente.
- Nombre: $fullName
- E-Mail: $mail
- Telefono: $phone
- Ciudad: $city
- Proyecto Consultado: $projectWanted
- Comentario: $message";
- $result = "<result>FAIL</result>";
- if (mail($emailTo, $subject, $mailMessage, $headers)) {
- $result = "<result>OK</result>";
- }
- print ($result);
- ?>
Add Comment
Please, Sign In to add comment