apessos has asked for the wisdom of the Perl Monks concerning the following question:
I have recently installed the Everything Engine on my system and am running into problems that the user password is never being sent out.
My question isn't about what is happening here, but rather, with my attempt to debug and track down the error. While I would like to know what is going with the mailer, I think it is better to understand why my debugging efforts are screeching to a halt.
The code in question is here:
Wihch displays the following output:... 36: use Everything::MAIL; 37: my $addr = node2mail($$haverow{email},$n); 38: $n = getNodeById(getId($n), 'force'); 39: $str.="<BR><H3>Your password and username should be on its way;< +/H3>"; 40: $str.= "Addr7: " . $addr; ...
sub node2mail { my ($addr, $node) = @_; my @addresses = (ref $addr eq "ARRAY") ? @$addr:($addr); my $user = getNode($$node{author_user}); my $subject = $$node{title}; my $body = $$node{doctext}; use Mail::Sender; my $SETTING = getNode('mail settings', 'setting'); my ($mailserver, $from); if ($SETTING) { my $MAILSTUFF = $SETTING->getVars(); $mailserver = $$MAILSTUFF{mailServer}; $from = $$MAILSTUFF{systemMailFrom}; } else { $mailserver = "localhost"; $from = "root\@localhost"; } my $sender = new Mail::Sender{smtp => $mailserver, from => $fr +om}; $sender->MailMsg({to=>$addr, subject=>$subject, msg => $body}); $sender->Close(); my $value = "1..."; return $value; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HASH question
by sauoq (Abbot) on Nov 11, 2002 at 20:13 UTC | |
by apessos (Acolyte) on Nov 11, 2002 at 20:47 UTC | |
by apessos (Acolyte) on Nov 11, 2002 at 21:55 UTC | |
by rdfield (Priest) on Nov 12, 2002 at 11:21 UTC | |
|
Re: HASH question
by pg (Canon) on Nov 11, 2002 at 22:21 UTC | |
by Jenda (Abbot) on Nov 11, 2002 at 22:38 UTC |