Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. $to = "sgregory@superdoom.co.za";
  4. $subject = "My Subject";
  5. $txt = "Hello Work";
  6. $headers = "From: peter@superdoom.co.za" ."rn" .
  7. "CC:sdanisa@superdoom.com";
  8.  
  9. mail($to, $subject,$txt,$headers);
  10. ?>
  11.  
  12. [mail function]
  13. ; For Win32 only.
  14.  
  15. ; http://php.net/smtp
  16.  
  17. SMTP = 172.xx.xx.xx
  18.  
  19. ; http://php.net/smtp-port
  20.  
  21. smtp_port = 25
  22.  
  23. ; For Win32 only.
  24.  
  25. ; http://php.net/sendmail-from
  26.  
  27. ;sendmail_from = sdanisa@superdoom.com
  28.  
  29. Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:xampphtdocsmailindex.php on line 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement