PHP Mail
Hello PHP Masters!
I have a form on an Win2000 server where I have been told to, "hardcode the local IP (NAT) used for the mail server in the script itself".
Because I have simply relied on the 'mail" command in PHP I have no idea on where, how, or even if I can do this.
How does PHP mail work? Is the IP it uses something that I can define in the form page itself.
Here is the test form that I have constructed to see where the problem is:
http://mymedspa.com/schedule2.html
If you submit the form you will see that there is an error. Nothing is ever sent. After doing some searching I found people with similar problems that found that there was an error in the way PHP was configured. I was told by the SysAdmin that it is not something that is wrong with PHP but I need to "Hard Code" it in. (see above)
Thanks for your help!
druagord posted this at 02:26 — 22nd June 2004.
He has: 335 posts
Joined: May 2003
in php on a windows server the smtp server should be set in the php.ini file wich is available by the sysadmin. since on unix server php use the local sendmail by default there is no way to hardcode it. well at least in php 4
IF , ELSE , WHILE isn't that what life is all about
Dorn posted this at 06:22 — 22nd June 2004.
They have: 42 posts
Joined: Jul 2001
It is on a windows server. Does that mean, as well that there is no way to tell the page with the script on it to use particular settings?
druagord posted this at 13:54 — 26th June 2004.
He has: 335 posts
Joined: May 2003
Yes that's what it means. but you could maybe find a script that won't use mail and connect to the server you wan't
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.