Tengo este código:
y al ejecutar esta web no se envía el correo electrónico, he configurado el php.ini de la siguiente forma:
Código:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
En el Argosoft he introducido en DNS Server la IP de mi proveedor de Internet y he marcado la opción Allow Relay.
Cuando ejecuto la web pone en el log del Argosoft lo siguiente:
Código:
14/01/2009 3:24:28 - Requested SMTP connection from 127.0.0.1
14/01/2009 3:24:28 - ( 1) 220 ArGoSoft Mail Server, Version 1.3 (1.3.0.1)
14/01/2009 3:24:28 - ( 1) HELO pc
14/01/2009 3:24:28 - ( 1) 250 Welcome [127.0.0.1], pleased to meet you
14/01/2009 3:24:28 - ( 1) MAIL FROM:<[email protected]>
14/01/2009 3:24:28 - ( 1) 250 Sender "[email protected]" OK...
14/01/2009 3:24:28 - ( 1) RCPT TO:<[email protected]>
14/01/2009 3:24:28 - ( 1) 250 Recipient "[email protected]" OK...
14/01/2009 3:24:28 - ( 1) DATA
14/01/2009 3:24:28 - ( 1) 354 Enter mail, end with "." on a line by itself
14/01/2009 3:24:28 - [ 2] Delivering to [email protected]
14/01/2009 3:24:28 - [ 2] Attempting to deliver to the domain gmail.com
14/01/2009 3:24:28 - ( 1) 250 Message accepted for delivery. <r3trflbkgniv7sf.140120090324@pc>
14/01/2009 3:24:28 - ( 1) QUIT
14/01/2009 3:24:28 - ( 1) 221 Aba he
14/01/2009 3:24:28 - SMTP connection with 127.0.0.1 ended. ID=1
14/01/2009 3:24:28 - [ 2] Trying the server gmail-smtp-in.l.google.com.: xxx.xx.xxx.xxx
14/01/2009 3:24:29 - [ 2] 220 mx.google.com ESMTP 12si36881166fxm.78
14/01/2009 3:24:29 - [ 2] EHLO pc
14/01/2009 3:24:29 - [ 2] 250-mx.google.com at your service, [xx.xx.xx.xx]
14/01/2009 3:24:29 - [ 2] 250-SIZE 35651584
14/01/2009 3:24:29 - [ 2] 250-8BITMIME
14/01/2009 3:24:29 - [ 2] 250 ENHANCEDSTATUSCODES
14/01/2009 3:24:29 - [ 2] MAIL FROM:<[email protected]>
14/01/2009 3:24:29 - [ 2] 250 2.1.0 OK 12si36881166fxm.78
14/01/2009 3:24:29 - [ 2] RCPT TO:<[email protected]>
¿Qué falla?