Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4265 > unrolled thread
| Started by | C <wrong.address.1@gmail.com> |
|---|---|
| First post | 2012-01-07 11:01 -0800 |
| Last post | 2012-01-09 18:23 +0100 |
| Articles | 6 on this page of 46 — 8 participants |
Back to article view | Back to comp.lang.php
Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-07 11:01 -0800
Re: Trouble with sending e-mail from simple php script Luuk <Luuk@invalid.lan> - 2012-01-07 20:42 +0100
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-08 01:17 -0800
Re: Trouble with sending e-mail from simple php script Luuk <Luuk@invalid.lan> - 2012-01-08 19:09 +0100
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-07 16:06 -0500
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-08 01:20 -0800
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-08 09:09 -0500
Re: Trouble with sending e-mail from simple php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-08 15:12 +0100
Re: Trouble with sending e-mail from simple php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-08 14:34 +0000
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-08 10:51 -0800
Re: Trouble with sending e-mail from simple php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-08 22:02 +0000
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 05:27 -0800
Re: Trouble with sending e-mail from simple php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-09 14:35 +0000
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-08 10:02 -0500
Re: Trouble with sending e-mail from simple php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-08 16:33 +0100
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-08 10:39 -0500
Re: Trouble with sending e-mail from simple php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-08 17:01 +0100
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-08 15:44 -0500
Re: Trouble with sending e-mail from simple php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-08 23:53 +0100
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-08 19:00 -0500
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 05:32 -0800
Re: Trouble with sending e-mail from simple php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-09 14:32 +0000
Re: Trouble with sending e-mail from simple php script Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-09 10:04 -0500
Re: Trouble with sending e-mail from simple php script Jeff North <jnorthau@yahoo.com.au> - 2012-01-09 02:29 +1100
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-08 10:57 -0800
Re: Trouble with sending e-mail from simple php script Jeff North <jnorthau@yahoo.com.au> - 2012-01-09 12:46 +1100
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 05:39 -0800
Re: Trouble with sending e-mail from simple php script Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-09 04:36 -0800
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 05:40 -0800
Re: Trouble with sending e-mail from simple php script Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-09 05:53 -0800
Re: Trouble with sending e-mail from simple php script Tim Streater <timstreater@greenbee.net> - 2012-01-09 14:50 +0000
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 07:34 -0800
Re: Trouble with sending e-mail from simple php script Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-09 07:40 -0800
Re: Trouble with sending e-mail from simple php script Tim Streater <timstreater@greenbee.net> - 2012-01-09 17:00 +0000
Re: Trouble with sending e-mail from simple php script Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-10 01:58 -0800
Re: Trouble with sending e-mail from simple php script Tim Streater <timstreater@greenbee.net> - 2012-01-10 10:18 +0000
Re: Trouble with sending e-mail from simple php script Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-10 02:20 -0800
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 07:32 -0800
Re: Trouble with sending e-mail from simple php script Tim Streater <timstreater@greenbee.net> - 2012-01-09 17:01 +0000
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 07:30 -0800
Re: Trouble with sending e-mail from simple php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-08 17:19 +0100
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-08 11:02 -0800
Re: Trouble with sending e-mail from simple php script "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-08 23:35 +0100
Re: Trouble with sending e-mail from simple php script C <wrong.address.1@gmail.com> - 2012-01-09 05:28 -0800
Re: Trouble with sending e-mail from simple php script The Natural Philosopher <tnp@invalid.invalid> - 2012-01-09 14:34 +0000
Re: Trouble with sending e-mail from simple php script Luuk <Luuk@invalid.lan> - 2012-01-09 18:23 +0100
Page 3 of 3 — ← Prev page 1 2 [3]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-08 17:19 +0100 |
| Message-ID | <9mtu07Fk1qU1@mid.uni-berlin.de> |
| In reply to | #4265 |
Am 07.01.2012 20:01, schrieb C: > > By the way, PHP.INI contained the following but suspecting this to be > a problem, I removed the file, and it still does not work. > You removed the file? Put it back in its original state, and tell us the settings once again. During development all error messages should be turned on, otherwise you don't see what fails. /Str.
[toc] | [prev] | [next] | [standalone]
| From | C <wrong.address.1@gmail.com> |
|---|---|
| Date | 2012-01-08 11:02 -0800 |
| Message-ID | <73657c47-cc44-46ef-a41e-19628b804c14@o14g2000vbo.googlegroups.com> |
| In reply to | #4300 |
On Jan 8, 6:19 pm, "M. Strobel" <sorry_no_mail_h...@nowhere.dee> wrote: > Am 07.01.2012 20:01, schrieb C: > > > > > By the way, PHP.INI contained the following but suspecting this to be > > a problem, I removed the file, and it still does not work. > > You removed the file? Yes, I had. I put it back. > > Put it back in its original state, and tell us the settings once > again. It says the following: register_globals = off allow_url_fopen = off expose_php = Off max_input_time = 60 variables_order = "EGPCS" extension_dir = ./ upload_tmp_dir = /tmp precision = 12 SMTP = relay-hosting.secureserver.net url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" ; Only uncomment zend optimizer lines if your application requires Zend Optimizer support ;[Zend] ;zend_optimizer.optimization_level=15 ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/ Optimizer_TS-3.3.3 ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ ZendExtensionManager.so ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ ZendExtensionManager_TS.so ; -- Be very careful to not to disable a function which might be needed! ; -- Uncomment the following lines to increase the security of your PHP site. ;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru, ; phpinfo, exec, system, dl, fsockopen, set_time_limit, ; popen, proc_open, proc_nice,shell_exec,show_source,symlink" > > During development all error messages should be turned on, > otherwise you don't see what fails. > > /Str. Thanks. Do you see some trouble with the PHP.INI?
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2012-01-08 23:35 +0100 |
| Message-ID | <9muk20F7keU1@mid.uni-berlin.de> |
| In reply to | #4311 |
Am 08.01.2012 20:02, schrieb C: > On Jan 8, 6:19 pm, "M. Strobel" <sorry_no_mail_h...@nowhere.dee> > wrote: >> Am 07.01.2012 20:01, schrieb C: >> >> >> >>> By the way, PHP.INI contained the following but suspecting this to be >>> a problem, I removed the file, and it still does not work. >> >> You removed the file? > > Yes, I had. I put it back. > >> >> Put it back in its original state, and tell us the settings once >> again. > > It says the following: > > register_globals = off > allow_url_fopen = off > > expose_php = Off > max_input_time = 60 > variables_order = "EGPCS" > extension_dir = ./ > upload_tmp_dir = /tmp > precision = 12 > SMTP = relay-hosting.secureserver.net > url_rewriter.tags = > "a=href,area=href,frame=src,input=src,form=,fieldset=" > > > ; Only uncomment zend optimizer lines if your application requires > Zend Optimizer support > > ;[Zend] > ;zend_optimizer.optimization_level=15 > ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 > ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/ > Optimizer_TS-3.3.3 > ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ > ZendExtensionManager.so > ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ > ZendExtensionManager_TS.so > > > ; -- Be very careful to not to disable a function which might be > needed! > ; -- Uncomment the following lines to increase the security of your > PHP site. > > ;disable_functions = > "highlight_file,ini_alter,ini_restore,openlog,passthru, > ; phpinfo, exec, system, dl, fsockopen, set_time_limit, > ; popen, proc_open, > proc_nice,shell_exec,show_source,symlink" > > >> >> During development all error messages should be turned on, >> otherwise you don't see what fails. >> >> /Str. > > Thanks. Do you see some trouble with the PHP.INI? Add these entries at the beginning: display_errors = On error_reporting = E_ALL error_log = /var/log/php-errors log_errors = On This is about the maximum of error information, it will be displayed and written to the log file. You can easily look up the keywords in the web. Then run your script, and see what the errors are. /Str.
[toc] | [prev] | [next] | [standalone]
| From | C <wrong.address.1@gmail.com> |
|---|---|
| Date | 2012-01-09 05:28 -0800 |
| Message-ID | <9201c52c-84af-438e-9ca2-a29c1bc41d00@i26g2000vbt.googlegroups.com> |
| In reply to | #4323 |
On Jan 9, 12:35 am, "M. Strobel" <sorry_no_mail_h...@nowhere.dee> wrote: > Am 08.01.2012 20:02, schrieb C: > > > > > > > On Jan 8, 6:19 pm, "M. Strobel" <sorry_no_mail_h...@nowhere.dee> > > wrote: > >> Am 07.01.2012 20:01, schrieb C: > > >>> By the way, PHP.INI contained the following but suspecting this to be > >>> a problem, I removed the file, and it still does not work. > > >> You removed the file? > > > Yes, I had. I put it back. > > >> Put it back in its original state, and tell us the settings once > >> again. > > > It says the following: > > > register_globals = off > > allow_url_fopen = off > > > expose_php = Off > > max_input_time = 60 > > variables_order = "EGPCS" > > extension_dir = ./ > > upload_tmp_dir = /tmp > > precision = 12 > > SMTP = relay-hosting.secureserver.net > > url_rewriter.tags = > > "a=href,area=href,frame=src,input=src,form=,fieldset=" > > > ; Only uncomment zend optimizer lines if your application requires > > Zend Optimizer support > > > ;[Zend] > > ;zend_optimizer.optimization_level=15 > > ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 > > ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/ > > Optimizer_TS-3.3.3 > > ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ > > ZendExtensionManager.so > > ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ > > ZendExtensionManager_TS.so > > > ; -- Be very careful to not to disable a function which might be > > needed! > > ; -- Uncomment the following lines to increase the security of your > > PHP site. > > > ;disable_functions = > > "highlight_file,ini_alter,ini_restore,openlog,passthru, > > ; phpinfo, exec, system, dl, fsockopen, set_time_limit, > > ; popen, proc_open, > > proc_nice,shell_exec,show_source,symlink" > > >> During development all error messages should be turned on, > >> otherwise you don't see what fails. > > >> /Str. > > > Thanks. Do you see some trouble with the PHP.INI? > > Add these entries at the beginning: > > display_errors = On > error_reporting = E_ALL > error_log = /var/log/php-errors > log_errors = On > > This is about the maximum of error information, it will be > displayed and written to the log file. > > You can easily look up the keywords in the web. > > Then run your script, and see what the errors are. > > /Str.- Hide quoted text - > > - Show quoted text - Thanks. I should try this and let you know what happened. I have the files lying at home.
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-01-09 14:34 +0000 |
| Message-ID | <jeett3$v6d$2@news.albasani.net> |
| In reply to | #4356 |
C wrote: > On Jan 9, 12:35 am, "M. Strobel" <sorry_no_mail_h...@nowhere.dee> > wrote: >> Am 08.01.2012 20:02, schrieb C: >> >> >> >> >> >>> On Jan 8, 6:19 pm, "M. Strobel" <sorry_no_mail_h...@nowhere.dee> >>> wrote: >>>> Am 07.01.2012 20:01, schrieb C: >>>>> By the way, PHP.INI contained the following but suspecting this to be >>>>> a problem, I removed the file, and it still does not work. >>>> You removed the file? >>> Yes, I had. I put it back. >>>> Put it back in its original state, and tell us the settings once >>>> again. >>> It says the following: >>> register_globals = off >>> allow_url_fopen = off >>> expose_php = Off >>> max_input_time = 60 >>> variables_order = "EGPCS" >>> extension_dir = ./ >>> upload_tmp_dir = /tmp >>> precision = 12 >>> SMTP = relay-hosting.secureserver.net >>> url_rewriter.tags = >>> "a=href,area=href,frame=src,input=src,form=,fieldset=" >>> ; Only uncomment zend optimizer lines if your application requires >>> Zend Optimizer support >>> ;[Zend] >>> ;zend_optimizer.optimization_level=15 >>> ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 >>> ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/ >>> Optimizer_TS-3.3.3 >>> ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ >>> ZendExtensionManager.so >>> ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ >>> ZendExtensionManager_TS.so >>> ; -- Be very careful to not to disable a function which might be >>> needed! >>> ; -- Uncomment the following lines to increase the security of your >>> PHP site. >>> ;disable_functions = >>> "highlight_file,ini_alter,ini_restore,openlog,passthru, >>> ; phpinfo, exec, system, dl, fsockopen, set_time_limit, >>> ; popen, proc_open, >>> proc_nice,shell_exec,show_source,symlink" >>>> During development all error messages should be turned on, >>>> otherwise you don't see what fails. >>>> /Str. >>> Thanks. Do you see some trouble with the PHP.INI? >> Add these entries at the beginning: >> >> display_errors = On >> error_reporting = E_ALL >> error_log = /var/log/php-errors that may not be useful if /var/log is not accessible on a shared host. >> log_errors = On >> >> This is about the maximum of error information, it will be >> displayed and written to the log file. >> >> You can easily look up the keywords in the web. >> >> Then run your script, and see what the errors are. >> >> /Str.- Hide quoted text - >> >> - Show quoted text - > > Thanks. I should try this and let you know what happened. I have the > files lying at home.
[toc] | [prev] | [next] | [standalone]
| From | Luuk <Luuk@invalid.lan> |
|---|---|
| Date | 2012-01-09 18:23 +0100 |
| Message-ID | <jdkrt8-cj1.ln1@luuk.invalid.lan> |
| In reply to | #4265 |
On 07-01-2012 20:01, C wrote:
> I have a simple form which is handled in a *.htm file by
>
> <FORM METHOD="POST" ACTION="send_msg.php">
> <PRE>
> Your name <INPUT TYPE="text" NAME="name" MAXLENGTH=35 SIZE=50>
> Company <INPUT TYPE="text" NAME="orgn" MAXLENGTH=60 SIZE=50>
> City and country <INPUT TYPE="text" NAME="locn"
> MAXLENGTH=60 SIZE=50>
> Your e-mail address <INPUT TYPE="text" NAME="emad" MAXLENGTH=60
> SIZE=50>
> Your message <TEXTAREA NAME="question" WRAP=VIRTUAL
> ROWS=5 COLS=45></TEXTAREA>
> <INPUT TYPE="submit" VALUE="Send message">
> </PRE>
> </FORM>
>
> Then the send_msg.php should send the e-mail by the following code
> (but does not send e-mail). What am I doing wrong?
>
> <?php
> $date = date("F jS Y, h:iA");
> if ($name == "" && $question == "") {exit;}
What do you expect that this last line does do?
--
Luuk
[toc] | [prev] | [standalone]
Page 3 of 3 — ← Prev page 1 2 [3]
Back to top | Article view | comp.lang.php
csiph-web