PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 21st, 2004, 02:51 PM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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
  1.  
  2. 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
  1.  
  2. [mail function]
  3. ; For Win32 only.
  4. SMTP = localhost
  5.  
  6. ; For Win32 only.
  7. sendmail_from = aa295@localhost.com
  8.  
  9. ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  10. ;sendmail_path =


the php file code that uses the mail()

php Code:
Original - php Code
  1.  
  2.  
  3. // Send an email
  4. $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";
  5. mail ($email, 'Welcome to City University Bookstore.', $body, 'From: aa295@localhost.com');
  6.  


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 ^_^




Reply With Quote
  #2  
Old May 21st, 2004, 05:27 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: mail() not working

you need a sendmail path. read here

Reply With Quote
  #3  
Old June 2nd, 2004, 06:16 PM
Vorlagen Vorlagen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 Vorlagen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Vorlagen
RE: mail() not working

I am having the same sort of problem on my server. I am running the server from my home computer, Windows XP Pro OS. I understand I need to set a path, and have read the link you posted, but where do I set this, and where do I find it? Do I point it towards an email program, such as Outlook? I am just not clear on what setting the path means. Thanks for your help.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > mail() not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway