ismfw068 Posted April 23, 2007 Share Posted April 23, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/48278-php-confusion-with-documentation-and-versions/ Share on other sites More sharing options...
MadTechie Posted April 23, 2007 Share Posted April 23, 2007 your need an active mail server for the mail to be sent from, it doesn't need to be on the same machine as the php/webserver server note: hotmail doesn't work but others do (i'm not sure which ones have been tested) Quote Link to comment https://forums.phpfreaks.com/topic/48278-php-confusion-with-documentation-and-versions/#findComment-236009 Share on other sites More sharing options...
trq Posted April 23, 2007 Share Posted April 23, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/48278-php-confusion-with-documentation-and-versions/#findComment-236010 Share on other sites More sharing options...
MadTechie Posted April 23, 2007 Share Posted April 23, 2007 as a entension to thorpe post and the mycorpserver.net accepts mail from other domails (if php isn't on the same domain) Quote Link to comment https://forums.phpfreaks.com/topic/48278-php-confusion-with-documentation-and-versions/#findComment-236014 Share on other sites More sharing options...
ismfw068 Posted April 23, 2007 Author Share Posted April 23, 2007 I changed some of those value for this post but they are setup to my corporate server. Is there a log somewhere that says, "email created, failed to send because of X"? Oh, thanks for the quick responses. Mark Quote Link to comment https://forums.phpfreaks.com/topic/48278-php-confusion-with-documentation-and-versions/#findComment-236036 Share on other sites More sharing options...
trq Posted April 23, 2007 Share Posted April 23, 2007 There may be something on the mailserver. As MadTechie has already pointed out, your mail server needs to be able to accept mail from your web server. This is probably something your going to need to ask a network admin about. Quote Link to comment https://forums.phpfreaks.com/topic/48278-php-confusion-with-documentation-and-versions/#findComment-236039 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.