RE: [PHP] mail function error - win32
From: Julien Wadin (php_at_julienwadin.be)
Date: 11/01/03
- Next message: Nathan Taylor: "Re: [PHP] recursive acronym - PHP"
- Previous message: orlandopozo_at_icnet.com.ve: "mail function error - win32"
- In reply to: orlandopozo_at_icnet.com.ve: "mail function error - win32"
- Next in thread: Manuel Lemos: "Re: mail function error - win32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <orlandopozo@icnet.com.ve> Date: Sat, 1 Nov 2003 22:17:08 +0100
When you use the mail function, you must give the first argument. The 'to'
is not in the headers
Try this, it should work
-----Message d'origine-----
De : orlandopozo@icnet.com.ve [mailto:orlandopozo@icnet.com.ve]
Envoyé : samedi 1 novembre 2003 22:11
À : php-general@lists.php.net
Objet : [PHP] mail function error - win32
I try to send from my pc a mail with the function mail(), but if doesn't
work, I have tried several time, but nothing, I don't know what could be,
because the same script work well in a remote host.
in my php.ini, I put:
[mail function]
; For Win32 only.
SMTP = mail.serbis.com
I also put
[mail function]
; For Win32 only.
SMTP = mail.webdevfm.com
I also put (the local mail server that I have):
[mail function]
; For Win32 only.
SMTP = ojpp.myftp.org
--------------------------------
the errors are the follow:
** First error - When the mailserver (ojpp.myftp.org - localhost) is
deactivated
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in d:\htdocs\ojpp\ojppresume\contact.php on line 118
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in d:\htdocs\ojpp\ojppresume\contact.php on line 138
** Code in line 118
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: test <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Code in line 138
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: Webdevfm <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Second error - When the mailserver (mail.webdevfm.com) is actived
Warning: mail(): SMTP server response: 503 valid RCPT command must precede
DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118
** Third error - When the mailserver (mail.serbis.com) is actived
Warning: mail(): SMTP server response: 503 must have sender and recipient
first in d:\htdocs\ojpp\ojppresume\contact.php on line 118
Error enviando correo electrónico a ojpp@ojpp.myftp.org
** fourth error - When the mailserver (ojpp.myftp.org - localhost) is
actived
Warning: mail(): SMTP server response: 503 Bad sequence of commands in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
--- thanks, for the help.
- Next message: Nathan Taylor: "Re: [PHP] recursive acronym - PHP"
- Previous message: orlandopozo_at_icnet.com.ve: "mail function error - win32"
- In reply to: orlandopozo_at_icnet.com.ve: "mail function error - win32"
- Next in thread: Manuel Lemos: "Re: mail function error - win32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|