Hello Edson,
Maybe this will help.
In app I work on emails are being generated through UserMailer
controller
def new_project_notice(user, project)
host = Hobo::Controller.request_host
app_name = Hobo::Controller.app_name || host
@subject = "#{app_name} -- new project for " +
project.company.name + ": "+ project.description
@body = { :user => user, :host => host, :app_name =>
app_name, :project => project }
@recipients = User.role_is_not("international").*.email_address
@from = "no-reply@#{host}"
@sent_on = Time.now
@headers = {}
end
And inside app/view/usermailer I have files with names corresponding
to methods in controller like
new_project_notice.erb which has email content:
"Final approval for project <%= @project.company %> has been granted.
<%= url_for(:host => @host, :controller => "projects", :action =>
"show", :id => @project) %>"
--
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.