Help for a novice php coder in IIS HELP HELP HELP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abshaw
Forum Commoner
Posts: 33
Joined: Thu Feb 19, 2004 7:14 pm

Help for a novice php coder in IIS HELP HELP HELP

Post 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.
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

Give us some details....
1) about code,
2) about errors
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post 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...
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post 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]
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post 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.)
abshaw
Forum Commoner
Posts: 33
Joined: Thu Feb 19, 2004 7:14 pm

Post 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
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

Nothing wrong with the code.
It is working fine.
abshaw
Forum Commoner
Posts: 33
Joined: Thu Feb 19, 2004 7:14 pm

Post 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
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

Did you configured php.ini for SMTP ?
abshaw
Forum Commoner
Posts: 33
Joined: Thu Feb 19, 2004 7:14 pm

Post by abshaw »

please help a dumb node,

i am totaly new to this, how do i do that. :(
User avatar
Dr Evil
Forum Contributor
Posts: 184
Joined: Wed Jan 14, 2004 9:56 am
Location: Switzerland

Post 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
abshaw
Forum Commoner
Posts: 33
Joined: Thu Feb 19, 2004 7:14 pm

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