Testing mail() function with agrosoft mail server …

logo argo Testing mail() function with agrosoft mail server …Soon or later every people who learn php will meet PHP lovely function for sending email mail()

Unfortunately many beginner who install only PHP, MYSQL and Apache in windows don’t know how to test their email script like contact form, mailing list etc.

Today, I’ll show how to install mail server software available in internet called Argosoft Mail Server.

Pre requirement :

– Working WAMP application ( I use XAMPP Lite Portable)

Ok, now go to Argosoft website and download Mail Server ( Choose Freeware)

Important Argosoft Mail Server ( AMS ) feature that we need:

1. POP3 server

POP3 server responsible for retrieving email from server

2. Built-in web server with webmail

We need to check our script result

Step by step :

Install exe file by double click

install argo1.0 Testing mail() function with agrosoft mail server …

Click setup

install argo2.0 Testing mail() function with agrosoft mail server …

Click Install tab to begin installation process

Start running your mail server

Just double click AMS icon in desktop to start this application

New instance of AMS will start and reside on tray

To make sure no service conflict , click the AMS icon on the tray to find out

install argo4.0 Testing mail() function with agrosoft mail server …

As you see there is error message “address already in use”, by default web server will use port 80

We do have apache running in that port , click CTRL + O to configure new port for AMS web server. (choose PORTS tab)

install argo5 Testing mail() function with agrosoft mail server …

Change Web Interface port from 80 to anything you want , I already have port 8080 for Oracle port so I choose 8083

Exit from AMS and start again

install argo6 Testing mail() function with agrosoft mail server …

Now web server run on port 8083

Try open from browser :

http://localhost:8083

install argo7 Testing mail() function with agrosoft mail server …

If You see this page it means your job is finish, You have working mail server plus webmail .

Next time I’ll continue on adding new user and testing script for mail() function.

See You

Update : part II is compelete, also with video.

5 Comments

  1. Pingback: Testing mail() function with agrosoft mail server 2

  2. hello,
    i read your tutorial and it was nice. i was wondering if there is a way to test the php mail function on a web sever. i tried to use a mailing scipt on my new cheap fashion school website to recieve email. the message code is executed fine and sent message is displayed. but if i check my inbox i dont see any message. i just dont know why.

  3. @ chucks

    agrosoft only good for localhost only, it means you must list your domain in hosts file and set it to 127.0.0.1 as address to solve restriction in relayhost.

  4. with this script

    <?php
    $mbox = imap_open(“{localhost:110}INBOX”, “skynet”, “jloisa”)
    or die(“can’t connect: ” . imap_last_error());

    $list = imap_list($mbox, “{localhost:110}”, “*”);
    if (is_array($list)) {
    foreach ($list as $val) {
    echo imap_utf7_decode($val) . “\n”;
    }
    } else {
    echo “imap_list failed: ” . imap_last_error() . “\n”;
    }

    imap_close($mbox);
    ?>

    i found error below :

    Warning: Couldn’t open stream {localhost:110}INBOX in c:\apache\htdocs\program\tes.php on line 2

    Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\program\tes.php on line 2

    please help me…!
    what happen with the script? any wrong scipt?

    thank’s

Comments are closed.