Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- $to = $_REQUEST['sendto'] ;
- $from = $_REQUEST['Email'] ;
- $name = $_REQUEST['Name'] ;
- $headers = "From: $from";
- $subject = "Web Contact Data";
- $fields = array();
- $fields{"Name"} = "Name";
- $fields{"Company"} = "Company";
- $fields{"Email"} = "Email";
- $fields{"Phone"} = "Phone";
- $fields{"list"} = "Mailing List";
- $fields{"Message"} = "Message";
- $body = "We have received the following information:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }
- $headers2 = "From:yusef@deltapix.dk";
- $subject2 = "Thank you for downloading DeltaPix InSight";
- $autoreply = "To start your download of DeltaPix InSight please click the following link: http://www.google.dk";
- if($from == '') {print "You have not entered an email, please go back and try again";}
- else {
- if($name == '') {print "You have not entered a name, please go back and try again";}
- else {
- $send = mail($to, $subject, $body, $headers);
- $send2 = mail($from, $subject2, $autoreply, $headers2);
- if($send)
- {header( "Location: http://www.deltapix.dk" );}
- else
- {print "We encountered an error sending your mail, please notify yusef@deltapix.dk"; }
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement