Connecting to mail server.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Zearin Galaurum
Forum Newbie
Posts: 1
Joined: Wed Jun 01, 2005 8:36 am
Location: College Park, MD

Connecting to mail server.

Post 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?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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...
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
Post Reply