develooper Front page | perl.qpsmtpd | Postings from July 2005

Re: sender_permitted_from can't call method add on undef

Thread Previous | Thread Next
From:
Keith Ivey
Date:
July 17, 2005 19:46
Subject:
Re: sender_permitted_from can't call method add on undef
Message ID:
42DB17E2.9050107@cpcug.org
Bob Dodds wrote:

> That doesn't help, so it must be the use of '=>' instead
> of a comma in $transaction->header->add(). perldoc
> Mail::Header says to use commas there.

The => is equivalent to a comma in that context.  And it has nothing to 
do with whatever you're doing with at signs, either.  The error message 
"can't call method add on undef" is saying that $transaction->header is 
undefined and thus doesn't have an add() method.  Is the test message 
you're using invalid, or is there something weird about it?

-- 
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About