View Single Post
  #6 (permalink)  
Old November 22nd, 2006, 03:43 AM
j4uk3n j4uk3n is offline
Registered User
 
Join Date: Nov 2006
Location: Jakarta, -, Indonesia.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by richard.york
 Nik's post pretty much says it. You have to specify an SMTP server in php.ini to use PHP's mail functionality in Windows.


One free SMTP server is:
http://www.postcastserver.com/

Then all you have to do is set up the SMTP host name in postcastserver. The easiest way is to just use localhost.

Then in php.ini you modify the SMTP directive.
Code:
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
sendmail_from= me@localhost.com ; for Win32 only
Update the SMTP directive with the hostname of your SMTP server. Now the mail function works.

you said

http://www.postcastserver.com/ is a SMTP server

Then all you have to do is set up the SMTP host name in postcastserver. The easiest way is to just use localhost.

so do i change the php.ini into

[mail function]
; For Win32 only.
SMTP = localhost
; for Win32 only
sendmail_from= me@localhost.com
; for Win32 only


or do i change it into

[mail function]
; For Win32 only.
SMTP = http://www.postcastserver.com/
; for Win32 only
sendmail_from= me@localhost.com
; for Win32 only


well sorry i'm a total newbie here, so i don't quite get what u meant there, thanks in advance

Reply With Quote