use strict; use Net::SMTP; use LWP::UserAgent; my $from = 'ergowolf07@home.com'; my @recip_list = ('XXXXXXX@skytel.com'); my $smtp_host = "mail"; # This line generates and error my $smtp = Net::SMTP->new($smtp_host, Timeout => 30) || die "Can't con +nect to $smtp_host.\n"; $smtp->mail($from) || die "cannot mail from.\n\n"; $smtp->recipient(@recip_list); $smtp->data(); $smtp->datasend("To:\tEbay info\n"); my $page = 'http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=XXX +XXXXXXX'; my $ua = new LWP::UserAgent; my $req = new HTTP::Request GET => $page; my $string = $ua->request($req)->as_string; if ($string =~ m/tmonte/g) { $smtp->datasend("you are the high bidder.\n"); } else { $smtp->datasend("You are no longer the high bidder.\n"); } $smtp->dataend; $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Ebay, my pager and my dad
by Adam (Vicar) on May 01, 2000 at 19:55 UTC | |
by ergowolf (Monk) on May 01, 2000 at 23:25 UTC | |
by turnstep (Parson) on May 01, 2000 at 23:49 UTC | |
by btrott (Parson) on May 01, 2000 at 23:49 UTC | |
|
RE: Ebay, my pager and my dad
by btrott (Parson) on May 01, 2000 at 23:59 UTC | |
|
RE: Ebay, my pager and my dad
by Anonymous Monk on May 02, 2000 at 04:00 UTC |