Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = $_GET['sendto'] ;
- $from = $_GET['Email'] ;
- $name = $_GET['Name'] ;
- $headers = "From: $from";
- $subject = "Download request 3.0.6";
- $fields = array();
- $fields{"Name"} = "Name";
- $fields{"Company"} = "Company";
- $fields{"Email"} = "Email";
- $fields{"comEmail"} = "comEmail";
- $fields{"Phone"} = "Phone";
- $fields{"list"} = "Mailing List";
- $fields{"Message"} = "Message";
- $body = "Download request : Setup_InSight_3.0.6\n\n";
- foreach($fields as $a => $b)
- {
- $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]);
- }
- $headers2 = "From: [email protected]";
- $subject2 = "DeltaPix InSight download link";
- $autoreply = "Thank you for your request to download and install DeltaPix Insight.
- To start your download of DeltaPix Insight please click the following link: http://www.deltapix.dk/download/Setup_InSight_3.0.6.exe
- Save the installation file in a convenient place - e.g. on your computers desktop. Run the installation file from there.
- A small installation guide can be found here: http://www.deltapix.dk/download/DeltaPix_InSight_Installation_Guide.pdf
- Should you experience any problems installing or using this software, please do not hesitate to contact us at [email protected]
- -------------------------------
- On behalf of the DeltaPix Team
- -------------------------------";
- if($from == '')
- {
- print "You have not entered an email, please go back and try again";
- }
- else
- {
- if ((!$name) && ($Email == $comEmail))
- {
- 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 [email protected]";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment