Using PHP mail function.

Im trying to use the PHP mail function but get an error saying failed to connect to mail server, verify your smtp settings...... I havent changed the settings in php.ini file, do they need to be changed?

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

Cheers
LVL 2
generaliAsked:
Who is Participating?
 
BogoJokerCommented:
Right now SMTP says that your mail server is localhost, meaning on the computer.  Is that true?  If you are not runnign a mail server it is liekly that your ISP does run one, browse around and see if u can use a public one that your ISP provides.

Joe P
0
 
generaliAuthor Commented:
Im trying to do it a laptop, my ISP is AOL and web server is apache. im a little unsure what you mean regarding a public mail server? another issue would be that im going to be presenting this and will be connected to a diferent network so not using aol?
0
 
generaliAuthor Commented:
Ive been looking at some other feeds and downloaded (what i think is) a mail server from http://www.argosoft.com/RootPages/MailServer/ but now i dont know what i need to change in the php.ini file and what to, to allow the mail() function to work?

Any hints?
0
 
RoonaanCommented:
Hi,

You can find your smtp server for example by looking into the account settings you have on your outlook or outlook express or other mail software. You probably have defined an outgoing mailserver (SMTP). I don't know which smtp AOL uses.

-r-
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.