How to make the code of PHP[mail()] work?
How to make the code of PHP[mail()] work?
am 27.03.2010 03:16:42 von Lee David
--0-1869827160-1269656202=:78895
Content-Type: text/plain; charset=us-ascii
Dear Sir/Madam:
Good day. I am the beginner for PHP With MySQL.
I would like to learn PHP With MySQL as my hobby.
I am trying the code of:
mail($to, $subject, $msg, 'From:' . $email);
But the code of mail() is not functioning.
If anybody is kind enough, please provide some guidances for me to
implement a
proper setting.
For your info, i am using window
XP home edition, Apache server 2.0, PHP
5.0 & MYSQL 5.1 as my local testing server.
As per your advices, i have allow internet users to use the service of
SMTP in windows
firewall.
From the review server error log, i be able to observe Warning as below:
[Sat Mar 13 13:58:17 2010] [error] [client 127.0.0.1] PHP Warning:
mail() []: Failed
to connect to mailserver at "localhost" port 25, verify your "SMTP" and
"smtp_port" setting in php.ini or use ini_set() in C:\\Program
Files\\Apache Group\\Apache2\\test\\report.php on line 30, referer:
http://localhost/report_Temp.html
If possible, could show me how configure the php.ini and any relevant
setting:
In my php.ini, i be able to see:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
2 weeks ago
; For Win32 only.
;sendmail_from = me@example.com
; 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 =
Thanks.
Warm Regards,
David Lee
--0-1869827160-1269656202=:78895
Content-Type: text/html; charset=us-ascii
Dear Sir/Madam:
Good day. I am the beginner for PHP With MySQL.
I would like to learn PHP With MySQL as my hobby.
I am trying the code of:
mail($to, $subject, $msg, 'From:' . $email);
But the code of mail() is not functioning.
If anybody is kind enough, please provide some guidances for me to
implement a
proper setting.
For your info, i am using window
XP home edition, Apache server 2.0, PHP
5.0 & MYSQL 5.1 as my local testing server.
As per your advices, i have allow internet users to use the service of
SMTP in windows
firewall.
From the review server error log, i be able to observe Warning as below:
[Sat Mar 13 13:58:17 2010] [error] [client 127.0.0.1] PHP Warning:
mail() [<a href='function.mail'>function.mail</a>]: Failed
to connect to mailserver at "localhost" port 25, verify your "SMTP" and
"smtp_port" setting in php.ini or use ini_set() in C:\\Program
Files\\Apache Group\\Apache2\\test\\report.php on line 30, referer:
http://localhost/report_Temp.html
If possible, could show me how configure the php.ini and any relevant
setting:
In my php.ini, i be able to see:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
2 weeks ago
; For Win32 only.
;sendmail_from = me@example.com
; 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 =
Thanks.
Warm Regards,
David Lee
|
--0-1869827160-1269656202=:78895--
Re: How to make the code of PHP[mail()] work?
am 27.03.2010 03:20:46 von Nilesh Govindrajan
On 03/27/2010 07:46 AM, Lee David wrote:
> Dear Sir/Madam:
>
> Good day. I am the beginner for PHP With MySQL.
>
> I would like to learn PHP With MySQL as my hobby.
>
> I am trying the code of:
>
> mail($to, $subject, $msg, 'From:' . $email);
>
> But the code of mail() is not functioning.
>
> If anybody is kind enough, please provide some guidances for me to
> implement a
> proper setting.
>
> For your info, i am using window XP home edition, Apache server 2.0, PHP
> 5.0 & MYSQL 5.1 as my local testing server.
>
> As per your advices, i have allow internet users to use the service of
> SMTP in windows firewall.
>
> From the review server error log, i be able to observe Warning as below:
>
> [Sat Mar 13 13:58:17 2010] [error] [client 127.0.0.1] PHP Warning:
> mail() []: Failed to connect to
> mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"
> setting in php.ini or use ini_set() in C:\\Program Files\\Apache
> Group\\Apache2\\test\\report.php on line 30, referer:
> http://localhost/report_Temp.html
>
> If possible, could show me how configure the php.ini and any relevant
> setting:
>
> In my php.ini, i be able to see:
>
> [mail function]
> ; For Win32 only.
> SMTP = localhost
> smtp_port = 25
>
> 2 weeks ago
>
> ; For Win32 only.
> ;sendmail_from = me@example.com
>
> ; 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 =
>
>
> Thanks.
>
> Warm Regards,
> David Lee
>
>
If you wish to learn PHP, read the PHP manual at www.php.net
This is not the place for discussion of PHP, except for its setup, etc.
I will give you hint that you need an SMTP server at localhost. For more
info, ask on PHP Mailing Lists.
--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to make the code of PHP[mail()] work?
am 27.03.2010 12:49:38 von Dan Poirier
On 2010-03-26 at 22:20, Nilesh Govindarajan wrote:
> If you wish to learn PHP, read the PHP manual at www.php.net
> This is not the place for discussion of PHP, except for its setup, etc.
> I will give you hint that you need an SMTP server at localhost. For
> more info, ask on PHP Mailing Lists.
This isn't even the place to discuss PHP's setup. Take PHP discussion
to a PHP list.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to make the code of PHP[mail()] work?
am 27.03.2010 13:15:32 von Nilesh Govindrajan
On 03/27/2010 05:19 PM, Dan Poirier wrote:
> On 2010-03-26 at 22:20, Nilesh Govindarajan wrote:
>
>> If you wish to learn PHP, read the PHP manual at www.php.net
>> This is not the place for discussion of PHP, except for its setup, etc.
>> I will give you hint that you need an SMTP server at localhost. For
>> more info, ask on PHP Mailing Lists.
>
> This isn't even the place to discuss PHP's setup. Take PHP discussion
> to a PHP list.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
Yeah. I meant module setup like FCGI, etc. (typo)
--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मà¥à¤°à¤¾ à¤à¤¾à¤°à¤¤ महान !
मम à¤à¤¾à¤°à¤¤: महतà¥à¤¤à¤® à¤à¤µà¤¤à¥ !
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org