tags:

views:

54

answers:

4

Hi,

I'm developing a php application and need to test the functionality of sending emails. Problem is I'm using a development environment (wamp on windows) so I'm guessing I don't have access to smtp or a mail server.

It looks like I may need to install a separate application that would act as my mail server. What's the easiest way to do this (I'm on windows working on wamp), and is there another alternative like a public server to be used for testing by developers (free please because I'll probably use it just 10 times until the email functionality is tweaked). Then I guess there are settings that I need to change to my development environment itself? Anyone can shed some light on this please.

Thanks

+1  A: 

You need an SMTP Server. I use PostCast Server, which is free and does the needful.

aadravid
+2  A: 

XAMPP comes with Mercury to handle E-Mails. It can talk to SMTP servers through SSL if necessary, and works well for me.

Pekka
So looks like I made a bad choice using wamp.
vla
@vla not a big deal, it should be fairly easy to add Mercury. Installing it separately, and specifying `localhost` as the SMTP server in php.ini should do the job.
Pekka
A: 

Have you tried PHP function

mail($to, $subject, $body, $headers)

http://php.net/manual/en/function.mail.php

Ljubomir Đokić
You still need a mail server installed on the local computer.
James
+1  A: 

Have you tried creating fake GMail account and then sending emails through its SMTP server? Here is the example - for me works fine.

http://phpmailer.worxware.com/index.php?pg=exampleagmail

Tomasz Kowalczyk