Quick Test Sending Mail in PHP

This is how I test my php code sending mail (with mail() function) using

Install MailCatcher

sudo apt-get install ruby ruby-dev

sudo gem install mailcatcher

Start PHP server

php -d sendmail_path="env /usr/local/bin/catchmail -f noreply@domain.com" -S

Start MailCatcher


Run and check

  • Run the script by visiting the page (that sends mail)
  • Check the mail at

Related tasks

  • check which php.ini is in effect by running php --ini
  • check sendmail_path has been set correctly or not by using echo phpinof() in a page
  • check the path of catchmail by running which catchmail
  • close the mailcatcher server from web interface
  • read mailcatcher help by running mailcatcher --help
  • read php help php --help

[wait] Raneto 0.6 to 0.7.1

Raneto is Markdown powered Knowledgebase for Nodejs

Raneto is an open source Knowledgebase platform that uses static Markdown files to power your Knowledgebase.

I have been using version 0.6 in my personal computer and wrote a few KB for myself. The other day, I found out it has been updated to 0.7.1 and I saw many new features.

I underwent the procedures described in updating Raneto and I found myself left with broken website.
Continue reading “[wait] Raneto 0.6 to 0.7.1”

Firefox, Flashgot and JDownloader

Firefox is one of the best modern browsers.

JDownloader is one of the best free download managers.

Flashgot is the addon for firefox that can integrate various download manager like JDownloader with Firefox.

Flashgot has the function to detect the download manager installed on the machine and it does support JDownloader.

In another way, JDownloader supports installation of Flashgot in Firefox and integration of them with JDownloader by providing a button.

Button does not work

But JDownloader’s button to do so does not work (in my case) with later Firefoxes.

I carried out the following procedure to integrate Flashgot with JDownloader.

Continue reading “Firefox, Flashgot and JDownloader”

My tools and gadgets

list of computers, laptops, handphones and accessories I used everydays

Desktop Computer

Mac mini July 2011 model (Core i5 2.3 GHz, 8GB of DDR3 1333MHz, 500GB, AMD Radeon HD 6630M 256MB)

Monitor: ViewSonic VX2250 (1920×1080)

Mouse: A4Tech N600X

Keyboard: Microsoft Natural Ergonomic Keyboard 4000

OS: Lion OS X 10.7.5 10.8.2, Windows 7 with BootCamp


Dell LatitudeE6520 (Core i7 2.80GHz, DDR3 8GB , HDD 320GB, 15.6” Screen)

OS: Windows 7


MSI Wind U160DX (Atom N455, DDR3 1GB, HDD 250GB, 10” Screen)

OS: LMDE 2012 04, Windows 7


Nokia N95 8GB iPhone 5 16GB Black


iPad 1 WiFi only 16GB black


Sennheiser HD205

HDD & Portable HDD

320GB WD Blue, 500GB WD Green, 1500GB Seagate Barracuda,  500GB Verbatim Portable HDD


Belkin USB Hub, Fujitsu external DVD writer, USB 2.0 to SATA cable, Orico HDD Dock, Apple TV 3rd Generation