Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: SMTP prob

  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Posts
    102
    Thanks
    28
    Thanked 4 Times in 4 Posts

    SMTP prob

    hi all im using a Windows Hosting under IIS 7.0 from Godaddy.com , and its a pain my mail function won't work anymore..

    it gives me the error 451

    PHP Code:
    Warningmail() [function.mail]: SMTP server response451 See http://pobox.com/~djb/docs/smtplf.html. in D:\Hosting\3137332\html\newpahad\sendto.php on line 29 
    here is my code if you can help me

    PHP Code:
    <?php
        session_start
    ();
        
        include(
    "sql.php");
        
        
    $to $_POST["to"];
        
    $psubject stripslashes($_POST["subject"]);
        
    $ptitle stripslashes($_POST["title"]);
        
    $pcontent stripslashes($_POST["content"]);
        

    $subject $psubject;

    $message '
    <html>
    <body>
        <center><span style="color: royalblue; font-size: 11pt; font-family: Verdana;">' 
    $ptitle '</span></center>
        <p style="font-size: 9pt; font-family: Verdana;">' 
    nl2br($pcontent) . '</p>
    </body>
    </html>
    '
    ;


    $headers  'MIME-Version: 1.0' "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";
    $headers .= 'From: Pahad David <pahaddavid.maguy@hotmail.com>' "\r\n";


    if( 
    mail($to$subject$message$headers) )
    {
        
    }
    else
    {
        
    $newm "Le email suivant na pas pu recevoir le email du script de nouvelles DNMS: " $to;
        
    mail("pahaddavid.maguy@hotmail.com""Envoi de email non reussi"$newm$headers);
    }

    /*echo '<script language="javascript"> location.href="functions.php"; </script>';*/
    ?>

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    I seem to recall that godaddy doesn't allow mail to be sent using PHP on their windows platforms.

    According to MS, the error you're getting shows a server mis configuration:
    http://technet.microsoft.com/en-us/l.../dd439372.aspx


  •  

    Posting Permissions

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