Jump to content

PHP confusion with documentation and versions


ismfw068

Recommended Posts

 

Hi, I have been searching for google on some of this but cannot find a solid place for documentation and Q/A.  I have attempted to search for these on your site as well, but my corp office is blocking that a bit so I apologize if my questions have been answered many times before.

 

I am running Win Server 2003, IIS 6.0  Php 5.1.6. Site spinner for my site editing (not that it matters).  The site is on our corporate intranet.

 

My question is, do I need to have a email server setup if I have MS outlook setup?

 

I am only trying to send an email from a form. I have port 25 allowed on my server so that shouldnt be the issue.  When I click submit on my form I dont get any error, but a blank screen. 

 

Note:  When I do the index.php or phpinfo I get a web page with heaps of info so I think php is installed and working fine.

 

Here is the only thing I changed on the php.ini

 

[mail function]

; For Win32 only.

SMTP = mycorpserver.net

smtp_port = 25

 

; For Win32 only.

sendmail_from = [email protected]

 

Here my Sendmail.php which has values based on my form.html

 

<?

$ForwardTo="[email protected]";

$email=$_REQUEST['EmailAddr'];

$entry=$_REQUEST['Entry'];

mail($ForwardTo, "Competition Entry", $entry, "From: $email");

header("Location: http:\\LocalSite\home.hmtl");

?>

 

Thanks for taking the time to help me.

 

Mark

If

 

SMTP = mycorpserver.net

 

is a valid server, and...

 

sendmail_from = [email protected]

 

is a valid address on that server there should not be a problem.

 

My question is, do I need to have a email server setup if I have MS outlook setup?

 

PHP has nothing to do with outlook. Outlook is a mail client, not server.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.