I'll try to explain what I want.
I have a PHP script that send emails to different REAL addresses. I don't like these emails goes to Internet, just redirect all of them to my local mail (user@localhost) or simple write emails to local file (with headers for sure).
I'm using Linux on my desktop.
Two options:
(1) May be a good option if you are always and only using this computer for testing purposes, and don't have to worry about accidentally sending out an email to a real person, and (2) is better if you have a specific project you are debugging temporarily.