Friday, July 8, 2011

How to use email client server








After you install hMailServer and reboot the system on which it was installed, you should see the system listening on the SMTP port.

After setting the email configuration at hmail server, now you will use one of email client,for email client you can download here



step 1
go to the browser,than type the location of your web mail extraction. At this case, I use the link below where my web mail extract to http://localhost/webmail/adminpanel/install.htm .
click run installer to run the email client installer.

step 2
you will see all information about your server setting,click next to perform next step installation

step 3
click I agree for agreement with this installation agreement.

step 4

fill all the data in that form

1. select mysql as your database
2. Enter connection setting
create your email connection,you can give the name at your sql login,sql password,database name and host,finaly click create then appear the confirmation that database created successfully
3.test your email connectivity by clicking test database button. If it successfully connected to email database that will be confirmation that "Test connection performed successfully"
klick next button to continue next step

step 5

set your admin panel password,click next

step 6

set your email server host, default : localhost
then try test connection,after that click next

step 7
after complate the instalation,go to : http://localhost/webmail/
input your email and password that have been create at hmailserver.then click enter.you will go to your localhost web mail client server


Now you can try to send email at your localhost. Using Php code to send the mail.






<?
$email="webserver@yungfei.com";
                   
            if(!preg_match('/^[a-zA-Z0-9\_\-\.]{3,20}@[a-zA-Z0-9]{2,8}\.[a-zA-Z0-9]{2,4}/',$_POST['email']))
{
$message="Your email was not valid email address";
}else{
$message="Your estimation has been sent to your email";

$pesan = "welcome to my blogspot..Click here to direct to my bog www.webmaniac-webprogramiing.blogspot.com\n\n\n---Admin www.my-webportal.co.cc ---";
            mail($email,"Salutation","$pesan","From: Yungfei (www.my-webportal.co.cc) \r\n");

}?>











No comments:

Post a Comment

web programming