New password notification email fails.


Setting up a system from scratch. (ver 0.8.0)
Adding a user/member.
Send email notification rb. is checked.

Email goes out (Via Mercury m/server as it happens)
but then an error gets returned from the mail delivery system (ie ISP)

With reference to your message with the subject:
   "Your account has been created"
The local mail transport system has reported the following problems
it encountered while trying to deliver your message:

*** Teddy <
501 <Teddy <>: "@" or "." expected after "Teddy"

Looking at the headers sent:-

Subject: Your account has been created
From: Peter <>
Date: Thu, 20 Dec 2007 09:59:52 +0000
To: Teddy <>
Reply-To: <>

the To: line appears OK
but when looking at the SMTP log we see

RCPT TO:<Teddy <>>

Which looks like extra angle brackets.

I couldnt figure this one out, so here's how I fixed it.

In \application\models\notifier\Notifier.class.php I changed line 64 from his:

self::prepareEmailAddress($user->getEmail(), $user->getDisplayName()),

to this:


That gets the emails out.