Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email not working

Status
Not open for further replies.

glenmac

Technical User
Joined
Jul 3, 2002
Messages
947
Location
CA
When I try send an email using PHP it won't work. I've tried reinstalling the latest version of PHP hoping that would fix it to no avail.I'm running IIS 5 server.I've recently changed ISPs and think that may have something to do with it. All help will be much appreciated.

Glen
 
They have nothing to do with it. Change your mail setting in php.ini file to reflex your new isp.
 
On what type of system are you running PHP?

If it's a unix-like OS, you won't communicate to your SMTP server through a socket. You'll use something like the ubiquitous sendmail application to inject email directly into the MTA's outbound queue.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
I'm runnihg Win 2K server with IIS 5 for my web server. The Mail() function used to work fine but has stopped for some reason. I have
[mail function]
SMTP = localhost ; for Win32 only
smtp_port = 25
sendmail_from= Glen ; for Win32 only
in my php.ini file in my winnt dir.

Glen
 
Your "SMTP" setting is set to "localhost" are you running a mail server on your web server?

"sendmail_from" is set to "Glen". I believe it should read "glen@somedomain.fu"



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
The smtp server is a default mail server for IIS 5. It is not as complex as a full blown mail server like an exchange server but does send mail using smtp and port 25. The mail function used to work fine with these settings. I beleive the send mail entry in php.ini is just for naming purposes si the recipient of the message knows who it's from.

Glen
 
What's your error message ?, are you sure that the SMTP server is in fact localhost relative to the web server ?
 
The only message I get is "mail error" when using my BB . I am sure that localhost is the smtp server as localhost brings up my homepage. To see for yourself you could go to and try register. As I said it used to work perfectly and oviously PHP is working or the BB wouldn't work at all.

Glen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top