Free Web Hosting.UK.To Bookmark or Share 100% uptime

Free domain e-mail

Adding e-mail to your own domain is easy! Just follow this steps.

  1. First make sure you own the domain. (If you don't already have a domain, register your own free domain here.)
  2. Make sure you configured the nameservers correctly and added desired domain to your account.
  3. Now go to Google Apps, and create a free account there.
  4. Near the end of registration you are provided with Google's MX servers. Add those to Custom MX records on your control panel (note the trailing dot).
    Custom MX Records >> my-domain.co.cc ASPMX.L.GOOGLE.COM. 1  [Add]
    Make sure you delete old or unwanted MX servers, or that you set proper priorities (i.e. less is more).
  5. Complete Google Apps registration and verification. Within 24 hours you should be able to successfully send and receive e-mail to your configured domain address.

That's it. All yourname@yourdoma.in e-mail will now get sent to your Google Apps account, where you can check it like in your normal GMail or, preferably, have it redirected to your working GMail or another permanent e-mail account.

If you would also like to send e-mail from your domain via Google SMTP servers instead of ours, then don't use PHP mail() function, but rather configure PEAR SMTP email with mail() as fallback.

First you need to download required PEAR packages (you will need Mail package and all it's dependencies). Put them together in a directory and upload them to your site's root dir (/). For your convenience we have prepared a working version of PEAR Mail. Download the archive, then unzip it and upload the contents to your root directory so that the included Mail.php file is located at /your-domain.com/htdocs/PEAR/Mail.php.

Then you add the following line to your .htaccess file:
php_value include_path ".:./PEAR"

And finally, upload the following smtpmailtest.php file to you root directory, and make the appropriate changes.

smtpmailtest.php:
<?php

// modify username and password
$smtpconf['username'] = 'myGAppsName@myDomain.com';
$smtpconf['password'] = 'mysecretGApassword';
$smtpconf['host'] = 'ssl://smtp.gmail.com';
$smtpconf['port'] = '465';
$smtpconf['auth'] = true;

// set the recipient, subject and body
$to = 'recipient@email.com';
$from = $smtpconf['username'];
$subject = 'This is a Google Apps SMTP test email..';
$body = '..and it works! :)';

$headers['From'] = $from;
$headers['To'] = $to;
$headers['Subject'] = $subject;

require_once 'Mail.php';

$smtp = Mail::factory('smtp', $smtpconf);

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

if (PEAR::isError($mail)) {
	/* if error then use php mail() instead */
	mail($to, $subject, $body, 'From: '.$from);
	echo 'Message sent via PHP mail()';
} else echo 'Message sent successfully!';
?>
		

Some scripts (e.g. forum software) have this kind of configuration integrated. Check their fine manual.

Note, by using this service, your mail is SPAM checked and entirely handled by Google (i.e. no spam). This may prove itself as your fastest custom domain email solution.

Please, do not abuse this service.