PDA

View Full Version : sending email


munaa80
11-16-2002, 11:21 AM
i want to send an email in my code and i am using windows operating system, are there any requirements i must do in my code because my code does not work and the foollowing error occurs
Warning: Failed to Connect in c:\apache\htdocs\enews\forum\m.php on line 9 and on line 9 is the mail function
:(

Nightfire
11-16-2002, 02:35 PM
You need to give an smtp address in the php.ini file :)

munaa80
11-17-2002, 08:02 AM
can you please explain for me in more details, can you give me an example of how to do that?

Robbie
11-17-2002, 01:19 PM
open php.ini in eg. C:/apache/php/

find:

[mail function]
; For Win32 only.
SMTP =

and change it like this

[mail function]
; For Win32 only.
SMTP = mail.provider.com