You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Abdallah Deeb <ab...@yahoo.com> on 2002/08/05 10:21:22 UTC
Mail
Hello list,
I am testing the mail:send tag, and getting this error.
any pointers ?
thank you.
error:
------
[11922]ERR: 24: Error in Perl code: syntax error at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Embperl/Mail.pm line 118, near
"$smtp->data() or die ""
Global symbol "$from" requires explicit package name at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Embperl/Mail.pm line 79.
Global symbol "$to" requires explicit package name at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Embperl/Mail.pm line 79.
Global symbol "$cc" requires explicit package name at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Embperl/Mail.pm line 79.
testmail.htm:
-------------
[$ if ($fdat{request} == 1) $]
[#-------------------------mail-------------------------------------#]
[$ syntax + Mail $]
<mail:send to="john@site.com" subject="test message"
mailhost="localhost">
This is a test message
</mail:send>
<p>
[$ if $? $]
There was an error
[$ else $]
mail sent successfuly
</p>
[$ endif $]
[#-------------------------end mail---------------------------------#]
[$ else $]
<form action="testmail.htm">
<input type=hidden name=request value=1>
<input type=submit value="Send it" />
</form>
[$ endif $]
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Mail
Posted by Gerald Richter <ri...@ecos.de>.
> I am testing the mail:send tag, and getting this error.
> any pointers ?
>
> Global symbol "$from" requires explicit package name at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Embperl/Mail.pm line 79.
Did you have a "use strict" or a [$ vars ... $] in your page? If yes add all
variables that Perl doesn't like as globals and it should work. If it
doesn't try without the use strict or [$var$]
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 925131
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