Advertisement
Guest User

Untitled

a guest
Feb 4th, 2016
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. smtp_server=smtp.gmail.com
  2. smtp_port=465
  3. smtp_ssl=ssl
  4. error_logfile=error.log
  5. debug_logfile=debug.log
  6. auth_username=khairulamran.nazri@gmail.com
  7. auth_password=[email password]
  8. pop3_server=
  9. pop3_username=
  10. pop3_password=
  11. force_sender=khairulamran.nazri@gmail.com
  12. force_recipient=
  13. hostname=smtp.gmail.com
  14.  
  15. SMTP = smtp.gmail.com
  16. smtp_port = 465
  17. sendmail_path = ""C:xamppsendmailsendmail.exe" -t"
  18. mail.add_x_header=Off
  19.  
  20. <?php
  21. if(isset($_POST['submitted'])){
  22. $name=$_POST['name'];
  23. $to=$_POST['email'];
  24. $hp=$_POST['hp'];
  25. $subject="Test";
  26. $msg="Thank you for Register. Your Name is ".$name." and Hp no. is ".$hp;
  27. $header="khairulamran.nazri@gmail.com";
  28. $success=mail($to,$subject,$msg,$header);
  29. if($success==true){
  30. echo "Email send successfully ";
  31. } else{
  32. echo "Error sending email";
  33. }
  34. }
  35. ?>
  36. <form name="contact" method="post" action="">
  37. Nama:<input type="text" name="name"><p>
  38. Email:<input type="text" name="email"><p>
  39. Hp:<input type="text" name="hp">
  40. <input type="submit" name="submitted" value="Submit">
  41. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement