Local Email?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Local Email?

Post by Gen-ik »

Not sure if this should be in here or not but anyway....... does anyone know if it's possible to set-up some kind of e-mail system on my home PC (currently running Windows, Apache, PHP, MySQL) so that I can send test e-mails from PHP to myself?

I can do this when I'm on-line obviously by sending e-mails to my regular account, but I need to be able to do something similar off-line in order to test out websites before I upload them to the web.

Any pointers would be great.. thanks.
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Do you mean so that you won't even use an SMTP server that is on the internet (i.e. mail.nigmanet.net)?

If that is the case then you might be able to set up an SMTP server on computer that has Apache & PHP and then set it up so that PHP uses your local SMTP server?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

Hmmmm not a bad idea.. I'll keep trying stuff out.

For now though I've found a work-around for it. Once the email has been built (html, attachments, images etc) instead of sending it off to an e-mail address I save it as a file with a .eml extension.... then when I double-click on the file it gets opened in Outlook Express just like a normal e-mail would.

It works but I would prefer some sort of POP3 or SMTP thing set-up so the search continues.
Stoneguard
Forum Contributor
Posts: 101
Joined: Wed Aug 13, 2003 9:02 pm
Location: USA

Post by Stoneguard »

http://www.pmail.com

Their Mercury mail server is nice and runs pretty well. You can set up your own localized domain and send yourself email on the same computer as much as you like (reply to em too).
Post Reply