my ubuntu server is installed on vmware on win7. i want to use the php mail function as a test purpose.i couldn't find a solution yet.i dont want to receive emails but i just need to use the php mail function to send simple administration stuff like "email verification" , "reset password" etc. How & What do you recommend me to do ?

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer
1

Honestly?
I'd start by never using the mail() function, as it's fundamentallybroken, and doesn't have a very feature-rich functionality.

Instead, use http://swiftmailer.org/. Seriously, it'll give you the flexibility to do more secure emailing, and give you more scope in the future when you're refactoring the spaghetti.

Alternatively, if you wanna be really web2.0 and not have to touch the mailing process yourself, you can use a service like Sendgrid. You could then use their Web API instead of using SMTP, and not have to even use Postfix/Exim/(other MTA of your choice).

There's yet another option, which is to install a dummy MTA, like ssmtp, which only handles relaying mail, and then you can use any one of a number of SMTP providers or relay services.

Best not to handle the actual mail delivery yourself. It's a pain in the butt, and is far better to just let someone else worry about it. Like Sendgrid, or AuthSMTP, or Dyn Email