login. p?>"; return; } my $u = LJ::load_userid($remote->{'userid'}); $u->{'emailpref'} = $u->{'email'}; if ($LJ::USER_EMAIL && LJ::get_cap($u, "useremail")) { $u->{'emailpref'} = $u->{'user'} . '@' . $LJ::USER_DOMAIN; } unless ($u->{'status'} eq "A") { $body .= "{'email'}) isn't validated, so we can't let you use the \"Tell a Friend\" feature. To validate your email address, have the confirmation email resent at the lost information page, and then follow the instructions in it when you get it. p?>"; return; } my $err = sub { $title = "Error"; $body = ""; return; }; if ($FORM{'mode'} eq "mail") { my $email = $FORM{'toemail'}; my @errors; LJ::check_email($email, \@errors); push @errors, "" unless LJ::did_post(); if (@errors) { $title = "Error"; $body = LJ::bad_input(@errors); return; } LJ::send_mail({ 'to' => $FORM{'toemail'}, 'toname' => $FORM{'toname'}, 'from' => $u->{'emailpref'}, 'fromname' => $FORM{'fromname'}, 'charset' => 'utf-8', 'subject' => $FORM{'subject'}, 'body' => $FORM{'body'}, }); $body .= ""; return; } $body .= "
"; return; _code?> body=> page?> lib: cgi-bin/emailcheck.pl link: htdocs/login.bml, htdocs/lostinfo.bml, htdocs/users, htdocs/talkread.bml form: htdocs/tools/tellafriend.bml _c?>