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:
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
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?