asklijo.com

  • Increase font size
  • Default font size
  • Decrease font size

How to send mail through php with SMTP authentication

Due to the security purpose, almost all hosting provider stopped the default smtp server.  Default smtp server can be misused by sending spam mail that will leads to IP block in various spam dbs. Still if you are trying to use default mail function you may get the following error.

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()


Sending mail through php with SMTP authentication.

 

Before writing the code you have to create one email id, so that you can use that email id and its password in the code. Always use the email id under the same domain. So that you can use the same hosting provider email server to send mails.

require_once "Mail.php";

$from = This e-mail address is being protected from spambots. You need JavaScript enabled to view it ;
$to = "reciever email id";

$subject = "this is the message from your domain";
$body = "give your message body here";

$host = "mail.yourdomain.com";
$username = This e-mail address is being protected from spambots. You need JavaScript enabled to view it ;
$password = "mypassword";

$headers = array ('From' => $from,
  'To' => $to,
  'Subject' => $subject);
$smtp = Mail::factory('smtp',
  array ('host' => $host,
    'auth' => true,
    'username' => $username,
    'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
  echo("

" . $mail->getMessage() . "

");
} else {
  echo("
Message Sent successfully
  Thank you.
Please Visit Again!
");
}

?>

Note

This e-mail address is being protected from spambots. You need JavaScript enabled to view it   has to be replaced by your mail id

receiver email id has to be replaced by receiver mail id

mail.yourdomain.com has to be replaced by real smtp server (eg : mail.asklijo.com)

mypassword  has to be replaced by your emailid’s password.


You will get the clear cut idea to use the mail function with smtp authentication. If you use this method no chance of moving your mail to spam or junk folder

Last Updated on Friday, 12 February 2010 13:59
 

Domain expired , after renewal it is not showing my website. why ?

Usually if one domain expired, the registry will change the name servers. In that case after renewalval also it may take some time to affect in all name servers and dns cache.

But as a server administrator I have to tell you some suggestion to over come  this situation. Kindly use the following steps

1).Kindly open your windows os folder in your local system, Usually that will be c:\windows

2).Open \system32\drivers\etc

There you can see one file name hosts

3).Right click on that and open in notepad, you can see the following details

 

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

 

4. Kindly add the following lines to the ends of that file. Please put your website ip instead of your_web_ip  and yourdomain has to be replaced by your real domain name. If you are using mail servicelike mail.yourdomainname , kindly add that to the next line.

your_web_ip  www.yourdomainname
your_web_ip  yourdomainname

5. Save this file and try to open your website. You can open your website and other services.

 

By

Lijo Peter
Adsin Technologies

Last Updated on Monday, 15 February 2010 19:32
 

Search Engine Optimization

After publishing of  your  site, Search engine will take some time to index your domain and its content to its database.  Search engine will display your site in search result according to the page ranking or value of the site. Almost all search engine will index your site according to the content, Popularity of the site, Keywords of your site.

Secret of Search Engine Optimization

Usually there is no secrets behind of search engine optimization.  This ‘SEO’ is famous due to the large popularity of the search engines and its use. Site owners and SEO people are struggling to bring each site in the first page of the  search result. Due to that  SEO people are keep on watching and doing lot of research and finding the factors behind of the search engine indexing. After that they are putting some  effort to generate the link popularity, Inserting extra keywords, and Increasing the content or pages. 

How to create my website SEO friendly?

You can go through the following steps and improve your web page ranking and search result.
1).Content:
Search engine looks the content of your website. Design style will not be a matter for the page ranking. So if you have published quality content of each page of your website. More content will help to increase the ranking of your site.

2). Internal Linking :

You can increase the number of pages in your site, so that you can increase the internal linking which will help you to improve your site  ranking.

3).Link Popularity

If some other website links to your website which increase the popularity and page ranking of your website.

If you can work on the above factors, you can achieve the higher ranking for your website.
You can get the service from some agency who will implement the SEO for your website. Before giving the order you can ask the their procedure to implement the SEO.

 

For any SEO help you can contact us

Adsin Technlogies

Last Updated on Saturday, 06 February 2010 20:09
 

Domain registration – Domain Management

 

What is the meaning of Domain Registration?

Domain registration is a process through that you can select your website address like yourcompanyname.com and register this name for you. Once if you have registered this in your name, you will be the owner of the domain and no one can use the same name name while you hold the same name.

You can register the Domain from any domain registration agency such as http://www.adsinmedia.com (Bangalore Based Company)  or any other agency. While you select the agency kindly make sure the following details will be delivered while you register.

1). Will they register the domain in your name, and your address.

2). Will they use your email id as domain ownership id.

3).Will they give your domain control panel. Using this you can change the domain ownership or you can change the webhosting provider any time.

If they are able to provide the following information, your domain will be in safer side. In case if any type of service issue with any hosting provider you will be in safer side with your Domain name (website Address)


Before registering the domain you can directly chat or call or email to the domain registrar and confirm the same.

If you select the Adsin Technologies as your domain provider, they will deliver all required details while you register the domain.

Kindly click here to contact Adsin Technologies

 

How to register the Domain from Bangalore India

You can register the domain online http://domains.adsinmedia.com

After login to the above link you will be able to search your domain first and add to the cart.

After adding the domain to cart it will ask you the payment, If you are able to use paypal account or Credit card you can register your domain without any one help. If you want to make the payment by cash or Bank check use contact to the service provider http://adsinmedia.com/contact_us.htm  They will help you to make the payment and register the domain. This company provides 24/7 Customer support.

 

Domain Management using Domain Control Panel

Once you register the domain your domain provider will give a domain Control Panel. If you have selected the provider as Adsin Technologies, you can use the following link http://login.adsinmedia.com

 

Using the domain Control Panel you can perform the following tasks
1).You can update your owner ship details such as Name, Address, Phone and Email.

2).Domain Forwarding  - (Using this you can forward this website address to any other existing website free of cost)

3).You can manage your DNS records like MX Entry, A records or Cname

4).You can change your hosting provider


Domain Transfer from one Company to Another

If you have registered a domain in any company, you will be able to shift from one company to another.
If you have the domain control panel from the current provider the procedure will be very easy. You can directly login to any Domain provider site and will get the option to transfer the domain. Once if you transfer your domain to new provider domain will be renewed automatically for one year. 

If you dont have the domain control panel from the current service provider , you can contact them from Domain control panel or Authorization code or Security code. You can use the authorization code to transfer the domain from provider to another one.

Click here to get the help to transfer the domain from your existing provider

 

asp.net application error

I was getting the  following error while I try to open the application.  Recently I have upgraded the helm 3.2 to helm 4. It was perfectly working while I use the helm 3

 

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:

Line 30:             ASP.NET to identify an incoming user. 
Line 31:         -->
Line 32: 		
Line 33: 
Line 34: 	

Source File: d:\Domains\softvent.com\wwwroot\regd\web.config    Line: 32


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

 

Solution of the above issue given below

From the above error we can find out that, IIS is telling there is no virtual directory for this.

1). Please login to helm panel
2).click on the my domains
3). Click on your domain
4). Click on virtual directory
5).Click on add
6).Virtual Directory Name:*   you can give your folder name there
7).Select A folder ( selected by default)  After that browse your directory structure  that  you can do the folder browser near to text box  your folder where your application locate. ( Now instead of wwwroot you can see your folder name there)

8).Just Press save it.

Now the site will be working fine.
BY

LIjo Peter

Last Updated on Saturday, 06 February 2010 16:48
 


Page 2 of 3