Configure Sendmail with Wamp

Now a days there are always tasks which require email notification, such examples are notify user on account creation, periodic notification for activities done by user, notify user on submission of form, etc. There are lots of other cases where you need to test the email and its content. In this post I'll be telling how can we send an email from our localhost.

How to alter views exposed filter allowed value list

Just came across a situation, where wanted to alter the allowed values in views exposed filter depending on users who are viewing them.

View allows site admin to expose its filter value to user, so they can apply different filters while viewing views output. But what if you need to show the allowed list depending on users.

Programmatically output webform block

Webform module provides a way to create forms, which can be used as contests, personalized contact forms, or petitions, etc. One of the recent form which I've created using webform is a Feedback form in site I've built.

Webform module provide support for showing the webform as a block, which extends webform modules functionality to be shown anywhere on a page.

Here's a sample code to render a webform programatically: