Subject: | Example code - validate_recipient doesn't work |
validate_recipient doesn't have the angle brackets.
I added this print statement toward the start:
print "$session - $recipient\n";
I telnetted in sending
RCPT TO: <njh@bandsman.co.uk>
and the print statement gave:
Net::Server::Mail::SMTP=HASH(0x7feea31d8870) - njh@bandsman.co.uk
So the regex can never work.