Hi

I have vacancies, I want to recommend, and if wanted directly attache
as pdf.

You get the PDF with e.g. /vacancies/9887.pdf
How can I attach some thing in a mail?

Whats the best pratice here?
Sending through Rack?
Streaming / self calling HTTP URI and attach it?

I tried even to do something like this:


  # Forward via Email
  def forward
    render_to_string :action => "show"
    pdf = response.body
    @vacancy = Vacancy.find_by_vacancy_number(params[:vacancy_number])
    if NotificationMailer.recommendation(@vacancy, params[:email],
(params[:pdf] == 'true'), params).deliver
      flash[:notice] = 'The Job offer has been sent.'
    else
      flash[:notice] = 'The Job offer could not be sent'
    end
    redirect_to :action => :show, :id => params[:vacancy_number]
  end

Thanks for any clue!



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to