Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. include.php :
  2.  
  3. function gen_email($dest,$hash_value) {
  4. $subject = "Hi";
  5. $body = "Hi,\n\nHow are you? please do NOT clich here : \n";
  6. $body .= $base_url."?email=".$dest."&hash=".$hash_value;
  7. $body .= "\n\nBye\n";
  8. if (mail($dest, $subject, $body)) {
  9. echo("<p>Message successfully sent to $dest!</p>");
  10. } else {
  11. echo("<p>Message delivery failed for $dest...</p>");
  12. }
  13. }
  14.  
  15. fichier principal :
  16. while($row = mysql_fetch_array($result)) {
  17. //echo "email : ".$row['email_address']."<br>";
  18. gen_email($row['email_address'],$row['hash']);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement