# \[PATCH\] Mailer Extension

**URL:** <https://www.ruby-forum.com/t/patch-mailer-extension/88724>\
**Category:** Radiant CMS\
**Created:** [March 13, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/patch-mailer-extension/88724 "2007-03-13T20:44:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Niles](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ce73a5/32.png) [@Christian\_Niles](https://www.ruby-forum.com/u/Christian_Niles)\
**Post date:** [March 13, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/patch-mailer-extension/88724/1 "2007-03-13T20:44:32Z")

</div>

Hi All,

I put together a simple email form this morning, and everything  
worked great. But one issue I ran into is that the From: header is  
static, and there was no way to even set the Reply-To: header either.

My form is a simple contact system, and I wanted to make it easy to  
respond to form emails by simply hitting reply. I’ve attached a patch  
which supports this as follows:

- Adding a ‘from\_field’ property to the config data tells the mailer  
which form field contains the from email;

- Adding a ‘reply\_to\_field’ property to the config data specifies  
which field to use for the Reply To: header;

- If no ‘reply\_to\_field’ property is present, the Reply-To: header  
will be equal to the From: header.

christian.
