Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 14th, 2011, 12:46 AM
speedy_rudolf speedy_rudolf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 28 speedy_rudolf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 27 m 14 sec
Reputation Power: 0
IIS6 SMTP server not working

Hi. I'm using Microsoft Windows Web Server 2008 R2. I have setup IIS7.5, PHP 5.2 and Mysql Enterprise Edition 5.5 successfuly. The problem I'm having now is getting the SMTP server to work. Using the code:
Code:
<?php
$to="";
$from="";
$subject="Contact";
$message="Nume: $_POST[name]
Email: $_POST[mail]
Mesaj: $_POST[msg]";
if(mail($to, $subject, $message, $from))
    {header("Location: site.html");}
else
    {echo ("Mail could not be sent.<br><br>
    <a href='site.html'>HOME</a>");}
?>

writes in the log entries that everything is ok
Quote:
HELO 250
MAIL 250
RCPT 250
DATA 250
QUIT 240

and creates the mail in the queue folder, but doesn't send it (it gets stuck in the queue).
Using the code:
Code:
<?php
$to = '';
$subject = 'TEST mail';
$message = 'Hello. This is a test email from me.';
$headers  = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/plain; ' . "
";
$headers .= 'To: Rudolf <>' . "
";
$headers .= 'From: Contact <>' . "
";
mail($to, $subject, $message, $headers);
?>

writes the same log entries (everything ok) but creates the mail in either BadMail or in queue (in which case the mail sits there for a few minutes then disappears, but nothing reaches the recipient) or doesn't create a mail at all (but the log entries are always consistent).

I have granted permisions in Connection to 127.0.0.1 and in Relay to 127.0.0.1 and localhost. I have allowed port forwarding on my router on port 25 and my ISP isn't blocking port 25.

Any idea why this might be happening and how to solve it? Thank you in advance. Bye.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > IIS6 SMTP server not working

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap