CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Email Script Help

 



zylon
New User

Dec 7, 2007, 4:33 PM

Post #1 of 2 (1525 views)
Email Script Help Can't Post


Code
use LWP::Simple; 
{
print "Target Email: ";
$host = <STDIN>;
chop $host

}

{
print "# Number Loops: ";
$loopamount = <STDIN>;
chop $loopamount

}



$req = HTTP::Request->new(POST => 'mailto:$host');
$req->header(Subject => "Owntedsohard");
$req->content("OwntmoreGG!\n");;

for ($req = $loopamount; $req >= 1; $req--) {
print "$loopamount ";
}
print "Email Ownt so hard.\n";



Well I get an error saying "new" is not configured in the Http:request function.

How can I fix this problem.


KevinR
Veteran


Dec 7, 2007, 8:58 PM

Post #2 of 2 (1520 views)
Re: [zylon] Email Script Help [In reply to] Can't Post

Kind of strange you post this in the advanced forum and you are making a total beginner error in your code.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives