Categories
Personal

Good Bye 2009, Welcome 2010!

I should feel sorry now that 2009 is leaving me, leaving us! I have had the most eventful year in 2009 🙂

First things First
What were the things those happened first time in my life?

— I sat for University Admission test.
— Got chances in SUST CSE and 4 disciplines in KU.
— My University life began.
— Started free lancing seriously.
— Started earning money at a regular interval.
— Went to BAD picnic and my first tour with the BAD family into the Sunderbans 🙂
— Joined my first Job (At Leevio as a software engineer).
— Attended the first ever FICC.
— Stood 3rd in my first Uni term final 🙂
— Started using Ubuntu seriously
— Started working with WP API
— Worked on GAE and other Python stuff 🙂

What else?
— BAD won the cricket championship. I was an active part in the gallery.
— Met a bunch of cool friends.
— Lost a few fake ones as well.
— My brother got chance in Khulna Zilla School 🙂

Wishlist for 2010
I would wish only one thing — A laptop in 2010 🙂

I am really contended with what I have got in life. I am happy with what I got in 2009. Thanks to the Almighty Allah for everything HE has blessed on me 🙂 I just pray that nothing bad happens in 2010 😀

I pray to the Almighty so that HE bestows his blessings upon those who have a worse life than me. I have nothing more to expect 🙂

Good Bye 2009, Welcome 2010! 🙂

Categories
PHP

A PHP Mailer Class

UPDATE: Added application of the basename() function to the attached filenames to get the filenames only.


This php class lets you attach multiple files and send emails via Postfix without digging into the messy headers 😀

Example USE:

Happy Mailing! 😀

Categories
Python

Python: Sending a bunch of images as email attachments

Python is just beautiful! In my last post I mentioned how you can setup an email server. Now, here’s the code I use to send a bunch of images as attachments with my outgoing emails. This code snippet was taken from the Python manual. But unfortunately the code was not complete. So, I had to hack through it and configure it to suit my needs.

It currently reads the “images” directory and mails out the png files. But if you look at the codes, you’ll see that the codes can be easily changed to send other files as well 🙂

I love Python!

PS: I am looking for a good way to attach files using PHP. The way I found was messy! I know the huge PHP community certainly has something better to offer. I will post it as soon as I find it 🙂