pero me muestra un error ,el siguiente:
Cita:
y los datos que le envio son estos:Failed to send data [SMTP: Invalid response code received from server (code: 554, response: Message refused.)]
Código PHP:
ini_set('SMTP','smtpout.secureserver.net');
$recipients = $email;
$body = $message;
$headers["From"] = 'sitio.com';
$headers["To"] = $email;
$headers["Subject"] = 'Instructions';
$params["host"] = 'smtpout.secureserver.net';
$params["port"] = '25';
$params["auth"] = true;
$params["username"] = '[email protected]';
$params["password"] = 'pass';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory("smtp", $params);
$mail= $mail_object->send($recipients, $headers, $body);
if (PEAR::isError($mail)) {
//echo("<p>" . $mail->getMessage() . "</p>");
echo 'error'. $mail->getMessage();
} else {
//echo("<p>Message successfully sent!</p>");
echo 'e-mail has been sent';
}
Porfavor ayudenme
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)