Testing mail() function with agrosoft mail server 2

In my last post I have introduce about Agrosoft mail server (AMS) . Since this day isn’t end yet, I’ll start by word “Lets continue today lesson” icon smile Testing mail() function with agrosoft mail server 2

I start by opening MS-Frontpage then make simple form mail which generate HTML code for me and I save it as contact.htm

Code in send_mail.php :

<?php

mail(“alamster@localhost”,”Form Mail”,”$message”,”From: tes@localhost”);

echo “Got your message ! Thank You very much “;

?>

Save both file in htdocs or www directory.

Call it from browser :

http://localhost/contact.htm

mail2 Testing mail() function with agrosoft mail server 2
Ups, I forgot adding two account in AMS , here’s how :

Click AMS icon on the tray then hit CTRL+U

mail3 Testing mail() function with agrosoft mail server 2

Click on Add New User Icon to add New User

mail4 Testing mail() function with agrosoft mail server 2

Click Ok after finishing entry user information.

We must tell system about our domain too, type CTRL+O and click Local Domains tab to add “localhost” as our domain.

localhost.0 Testing mail() function with agrosoft mail server 2

Now, back to contact page, fill the data and hit submit button.

mail5 Testing mail() function with agrosoft mail server 2

Login to AMS webmail client , by typing http://localhost:8083

Enter username “alamster” and password “123456”

cedk Testing mail() function with agrosoft mail server 2

Click Form Mail subject to see the message

ced2 Testing mail() function with agrosoft mail server 2
Congratulation !

Your first mail script working well , no need to upload to hosting company or connection to internet .

If you want other illustration click here for video.

One Comment

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

Comments are closed.