Drupal development mail testing

One of the problems I have encountered while developing for Drupal on a laptop is how to test the sending of emails.

I've recently come across two solutions.

Devel Module

This helpful module includes a mail wrapper function which directs all mail to the Drupal logs, perfect for testing volume mail sending or just for getting a password reset link.

http://drupal.org/project/devel

SSH tunnels

This is probably a more specialist solution - but I've recently been using an SSH tunnel to allow me to send and receive email through a firewall. As a bonus this means that all mail on localhost port 25 is redirected to my mailserver and PHP mail functions Just Work

ssh example.com -L 25:localhost:25

Tags

Post new comment

Got something to add - just enter a comment
all other fields are optional.

Your email address will not be published.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.