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: Beginner:
simple mail script... why doenst it work??

 



ultimategamer2k
User

Mar 12, 2001, 2:54 PM

Post #1 of 2 (449 views)
simple mail script... why doenst it work?? Can't Post

heres my script, why doesnt it work???
(its not mailing)

if ($addMail =~/[A-Za-z]+@+[A-Za-z]+.+[A-Za-z]/){
open(SENDMAIL,"|$mail -t") or die "can't access mail: $!";
print SENDMAIL "To:$addMail\n";
print SENDMAIL "From:noreply\@ultimategamer.cjb.net\n";
print SENDMAIL "Subject:subscription to ultimategamers mailing list\n\n";
print SENDMAIL "Body:please copy this link to your browser window, and press enter, and you will be added to the list\n
http://ultimategamers.gamersfuture.com/cgi-bin/maillist.pl?action=accepted&mail=$addMail\n
if this message was sent to you by mistake, we apologise\n";
close SENDMAIL;
print "Check your email, there should be one from us, and follow these simple steps\n";
print "1. Copy, and paste the url in the email into your browser window\n";
print "2. Thats it!";
}

visit my web site at http://ultimategamer.cjb.net


unknownSym
stranger

Mar 15, 2001, 6:55 AM

Post #2 of 2 (434 views)
Re: simple mail script... why doenst it work?? [In reply to] Can't Post

In your "open" line, what is the value of the variable "$mail"?


 
 


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

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