Hola, hace un rato instale ArgoSoft Mailserver para poder hacer pruebas de correo de un archivo que tengo en php al cual ya le inclui la libreria de PHPMailer.
El caso es que cuando envio el correo, en el log del ArgoSoft Mailserver, me sale lo siguiente:
[SMTP 000007 04-10-12 16:11:34] Received SMTP Connection from 127.0.0.1
[SMTP 000007 04-10-12 16:11:34] 220 mail.suhkha.net ArGoSoft Mail Server SMTP Module v.1.0.8.5 at Thu, 04 Oct 2012 21:11:34 GMT
[SMTP 000007 04-10-12 16:11:34] Number of current SMTP connections: 1
[SMTP 000007 04-10-12 16:11:34] HELO Suhkha-PC
[SMTP 000007 04-10-12 16:11:34] 250 Welcome 127.0.0.1, nice to meet you...
[SMTP 000007 04-10-12 16:11:34] MAIL FROM:<you@yourdomain>
[SMTP 000007 04-10-12 16:11:34] 250 Sender "you@yourdomain" OK...
[SMTP 000007 04-10-12 16:11:34] RCPT TO:<[email protected]>
[SMTP 000007 04-10-12 16:11:34] 551 User not local. Authentication required for relay
[SMTP 000007 04-10-12 16:11:34] QUIT
[SMTP 000007 04-10-12 16:11:34] 221 Goodbye
[SMTP 000007 04-10-12 16:11:34] SMTP Connection with 127.0.0.1 ended
[SMTP 000007 04-10-12 16:11:34] Number of current SMTP connections: 0
Obviamente no me esta enviando nada, pero mi pregunta es, porque si yo defini mi correo al instalar la aplicacion no me aparece entonces.
En php.ini
realice lo siguiente:
mail function]
; For Win32 only.
; http://php.net/smtp
SMTP =mail.prueba.net //LO MODIFIQUE
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from =
[email protected] //LO MODIFIQUE
Mi archivo prueba a enviar es:
Código PHP:
Ver original<?php
require("PHPMailer_5.2.2-rc1/PHPMailer_5.2.2-rc1/class.phpmailer.php");
$mail = new PHPMailer();
$mail->Host = "mail.prueba.net";
$mail->FromName = "Nombre del Remitente";//Mi nombre
$mail->Subject = "Solicitud de servicio";
$body = "Favor de revisar la siguiente solicitud de servicio.<br>";
$body .= "Saludos.<br>";
$mail->Body = $body;
$mail->AddAttachment("email_enviar/prueba.pdf");
$mail->Send();
?>
Cargo la pagina pero no se envia a donde indico, por que sera?
Gracias!!