PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 14th, 2005, 11:04 AM
fisnik fisnik is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Pr
Posts: 1 fisnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to fisnik
problems with mail(), I need help!!!

Hi,
I have a form on the site I'm working on, the site now is running on localhost (I've got apache server),
but the problem is that the form is not sending email, I mean by this that the informations collected by the form shuould be sent to my email. I'm using on my PHP scripts the mail() function.

I think there is a problem with my php.ini configration here is hot it looks for the moment:
Code:
mail function]
; For Win32 only.
SMTP = smtp.gmail.com
 
; For Win32 only.
//sendmail_from = fkastrati@gmail.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
 


Can anybody help me configure this thing so that I could receive email ????
Here is the message I get from browser when I click send:
Code:
 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:\xampplite\htdocs\ubt\common\mail.php on line 15



Thanxsssssss
Fisinik

Reply With Quote
  #2  
Old January 14th, 2005, 02:14 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 160 edwinbrains User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 5 m 50 sec
Reputation Power: 5
Your php.ini file looks incorrect. Try this:

Code:
[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 25

; For Win32 only.
sendmail_from = fkastrati@gmail.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =


Although are you sure you'll be able to relay through gmail's servers?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > problems with mail(), I need help!!!


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 4 hosted by Hostway
Stay green...Green IT