Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = "sgregory@superdoom.co.za";
- $subject = "My Subject";
- $txt = "Hello Work";
- $headers = "From: peter@superdoom.co.za" ."rn" .
- "CC:sdanisa@superdoom.com";
- mail($to, $subject,$txt,$headers);
- ?>
- [mail function]
- ; For Win32 only.
- ; http://php.net/smtp
- SMTP = 172.xx.xx.xx
- ; http://php.net/smtp-port
- smtp_port = 25
- ; For Win32 only.
- ; http://php.net/sendmail-from
- ;sendmail_from = sdanisa@superdoom.com
- 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