[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: can't pass arguments to Global subroutines ?
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
Hi Ryan
here is an excerpt from one of my pages using form_mail, you may want to
compare it to whatever it is you are doing:
--- snip ---
[perl arg=sub
interpolate=1]form_mail('adresseintrag@pc-mall.de','Adresseintrag in der
pc-mall: [scratch type]','[value email]', <<ENDOFMAIL )
Adresseintrag
lotsastuff
ENDOFMAIL
[/perl]
--- snip ---
Hope this helps, works for me.
Frank
>****** message to minivend-users from Ryan <rps@williams.com> ******
>
>Hello. I am trying to use an auto responder sub, (the form_mail example)
>and I can not get any values to pass to the sub.
>
>I am passing some literals like form_mail('test','test2','test3', 'etc');
>
>One of the lines in the sub routine says: return "no receipient" unless $to;
>and every time I call the sub I see "no receipient" on the calling page...
>
>I know its not a problem with the email address not being entered,
>because I'm not even trying to use [value email] yet, just a literal
>string with my email address in it, or just a word, anything to
>pass the "unless $to" test. But it always fails.
>
>I tried returning @_, its value was 0, showing that there were
>no arguments passed to the subroutine. What am I doing wrong?
>
>Thanks a lot for any help.
>
>-Ryan
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list