csarid has asked for the wisdom of the Perl Monks concerning the following question:
use Net::SMTP; $var1="value1"; $var2="value2"; &sendm($var1,$var2); sub sendm() { my $emailid = $_[0]; my $subject = $_[1]; $smtp->to('$emailid\@address.com'); smtp->datasend("To: $mailid\@address.com\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing $var to smtp subroutine
by roboticus (Chancellor) on Feb 07, 2009 at 06:18 UTC | |
|
Re: passing $var to smtp subroutine
by balakrishnan (Monk) on Feb 07, 2009 at 06:57 UTC | |
by csarid (Sexton) on Feb 07, 2009 at 19:12 UTC | |
|
Re: passing $var to smtp subroutine
by AnomalousMonk (Archbishop) on Feb 07, 2009 at 07:32 UTC | |
by csarid (Sexton) on Feb 07, 2009 at 19:16 UTC | |
|
Re: passing $var to smtp subroutine
by toolic (Bishop) on Feb 07, 2009 at 13:39 UTC | |
by csarid (Sexton) on Feb 07, 2009 at 19:14 UTC |