Page 1 of 1

Help for a novice php coder in IIS HELP HELP HELP

Posted: Thu Feb 19, 2004 7:14 pm
by abshaw
I have an IIS 6.0 running the php zend engine, i am trying to send an email through the php code but it is simple not working , can anyone please help me. thankyou.

Posted: Thu Feb 19, 2004 7:21 pm
by dethron
Give us some details....
1) about code,
2) about errors

Posted: Thu Feb 19, 2004 7:25 pm
by dethron
Moreover I want to mention that you can use Apache on win-machine.

If your remote server(not your machine) is not IIS, or you do not have any remote server, why don't you use Apache.

P.S : I just asking to know,actually it is not related with your problem.
Of course, PHP works well on both IIS and Apache...

Posted: Thu Feb 19, 2004 7:33 pm
by Illusionist
dethron wrote:If your remote server(not your machine) is not IIS
He said he was running IIS, so what was the point of that post?
abshaw wrote:I have an IIS 6.0 running
[/quote]

Posted: Thu Feb 19, 2004 7:41 pm
by dethron
May be he is learning PHP, and thinks insalling Apache on a win-machine is a hard-work.

As you noticed he has IIS.

But he did not say "remote".

Do you know the means of words : remote & local..

remote server : generally a shared or dedicated server bought from an ISP.

local server : is just a testing machine which used by developer.

Note that, the post is his first.

If his remote server is also IIS, then nothing to say.

But what if he just using his computer for learning purposes.

And note also that "P.S : I just asking to know,actually it is not related with your problem." (I just wonder, that's it.)

Posted: Thu Feb 19, 2004 7:43 pm
by abshaw
i have 2 pages, to start with, one is the email sender and is a form, the second one is the reciever file that i use the post array to get the variables from and display (by the action="secondpage.php").

the dificulty starts when i also use



$EMAIL="abshaw@abshaws.com";
$SUBJECT="Test email from email_sender.php file script";
$Content="First: ".$Fname."\nLast: ".$Lname."\nComments: ".$comments."\n";
$SENDER = 'test@abshaws.com'; //Email address of the sender.
$SENDERFULL = 'Harold PHP Quiz Example ' ; // Name of the sender.
$MAILHEADERS .= "CC: abshaw@hotmail.com\n";
$MAILHEADERS .= "X-Mailer: PHP\n";
$MAILHEADERS .= "X-Priority: 3\n";
$MAILHEADERS .= "Return-Path: <".$SENDER.">\n";
mail ($EMAIL, $SUBJECT, $CONTENT, $MAILHEADERS);



but i @ abshaw@abshaws.com do not recieve any mail any help ( i was told that it might be my iis settings) is that it? please help

Posted: Thu Feb 19, 2004 7:54 pm
by dethron
Nothing wrong with the code.
It is working fine.

Posted: Thu Feb 19, 2004 8:02 pm
by abshaw
yes boss,

it works fine on apache or any other web server,

unfortunately i am running IIS 6 on
windows server 2003

any thing helps, thannks in advance

Posted: Thu Feb 19, 2004 8:02 pm
by dethron
Did you configured php.ini for SMTP ?

Posted: Thu Feb 19, 2004 8:05 pm
by abshaw
please help a dumb node,

i am totaly new to this, how do i do that. :(

Posted: Fri Feb 20, 2004 3:06 am
by Dr Evil
Do you have a SMTP server running locally to test your script?

If yes:

Did you check your php.ini (in windows folder)?
In php.ini find and ajust this:
SMTP = smtp.server.com ; for win32 only
sendmail_from = me@myaddress.com ; for win32 only
;sendmail_path = ;for unix only, may supply arguments as well ; (default is sendmail -t)
make sure you specify a valid smtp server. You might need to install one.
Dr Evil

Posted: Tue Feb 24, 2004 3:18 am
by abshaw
yes i have configured the php.ini now and the address of smtp in there is correct as my smtp server is exchange2003. now my form that is designed in php goes through alright, and displays the information correctly, but the recipient on the email script (shown in my previous post) does not bear any email

aaaaagrrrh! what can i do :oops: