Hi,

Thank Gerald for reply about "session problem", but now I have
another question regarding mail sending:
 
part of simple script:
 
use Net::SMTP;
$smtp = Net::SMTP->new('localhost')  or die "Cannot connect to mailhost";
from apache not works with message:
Error in Perl code: Cannot connect to mailhost
 
this script works from shell environment and on another web server.
Also I tried different mail test from examples in embperl source without success.
 
I setup EMBPERL_MAILDEBUG=1 and EMBPERL_DEBUG=10477
but didn't find anything useful in /tmp/embperl.log
 
What another test to do for determination my problems or may be I have to setup another debug parameters
for more details?
 
PS1: debug output:
...
[3203]REQ: ***** Start Request at Tue Sep  5 19:58:16 2006
[3203]Use App: Embperl
[3203]Formdata... length = 0
[3203]Using APACHE for output...
[3205] Use Recipe Embperl
[3205]SYNTAX: switch to Embperl::Syntax::Embperl
[3203]Reading /var/www/centr/a.shtml as input using PerlIO (2185 Bytes)...
[3205]SYNTAX: switch to Embperl::Syntax::Embperl Embperl::Syntax::Mail
[3203]PERF: Parse Start Time:       70 ms
[3203]PERF: Parse End Time:                 90 ms
[3203]REQ: ***** Start Request at Tue Sep  5 19:58:16 2006
[3203]PERF: DOMSTAT: MemUsage = 89680 Bytes  numNodes = 44  numLevelLookup = 0
numLevelLookupItem = 0  numStr = 117  numReplace = 0
[3203]TAB:  get EscMode = 7, Used = 1
[3205]SYNTAX: switch to Embperl::Syntax::Embperl Embperl::Syntax::Mail
[3203]PERF: Compile Start Time:     90 ms
[3203]PERF: Compile End Time:       90 ms
[3203]PERF: After Compile Exec End Time: 90 ms
[3203]PERF: Perl Compile End Time:          230 ms
[3203]PERF: Compile Time:                   140 ms
[3203]PERF: DOMSTAT: MemUsage = 90720 Bytes  numNodes = 34  numLevelLookup = 0
numLevelLookupItem = 0  numStr = 117  numReplace = 3
[3203]EVAL< <unknown>
[3203]EVAL> <undefined>
[3203]ERR:  24:  Error in Perl code: Cannot connect to mailhost at /var/www/centr/a.shtml line 19.
[3203]PERF: Run Start Time: 230 ms
[3203]PERF: Run End Time:   330 ms
[3203]PERF: Run Time:       100 ms
[3203]PERF: DOMSTAT: MemUsage = 91348 Bytes  numNodes = 35  numLevelLookup = 0
numLevelLookupItem = 0  numStr = 118  numReplace = 4
[3203]PERF: input = ???
[3203]PERF: Time: 330 ms
[3203]Request finished. Tue Sep  5 19:58:17 2006
. Entry-SVs: 41837  Exit-SVs: 57641
...
 
 
PS2: embperl 2.2.0 "make test" finished at line:
...
#194 EmbperlObject/epoincdiv.htm...
Error in Line 286
Is:     ><P>2.2.0<P><
Should: ><P>2.1<
Input:          test/html/EmbperlObject/epoincdiv.htm
Output:         test/tmp/out.htm
Compared to:    test/cmp/epoincdiv.htm
Log:            test/tmp/test.log
Testparameter:
  cgi = 0
  offline = 0
 
 ERRORS detected! NOT all tests have been passed successfully
 
make: *** [test_dynamic] Error 30
 

Reply via email to