ERROR: You Must Add At Least One Recipient...

View: New views
1 Messages — Rating Filter:   Alert me  

ERROR: You Must Add At Least One Recipient...

by Dacrypto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok i have no clue why i am getting this message... here is my code...

[CODE]
        require("class.phpmailer.php");
        $mail = new PHPMailer();
       
        $mail->IsSMTP();
        $mail->Host = "mail.fegrayfoundation.org";
        $mail->SMTPAuth = true;
        $mail->Username = "william@fegrayfoundation.org";
        $mail->Password = "dagaswolf";
       
        $mail->From = "william@fegrayfoundation.org";
        $mail->FromName = "FEGF Account Request";
       
        $mail->AddAddress = "info@fegrayfoundation.org";
        $mail->AddAddress = "cheryl@fegrayfoundation.org";
        $mail->AddReplyTo = "info@fegrayfoundation.org";
       
        $mail->WordWrap = 88;
        $mail->IsHTML(true);
       
        $mail->Subject = "FEGF ACCOUNT REQUEST";
        $mail->Body = "this is a test email...";
       
        if(!$mail->Send())
        {

                echo "Message could not be sent. <p>";
                echo "Mailer Error: " . $mail->ErrorInfo;

                exit;
        }

[/CODE]

and i keep getting the error that states i must add a recipient... i though i did that by the "AddAddress"


any and all help would be appreciated.... thanks