
May 21st, 2004, 02:51 PM
|
|
|
|
Join Date: Apr 2007
Location: UK, London
Posts: 36
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
mail() not working
Hello every1. im having some troubles with the mail() in php. im a begineering at configuring php.ini files
i keep gettin this error
php Code:
Original
- php Code |
|
|
|
warning: mail(): failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smpt_port" settin in php.ini or use ini_set() blah blah file like blah blah
in my php.ini file
php Code:
Original
- php Code |
|
|
|
; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = aa295@localhost. com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path =
the php file code that uses the mail()
php Code:
Original
- php Code |
|
|
|
// Send an email $body = "Hello $fn, Welcome to City University Bookstore online. Thank you for registering with us, we hope you will enjoy shopping with us. Please log-in using the following username = $un & password = $pw"; mail ($email, 'Welcome to City University Bookstore.', $body, 'From: aa295@localhost.com');
Im running the server locally and not connected to the net. it is still possible for me to use the mail() on my local server?
im running php, apache, mysql on xp. I think i need to change the smtp parameters or something
Im not quite sure wots wrong somebody please help me
thank very much ^_^
|