olá thalis..
Rapaz, estou precisando da mesma coisa que você.. o que consegui até agora foi:
<?
include('smtp.inc.php');
header('Content-Type: text/plain');
$params['host'] = '67.15.81.98'; // The smtp server host/ip
$params['port'] = 25; // The smtp server port
$params['helo'] = exec('67.15.81.98'); // What to use when sending the helo command. Typically, your domain/hostname
$params['auth'] = TRUE; // Whether to use basic authentication or not
$params['user'] = 'faleconosco@leitaoservicos.com.br'; // Username for authentication
$params['pass'] = 'ls2006'; // Password for authentication
/***************************************
** These parameters get passed to the
** smtp->send() call.
***************************************/
$send_params['recipients'] = array('faleconosco@leitaoservicos.com.br'); // The recipients (can be multiple)
$send_params['headers'] = array(
'From: <paulo_jr17@hotmail.com>', // Headers
'To: paulo_jr17@hotmail.com',
'Subject: Test email'
);
$send_params['from'] = 'faleconosco@leitaoservicos.com.br'; // This is used as in the MAIL FROM: cmd
// It should end up as the Return-Path: header
$send_params['body'] = '.Test email.'; // The body of the email
/***************************************
** The code that creates the object and
** sends the email.
***************************************/
if(is_object($smtp = smtp::connect($params)) AND $smtp->send($send_params)){
echo 'Email sent successfully!'."\r\n\r\n";
// Any recipients that failed (relaying denied for example) will be logged in the errors variable.
print_r($smtp->errors);
}else{
echo 'Error sending mail'."\r\n\r\n";
// The reason for failure should be in the errors variable
print_r($smtp->errors);
}
?>
No meu tb há um arquivo smtp.inc.php que tá faltando.
A diferença é que preciso que ele autentique a senha pra poder mandar. Mas até agora nada.
Se vc poder usar algo do meu código, blz.. eu tb vou olhar o seu para ver se dá pra usar.
vlw cumpade.. flw