I saw this topic to send an attachment file in an email but I dislike because it edits a template.php while I would do a custom module for this.
I have a webform with a file field for send personal CV. Now I want it so that that after the form submission the file can be attached within the email and immediately delete it from the server for privacy purposes...
I think that this is possible with a hook but I'm a PHP beginner...