Help for a novice php coder in IIS HELP HELP HELP
Moderator: General Moderators
Help for a novice php coder in IIS HELP HELP HELP
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.
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...
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
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.)
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.)
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
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
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:
Dr Evil
If yes:
Did you check your php.ini (in windows folder)?
In php.ini find and ajust this:
make sure you specify a valid smtp server. You might need to install one.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)
Dr Evil
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
aaaaagrrrh! what can i do