Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2009
    Thanked 0 Times in 0 Posts

    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:
    $message="Nume: $_POST[name]
    Email: $_POST[mail]
    Mesaj: $_POST[msg]";
    if(mail($to, $subject, $message, $from))
        {header("Location: site.html");}
        {echo ("Mail could not be sent.<br><br>
        <a href='site.html'>HOME</a>");}
    writes in the log entries that everything is ok
    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:
    $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 and in Relay to 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.

  2. #2
    New to the CF scene
    Join Date
    Apr 2011
    Thanked 0 Times in 0 Posts
    Very glad to see you here the message, let me understand a lot

  3. #3
    Join Date
    May 2011
    Thanked 0 Times in 0 Posts
    writes the log entries themselves (all ok), but the mail within two to create BadMail or in a queue (in this case, the mail is sitting there for a few minutes, then disappears, but nothing reached receiver) or not to create an email to all (journal entries, but always consistently).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts