View Full Version : Test sending of email...

08-31-2006, 06:27 PM
Is any way to test the sending of a email localy in a LAN without an email server?? I'm using PHP and someone tell me that's possible but he doesn't know how to do it!!! Can you help me??

08-31-2006, 07:17 PM
Without a Mailserver, you can't send mails. On a typical Linux oder BSD-System, there is usualy a mailserver installed (for local mail delivery). You can use this by sending a mail to system_username@localhost.

Lee Stevens
08-31-2006, 09:00 PM
Same as on Windows, for example i have XAMPP, it's my_username@localhost..... I think XAMPP uses Murcery.

09-02-2006, 02:50 PM
Try FakeMail by Marcus Baker (sourceforge). It runs locally via Perl and just dump the email to a text file without sending it.

09-02-2006, 03:55 PM
http://www.lastcraft.com/fakemail.php for fakemail

09-02-2006, 06:51 PM
GJay, d11wtq

Pavmoxo, you may run into the same thing (questions)

I've looked into using fakemail, but got stuck and have a few questions and I'm hoping you might have answers. (running WinXP, IIS, not sure what ver of Perl but failry new) (yea I know should switch to Apache, some day soon)
I have perl installed on local machine (was an easy install) and down loaded fakemail. fake mail docs talk about needing the CPAN module.

Fake Mail Basic installation
There is no installation of the fakemail program itself, but it does have some prerequisites. The first is Perl (http://www.perl.org/) itself and beyond the basic distribution you will also need the CPAN (http://cpan.perl.org/) module Net::Server::Mail::SMTP. Once Perl is installed you can install this module with...

perl -MCPAN -e 'install Net::Server::Mail::SMTP'

went to CPAN did a search on "Net::Server::Mail::SMTP" and found a down load for "Net::Server::Mail version 0.13" (so I think I got the right one)

"Net::Server::Mail" talks about installation

To install this module type the following:
perl Makefile.PL
make test
make install
This module requires these other modules and libraries:
Sys::Hostname IO::Select and Carp all available on CPAN.
Ok here's where I getting stuck at:
1 --- Do I following installation instructions for CPAN module from Fake Mail Site or CPAN site?
2 --- I dont know perl so do I just go to dos promt type perl then command listed above? do I need to issue an exit or quit (how?).
3 --- Not sure / can't find the two modules listed as dependencies.

09-08-2006, 03:05 PM
Been a couple of days since previous post, Just checking to see if any one has used fakemail, and might be able to help with the problems I run into.


09-09-2006, 01:16 PM
~musher. I'm working on a PHP only implementation which will not require all that mucking about. You just edit a config file to specify a port to run on (2525 ?) then open a command line and type: "php service.php".

It's working basically but not finished yet. I'll post when it's complete. I'm building it to use user-written extensions for ESMTP behaviour so as soon as the core functionality works bug-free I'll put it on SourceForge :) Hmm... actually... I'll register the project now.

Because it's written in PHP it will also be possible to work around an API for it in testing (I've already got the esscence of it (minus the proper SMTP implementation) in my SMTP server stub in the Swift Mailer unit tests).

09-10-2006, 06:39 AM
Thanks :thumbsup:, I'll keep an eye on SourceForge

09-17-2006, 09:37 PM
Same as on Windows, for example i have XAMPP, it's my_username@localhost..... I think XAMPP uses Murcery.

so you have xampp SMTP sever working? I cannot get it to work.