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 0.0.0.0:8080

Start MailCatcher

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
Advertisements

[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

Laptop

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

OS: Windows 7

Netbook

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

OS: LMDE 2012 04, Windows 7

Phone

Nokia N95 8GB iPhone 5 16GB Black

Tablet

iPad 1 WiFi only 16GB black

Headphone

Sennheiser HD205

HDD & Portable HDD

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

Accessories

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

SMS contest in Mandalay

This morning, I was in Skywalk Shopping Mall, exactly in the square in front of the Orange Supermarket. There was a stage, screen, soundboxes, and crowd. people in front of the stage are sitting and handling a GSM phone for the SMS contest held by AnyCall. This contest is sponsered by Cafe Picasso, Min Thi Ha Cafe and others. The presenters are from Dream Boat. Technically sponsered by MIT.

Some of the contest is to entered the quiz answers correct and fast. It is the demo of the contest and some gift given out. Later big Mobile Phone photos were cut down into pieces and let the crowd arrange them into correct one. And here some gift given out. Last for the morning session, fast SMS contest was started. A saying or motto is displayed on the screnn and the contestants had to sent it fast and correct.

In the First round, the contestants are divided into groups and prizes were given to the member of the group. Next round was individual contest.

AFAIR, the person who won the individual contest is “Kyaw Zin Latt”.

In the group round, I was sitting near him. His typing speed was quite good and no match for the other contestants. He also had his 2 friends besides him to tell the message he had to entered and to correct the spelling. No matter what, he is quite a SMSer.

As a prize, he got a pillow worths around 18,000/- Ks.