Configuring and send mails in winxp??
Configuring and send mails in winxp??
am 30.05.2007 02:18:54 von agarrammone
Hi Everybody! I need to configure the mail option in PHP because I want to
use the function mail( ) with the smtp of my ISP.
My machine is the server of an Intranet and the mail had to go to the
Internet.
This server is using Apache 2.x
How can I configure php to do that??
I read the documentation and I write some code but the mail is sent but is
going nowhere because I send to another mail direction (mine, obviously) and
it never arrive.
HELP!!!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Configuring and send mails in winxp??
am 30.05.2007 11:16:33 von N.A.Morgan
If you are using a Windows version of PHP, the mail facility is
pre-compiled. All you need to do is set the PHP.INI directives below.
[mail function]
; For Win32 only.
SMTP =3D server@domain.com
smtp_port =3D 25
; For Win32 only.
sendmail_from =3D my_email@domain.com
Regards,
Neil
-----Original Message-----
From: Alejandro G. [mailto:agarrammone@fibertel.com.ar]=20
Sent: 30 May 2007 01:19
To: php-windows@lists.php.net
Subject: [PHP-WIN] Configuring and send mails in winxp??
Hi Everybody! I need to configure the mail option in PHP because I want
to use the function mail( ) with the smtp of my ISP.
My machine is the server of an Intranet and the mail had to go to the
Internet.
This server is using Apache 2.x
How can I configure php to do that??
I read the documentation and I write some code but the mail is sent but
is going nowhere because I send to another mail direction (mine,
obviously) and it never arrive.
HELP!!!
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Configuring and send mails in winxp??
am 31.05.2007 04:30:42 von agarrammone
Neil, I'm doing this, I wrote some code with a basic use of the function
mail, the code itself its sending the mail (the function finish ok) but I
never receive the mail.
Here's my php.ini configuration the the mail function.
[mail function]
; For Win32 only.
SMTP = smtp.fibertel.com.ar
; for Win32 only
smtp_port = 25
sendmail_from= caalexandros@fibertel.com.ar
; For Unix only. You may supply arguments as well (default:
"sendmail -t -i").
sendmail_path = "c:\windows\system32\sendmail -t -i"
; 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 =
and here is the basic php code
$body="HTML formatted PRUEBA
$headers = "From: caalexandros@fibertel.com.ar \r\n";
$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";
$mail_sent = mail("meteoro62@hotmail.com", "An HTML Message", $body,
$headers);
echo $mail_sent ? "Mail sent" : "Mail failed";
?>
escribió en el mensaje
news:913097E11AB70F4BA5EDF1611ECAA8B901B1AE9C@EXCHANGE2.univ ersity.brighton.ac.uk...
If you are using a Windows version of PHP, the mail facility is
pre-compiled. All you need to do is set the PHP.INI directives below.
[mail function]
; For Win32 only.
SMTP = server@domain.com
smtp_port = 25
; For Win32 only.
sendmail_from = my_email@domain.com
Regards,
Neil
-----Original Message-----
From: Alejandro G. [mailto:agarrammone@fibertel.com.ar]
Sent: 30 May 2007 01:19
To: php-windows@lists.php.net
Subject: [PHP-WIN] Configuring and send mails in winxp??
Hi Everybody! I need to configure the mail option in PHP because I want
to use the function mail( ) with the smtp of my ISP.
My machine is the server of an Intranet and the mail had to go to the
Internet.
This server is using Apache 2.x
How can I configure php to do that??
I read the documentation and I write some code but the mail is sent but
is going nowhere because I send to another mail direction (mine,
obviously) and it never arrive.
HELP!!!
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Configuring and send mails in winxp??
am 31.05.2007 10:42:59 von N.A.Morgan
Do you have a firewall rule that prevents incoming email from this =
particular host? I tried to ping the server smtp.fibertel.com.ar and =
could not receive a reply. It may be our firewall is preventing a =
response from that server, or it may be that the email provider has =
limited the access to web-only access.
Does your network allow outward transmission of email from your intranet =
server? It may need to be set up in your ACLs or other wrappers.
Is the email being caught by spam filters?
Neil=20
-----Original Message-----
From: Alejandro G. [mailto:agarrammone@fibertel.com.ar]=20
Sent: 31 May 2007 03:31
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Configuring and send mails in winxp??
Neil, I'm doing this, I wrote some code with a basic use of the function =
mail, the code itself its sending the mail (the function finish ok) but =
I never receive the mail.
Here's my php.ini configuration the the mail function.
[mail function]
; For Win32 only.
SMTP =3D smtp.fibertel.com.ar
; for Win32 only
smtp_port =3D 25
sendmail_from=3D caalexandros@fibertel.com.ar
; For Unix only. You may supply arguments as well (default:=20
"sendmail -t -i").
sendmail_path =3D "c:\windows\system32\sendmail -t -i"
; 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 =3D
and here is the basic php code
$body=3D"HTML formatted PRUEBA
$headers =3D "From: caalexandros@fibertel.com.ar \r\n"; $headers.=3D =
"Content-Type: text/html; charset=3DISO-8859-1 "; $headers .=3D =
"MIME-Version: 1.0 "; $mail_sent =3D mail("meteoro62@hotmail.com", "An =
HTML Message", $body, $headers); echo $mail_sent ? "Mail sent" : "Mail =
failed";
?>
escribi=F3 en el mensaje =
news:913097E11AB70F4BA5EDF1611ECAA8B901B1AE9C@EXCHANGE2.univ ersity.bright=
on.ac.uk...
If you are using a Windows version of PHP, the mail facility is =
pre-compiled. All you need to do is set the PHP.INI directives below.
[mail function]
; For Win32 only.
SMTP =3D server@domain.com
smtp_port =3D 25
; For Win32 only.
sendmail_from =3D my_email@domain.com
Regards,
Neil
-----Original Message-----
From: Alejandro G. [mailto:agarrammone@fibertel.com.ar]
Sent: 30 May 2007 01:19
To: php-windows@lists.php.net
Subject: [PHP-WIN] Configuring and send mails in winxp??
Hi Everybody! I need to configure the mail option in PHP because I want =
to use the function mail( ) with the smtp of my ISP.
My machine is the server of an Intranet and the mail had to go to the =
Internet.
This server is using Apache 2.x
How can I configure php to do that??
I read the documentation and I write some code but the mail is sent but =
is going nowhere because I send to another mail direction (mine,
obviously) and it never arrive.
HELP!!!
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php=20
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: =
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Configuring and send mails in winxp??
am 31.05.2007 14:03:31 von Jody Williams
I had a similar situation. As a result, I switched to Pear::Mail.
On 5/31/07, N.A.Morgan@bton.ac.uk wrote:
> Do you have a firewall rule that prevents incoming email from this partic=
ular host? I tried to ping the server smtp.fibertel.com.ar and could not r=
eceive a reply. It may be our firewall is preventing a response from that =
server, or it may be that the email provider has limited the access to web-=
only access.
>
> Does your network allow outward transmission of email from your intranet =
server? It may need to be set up in your ACLs or other wrappers.
>
> Is the email being caught by spam filters?
>
> Neil
>
> -----Original Message-----
> From: Alejandro G. [mailto:agarrammone@fibertel.com.ar]
> Sent: 31 May 2007 03:31
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] Configuring and send mails in winxp??
>
> Neil, I'm doing this, I wrote some code with a basic use of the function =
mail, the code itself its sending the mail (the function finish ok) but I n=
ever receive the mail.
>
> Here's my php.ini configuration the the mail function.
>
> [mail function]
> ; For Win32 only.
> SMTP =3D smtp.fibertel.com.ar
> ; for Win32 only
> smtp_port =3D 25
> sendmail_from=3D caalexandros@fibertel.com.ar
>
> ; For Unix only. You may supply arguments as well (default:
> "sendmail -t -i").
> sendmail_path =3D "c:\windows\system32\sendmail -t -i"
>
> ; Force the addition of the specified parameters to be passed as extra pa=
rameters ; 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 =3D
>
> and here is the basic php code
>
>
>
> $body=3D"HTML formatted PRUEBA
>
> $headers =3D "From: caalexandros@fibertel.com.ar \r\n"; $headers.=3D "Con=
tent-Type: text/html; charset=3DISO-8859-1 "; $headers .=3D "MIME-Version: =
1.0 "; $mail_sent =3D mail("meteoro62@hotmail.com", "An HTML Message", $bod=
y, $headers); echo $mail_sent ? "Mail sent" : "Mail failed";
>
> ?>
>
> escribi=F3 en el mensaje news:913097E11AB70F4BA5E=
DF1611ECAA8B901B1AE9C@EXCHANGE2.university.brighton.ac.uk...
> If you are using a Windows version of PHP, the mail facility is pre-compi=
led. All you need to do is set the PHP.INI directives below.
>
> [mail function]
> ; For Win32 only.
> SMTP =3D server@domain.com
> smtp_port =3D 25
>
> ; For Win32 only.
> sendmail_from =3D my_email@domain.com
>
> Regards,
> Neil
>
> -----Original Message-----
> From: Alejandro G. [mailto:agarrammone@fibertel.com.ar]
> Sent: 30 May 2007 01:19
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Configuring and send mails in winxp??
>
> Hi Everybody! I need to configure the mail option in PHP because I want t=
o use the function mail( ) with the smtp of my ISP.
> My machine is the server of an Intranet and the mail had to go to the Int=
ernet.
> This server is using Apache 2.x
>
> How can I configure php to do that??
> I read the documentation and I write some code but the mail is sent but i=
s going nowhere because I send to another mail direction (mine,
> obviously) and it never arrive.
>
> HELP!!!
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: htt=
p://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Configuring and send mails in winxp??
am 26.03.2008 08:20:05 von Bento Fernandes
You can use fake sendmail in windows
Bento Fernandes
http://www.goanwap.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP & IIS - defining a path
am 29.03.2008 06:40:43 von phpWalter
can anyone explain to me why this...
// PHP_SELF =3D \walter\test.php
// __FILE__ =3D \\NAWINFS03\home\web\rh.itdoes\walter\test.php
// $_path =3D \\NAWINFS03\home\web\rh.itdoes
$_path =3D substr( __FILE__, 0, 0-strlen($_SERVER['PHP_SELF']) );
require_once $_path . DIRECTORY_SEPARATOR . 'config.php';
fails...
Fatal error: main(): Failed opening required [file as defined in $pa=
th]
And yes, $path echos what I expect it to.
But this, hard coded definition...
$path =3D DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR .
'NAWINFS03' . DIRECTORY_SEPARATOR .
'home' . DIRECTORY_SEPARATOR .
'web' . DIRECTORY_SEPARATOR .
'rh.itdoes';
require_once $_path . DIRECTORY_SEPARATOR . 'config.php';
This works fine! ??
But this coded version will *not* work if I use '\' (yes, even escaped).
I really need to get $path dynamically defined.
Can anyone shed some light on this? (Beyond "don't use IIS")
Thanks
Walter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php