Problem sending emails with attached files and "dynamic" path

Events happening in the community are now at Drupal community events on www.drupal.org.
narcisgirona's picture

I have created a rule which sends an HTML email whenever a user posts an article. Everything work just fine but the attachments files. The idea is to send as attached files the images which the user just uploaded/posted. Actually I'm able to send emails with attached files as long i provide the absolute path: /sites/default/files/attachment_image.jpg but since i will not know the name of the users uploaded files I should configure it something like: /sites/default/files/[node:field_image] to make it more dynamic.. but this options does not work and can't figure it out how to do so.. :(
I heart that I should write a snippet to use a file field as an attachment but to be honest have no idea how to do it.

Any help will be much appreciated.

Thanks guys!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: