Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    154
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Test sending of email...

    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??

  • #2
    New to the CF scene
    Join Date
    Aug 2006
    Location
    Germany, Heilbronn
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts
    Same as on Windows, for example i have XAMPP, it's my_username@localhost..... I think XAMPP uses Murcery.

  • #4
    Regular Coder
    Join Date
    Dec 2004
    Location
    Manchester, UK
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try FakeMail by Marcus Baker (sourceforge). It runs locally via Perl and just dump the email to a text file without sending it.

  • #5
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts

  • #6
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 itself and beyond the basic distribution you will also need the CPAN 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
    INSTALLATION
    To install this module type the following:
    perl Makefile.PL
    make
    make test
    make install
    DEPENDENCIES
    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.
    Thanks
    Jim M

    "Lord, help me to become the person my dog thinks I am" - Dawn Ewing
    "If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

    www.huskyzone.com -- Woodland Siberians

  • #7
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    http://www.lastcraft.com/fakemail.php
    Thanks
    Jim M

    "Lord, help me to become the person my dog thinks I am" - Dawn Ewing
    "If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

    www.huskyzone.com -- Woodland Siberians

  • #8
    Regular Coder
    Join Date
    Dec 2004
    Location
    Manchester, UK
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ~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).

  • #9
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    d11wtq,
    Thanks , I'll keep an eye on SourceForge
    Thanks
    Jim M

    "Lord, help me to become the person my dog thinks I am" - Dawn Ewing
    "If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

    www.huskyzone.com -- Woodland Siberians

  • #10
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Lee Stevens View Post
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •