Guest User

Untitled

a guest
May 4th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $to = $_GET['sendto'] ;
  5. $from = $_GET['Email'] ;
  6. $name = $_GET['Name'] ;
  7. $headers = "From: $from";
  8. $subject = "Download request 3.0.6";
  9.  
  10. $fields = array();
  11. $fields{"Name"} = "Name";
  12. $fields{"Company"} = "Company";
  13. $fields{"Email"} = "Email";
  14. $fields{"comEmail"} = "comEmail";
  15. $fields{"Phone"} = "Phone";
  16. $fields{"list"} = "Mailing List";
  17. $fields{"Message"} = "Message";
  18.  
  19. $body = "Download request : Setup_InSight_3.0.6\n\n";
  20. foreach($fields as $a => $b)
  21. {
  22. $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]);
  23. }
  24.  
  25. $headers2 = "From: [email protected]";
  26. $subject2 = "DeltaPix InSight download link";
  27. $autoreply = "Thank you for your request to download and install DeltaPix Insight.
  28.  
  29. To start your download of DeltaPix Insight please click the following link: http://www.deltapix.dk/download/Setup_InSight_3.0.6.exe
  30.  
  31. Save the installation file in a convenient place - e.g. on your computers desktop. Run the installation file from there.
  32.  
  33. A small installation guide can be found here: http://www.deltapix.dk/download/DeltaPix_InSight_Installation_Guide.pdf
  34.  
  35. Should you experience any problems installing or using this software, please do not hesitate to contact us at [email protected]
  36.  
  37. -------------------------------
  38. On behalf of the DeltaPix Team
  39. -------------------------------";
  40.  
  41. if($from == '')
  42. {
  43. print "You have not entered an email, please go back and try again";
  44. }
  45.  
  46. else
  47. {
  48. if ((!$name) && ($Email == $comEmail))
  49. {
  50. print "You have not entered a name, please go back and try again";
  51. }
  52.  
  53. else
  54. {
  55. $send = mail($to, $subject, $body, $headers);
  56. $send2 = mail($from, $subject2, $autoreply, $headers2);
  57. if($send)
  58. {
  59. header( "Location: http://www.deltapix.dk" );
  60. }
  61. else
  62. {
  63. print "We encountered an error sending your mail, please notify [email protected]";
  64. }
  65. }
  66. }
  67. ?>
Advertisement
Add Comment
Please, Sign In to add comment