>
> Yes, that is correct. but the fact whether or not you actually use this
> variable does not appear to affect the 'bug'.
>
> The problem lies in the fact that the mailserver is expecting a
> "MAIL" command. As long as that one is not send (and it isn't since
> embperl does't even get that far, Net::SMTP doesn't send it and therefor
> the mailserver kindly disconnects us), we can't properly send the form
> out.
>
The mail command is in the Embperl source, but as far as I see, the problem
is the missing HELO command, so the NET::SMTP constructors fails.
> > For the hello parameter Net::SMTP normaly takes a reasonable
> default value,
> > so there was no need in the past to explicitly specify this parameter.
>
> Apparently it doesn't take a reasonable default value. RedHat 6.x and 5.x
> standard installed versions of SendMail expect you to explicitely send
> that HELO parameter. Out-of-the-box Embperl does not support it.
>
> One could argue ofcourse that this is something that Net::SMTP should take
> care of, but including an optional parameter in Embperl isn't that much
> more effort and would at least solve the problem.
>
ok, nobody reported problems with this so far, but it's no problem to
include such a configuration variable to explicitly send the HELO command. I
will add this in the next release of Embperl.
Does it work when you explicitly send the HELO command (as you decribed in
your patch:
$smtp = Net::SMTP->new($ENV{'EMBPERL_MAILHOST'} || 'localhost', Debug =>
$ENV{'EMBPERL_MAILDEBUG'}, Hello => 'solbors.no') or die "Cannot connect
to mailhost" ;
)
and set the
PerlSetEnv EMBPERL_MAILFROM [EMAIL PROTECTED]
and _not_ include your second part of the patch (the mail command). As far
as I understand your problem, this should work.
Please let me know if this is ok, so the next release can contains the right
code
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]