"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> I develop on a Mac and don't really want to set up a mail server and
> programmatically check a POP mail account in the unit tests.
> 
> Does anyone have a clever solution for unit testing emails?

Roll your own sendmail which intercepts STDIN and saves it to a file
somewhere?

 "PHP will first look for sendmail in your PATH, and then in the
 following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib."

However, this would break a few unit-testing rules, especially ones about
global state - you could get race conditions if you multiple test in
parallel.

-- 
 Chris Lamb, Cambridgeshire, UK                          GPG: 0x634F9A20

Attachment: signature.asc
Description: PGP signature

Reply via email to