I have a script that is running as a runner script, its job is to find
reports that have recently been published and send emails to the users
notifying them of the reports. The reports are available online, but
are also available via a generated PDF which the users can see by
tacking on .pdf to the end of their URL.

I want to attach the pdf to the email that the runner script sends
out. The problem I'm facing is that the runner script cannot 'find'
the pdf and I dont know why - here are my guesses:

1. You have to authenticate to see the pdf reports (which is true, but
im not sure if the action mailer needs to authenticate and cannot do
that?)

2. I am only able to use the path of the pdf, not the full url. The
pdf is available through a url obviously, but the url contains a
subdomain - but because this is a runner script that runs behind the
scenes, it has no context and therefor cannot determine the URL.

I'm not sure which one is causing the failure, anyone have any ideas?

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to