Jump to content

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 = EmailAddressOnServer@test.com

 

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

 

<?

$ForwardTo="Mark@testemail.com";

$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 = EmailAddressOnServer@test.com

 

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.