There's nothing special about email in hobo compared to rails.  Check
the user_mailer.rb and the related view

class UserMailer < ActionMailer::Base

  def forgot_password(user, key)
    host = Hobo::Controller.request_host
    app_name = Hobo::Controller.app_name || host
    @subject    = "#{app_name} -- forgotten password"
    @body       = { :user => user, :key => key, :host =>
host, :app_name => app_name }
    @recipients = user.email_address
    @from       = "no-re...@#{host}"
    @sent_on    = Time.now
    @headers    = {}
  end

  ...
end

cat app/views/user_mailer/forgot_password.erb
<%= @user %>,

If you have forgotten your password for <%= @app_name %>, you can
choose
a new one by clicking on this link:

  <%= user_reset_password_url :host => @host, :id => @user, :key =>
@key %>

Thank you,

The <%= @app_name %> team.

----------------

the only thing out of ordinary with email is how you call to send an
email, like this from the forgot_password transition:

UserMailer.deliver_forgot_password(self, lifecycle.key)

Instead of calling UserMailer.forgot_password(...) which is what you
define, you call deliver_method_name.

Also, you need to set your smtp settings and such which is going to
depend on how your email system works.  Found this with google (rails
email) and seems like it's right from a quick glance.
http://email.about.com/od/emailprogrammingtips/qt/et_mail_rails.htm

On Sep 1, 2:10 pm, Scorpio <[email protected]> wrote:
> Hi it's me again
>
> I've been trying to make a contact form with hobo at work and its
> kinda going along but then I realized I have no idea how to mail that
> to an email address. help... I'm close to Karōshi with this freakin
> project I got myself into.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to