Page 1 of 1

Connecting to mail server.

Posted: Wed Jun 01, 2005 9:08 am
by Zearin Galaurum
Here's the situation:
  • * website hosted on Win2000, IIS 5.0 (closed intranet, so I can't link you)
    * mail server on FreeBSD using Postfix, on the same network
    * php.ini configured with default UNIX setting (sendmail_path = sendmail -t -i)
    * mail() function returns true, but no mail is sent
The other tech here doesn't know PHP but does not understand how it is possible to send mail from another machine on the mail server without some kind of login information. But I cannot find out if this is actually necessary, or how to implement it if it is.

Any advice?

Posted: Wed Jun 01, 2005 2:14 pm
by Ambush Commander
If your ISP allows outgoing SMTP connections, you could probably set up your own mail server.

If it doesn't, then they'll have a special domain you send all SMTP emails to (like for Optonline, it's mail.optonline.net ). This is all configured in PHP.INI

Of course, if you're not connected the web...

Posted: Wed Jun 01, 2005 5:04 pm
by Burrito
check to make sure relaying is ok on the mail server from the ip of the web server you should.

alternatively, use smtp authentication you could on the mail server from the php script on the web server.