Turns out it's pretty easy to roll your own sendmail replacement:

http://gregmaclellan.com/blog/sendmail-wrapper/


On 4/4/07, Chris Lamb <[EMAIL PROTECTED]> wrote:
> "[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
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to