There’ve been lots of times when I wanted to use the mail() function on my local server. I am sure lots of you would’ve been wanting it too but most of you would’ve settled for PHPMailer or just used a web host to test the code instead. I myself had been doing the same until recently when I finally decided to do some research and get it to work.
Here are the steps in short for the geeks who like to do things on their own: All I did was used smtp client called msmtp, configured it to work with my gmail account and configured PHP to use msmtp to send emails.
This tutorial is only applicable for linux users. I’ll write another article for windows users soon when I get my hands on a windows box. All the commands used in the instructions are for Ubuntu, however you may use corresponding commands for your distro (for eg; you can use yum install instead of apt-get install on fedora, redhat, centos.
Msmtp is a small but powerful and highly customizable smtp client. You can access gmail smtp using msmtp, which is exactly what I’ll teach in this tutorial.
Step by step instructions:
Install msmtp and ca-certificates for use with SSL:
Twitter removed its hotmail/msn contact importer tool last year which was a very useful tool. However, there are few tricks which enables you to do just that. The easiest one is:
Twitter allows you to import gmail contacts. Gmail allows you to import MSN contacts.
Hence, you can indirectly import MSN contacts in twitter by importing them first on your gmail account.
Step by step instructions:
Create a new gmail account or use your existing one if you don’t mind having your hotmail/msn/windows live and gmail contacts all at the same place. I used my existing one. Read the rest of this entry »
My Gmail inbox space was almost completely used last week. I needed to delete mails to free up space but didn’t have time to sort out the trash out of important mails. Ofcourse, downloading all of them was an option but when you have an internet connection like mine, you even dread to watch a youtube video, let alone downloading a massive 7GB inbox.. So what I did was made a new gmail account and forwarded all my incoming mails to the new account. This saves me from the trouble of telling every other person about my new email address. Everyone can email at my old address and I will recieve them at my new address. Read the rest of this entry »