Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question

closed as off topic by Sven, Tom O'Connor, gravyface, Hubert Kario, Michael Hampton Nov 2 '12 at 11:08

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.

Migrate/dupe?… – gravyface Nov 2 '12 at 10:56

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

Instead, use 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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.