You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Houman Akhavan <ho...@edigitalweb.com> on 2000/06/28 17:50:46 UTC

Re: Emailing Form Data with an Embperl Script

I am trying to setup the following example script, which emails form data,
but I am running into some problems.

http://perl.apache.org/embperl/Examples.html#input_htm

I have installed Net::SMTP. My embperl is working. My mod_perl is also ok. I
am running Sendmail as my mail server, which is also working. For some
reason though, when I initialized EMBPERL_MAILHOST and EMBPERL_MAILFROM in
my httpd.conf ( PerlSetEnv EMBPERL_MAILHOST the_mail_host ), it does not
take any affect, in my maillog it has the mail host as localhost and domain
as WWW-Server, which are the defaults. Any ideas?

Thanks,

Houman A.





RE: Emailing Form Data with an Embperl Script

Posted by Gerald Richter <ri...@ecos.de>.
>
> That is very possible, but I put them directly in a virtual host where I
> have another existing PerlSetEnv variable in the format of the
> following...
>
> PerlSetEnv EMBPERL_MAILHOST ________________
> PerlSetEnv EMBPERL_MAILFROM ________________
>
> Where should they be if this is incorrect?
>

Normaly that should be ok, but I have seen sometimes problems with "scoping"
of PerlSetEnv inside the httpd.conf. Try to put them directly before the

PerlHandler HTML::Embperl

does this change anything?

Gerald


Re: Emailing Form Data with an Embperl Script

Posted by Houman Akhavan <ho...@edigitalweb.com>.
That is very possible, but I put them directly in a virtual host where I
have another existing PerlSetEnv variable in the format of the following...

PerlSetEnv EMBPERL_MAILHOST ________________
PerlSetEnv EMBPERL_MAILFROM ________________

Where should they be if this is incorrect?

Thank you,

Houman A.

----- Original Message -----
From: "Gerald Richter" <ri...@ecos.de>
To: "Houman Akhavan" <ho...@edigitalweb.com>; "Embperl@Perl. Apache. Org"
<em...@perl.apache.org>
Sent: Wednesday, June 28, 2000 12:32 PM
Subject: RE: Emailing Form Data with an Embperl Script


>
> Maybe you have these directives at the wrong place in your httpd.conf ?
>
> Gerald
>
>
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org


RE: Emailing Form Data with an Embperl Script

Posted by Gerald Richter <ri...@ecos.de>.
> For some
> reason though, when I initialized EMBPERL_MAILHOST and EMBPERL_MAILFROM in
> my httpd.conf ( PerlSetEnv EMBPERL_MAILHOST the_mail_host ), it does not
> take any affect, in my maillog it has the mail host as localhost
> and domain
> as WWW-Server, which are the defaults. Any ideas?
>

Maybe you have these directives at the wrong place in your httpd.conf ?

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------