I'm doing up a photography site where each post is a photo project, and each post attachment will be displayed on its own attachment page (linked to from the main post page).
On the attachment page, I want to give an email link, below the image.
At the moment, the code is something like this:
<a href="mailto:firstname.lastname@example.org?Subject=Image: <?php the_title(); ?> - [FILE NAME HERE]">Get in touch about this image</a>
I want the subject of the email to include the file name of the attachment (not title, not meta info, not attachment page URL). Is this possible? If so, how would I do it?