# Sha1 encryption with actionmailer

**URL:** <https://www.ruby-forum.com/t/sha1-encryption-with-actionmailer/68533>\
**Category:** Rails\
**Created:** [September 13, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/sha1-encryption-with-actionmailer/68533 "2006-09-13T13:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecd19e/32.png) [@harp](https://www.ruby-forum.com/u/harp)\
**Post date:** [September 13, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/sha1-encryption-with-actionmailer/68533/1 "2006-09-13T13:25:32Z")

</div>

Hi,

i was wondering wether this was an impossible task, or if there was  
something i am doing wrong along the way, but when i put

require ‘digest/sha1’  
class Emailer \< ActionMailer::Base

the encryption didn’t work, however the same exact syntax when i put it  
in my user model, worked;

require ‘digest/sha1’  
class User \< ActiveRecord::Base

i restarted the server, and am in development mode.  
is there a deeper problem, or am i being blind to some stupid note?

many thanks,

harp
