New password notification email fails.

Tagged:  

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

Result:
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 <pf-0507@eminent.demon.co.uk
501 <Teddy <pf-0507@eminent.demon.co.uk>: "@" or "." expected after "Teddy"
-------------------------------------------------------------------

Looking at the headers sent:-

Subject: Your account has been created
From: Peter <pf@eminent.demon.co.uk>
Date: Thu, 20 Dec 2007 09:59:52 +0000
To: Teddy <pf-0507@eminent.demon.co.uk>
Reply-To: <pf@eminent.demon.co.uk>

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

RCPT TO:<Teddy <pf-0507@eminent.demon.co.uk>>

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:

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

That gets the emails out.