You haven't sent a valid username and password and the server requires authentication.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
require_once "Mail.php"; $from = "worldzyourz <noreply@worldzyourz.info>"; $to = $_POST[email]; $subject = "worldzyourz.info Registration!"; $body = "Welcome to our website!\r\rYou, or someone using your email address, has completed registration at worldzyourz.info. You can complete registration by clicking the following link:\rhttp://www.worldzyourz.info/verify.php?$confirm_code\r\rIf this is an error, ignore this email and you will be removed from our mailing list.\r\rRegards,\ worldzyourz.info Team"; $host = "mail.worldzyourz.info"; $username = "smtp_noreply@worldzyourz.info"; $password = "smtp_******"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'username' => $username, 'password' => $password, 'auth' => true)); $mail = $smtp->send("$to", "$headers", "$body"); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>An email has been sent to $_POST[email] with an activation key. Please check your mail to complete registration!</p>"); }##Send activation Email