# Email as attach file

**URL:** https://www.finalbuilder.com/forums/t/email-as-attach-file/4443
**Category:** Discussion
**Created:** [July 12, 2010, 12:27pm UTC](https://www.finalbuilder.com/forums/t/email-as-attach-file/4443 "2010-07-12T12:27:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 12, 2010, 12:27pm UTC](https://www.finalbuilder.com/forums/t/email-as-attach-file/4443/1 "2010-07-12T12:27:50Z")

</div>

Hi,

I am having trouble emailing a file using the "E-mail" funktion.

The case is:

I have to find af file on a fileshare. When the file is found (file exist command) I have to e-mail the file. Not copy the text into the email. The file is found based on af Fileset.

Can anyone help?

&nbsp;

Best regards Gordon

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [July 12, 2010, 11:06am UTC](https://www.finalbuilder.com/forums/t/email-as-attach-file/4443/2 "2010-07-12T11:06:15Z")

</div>

Hi Gordon,

&nbsp;

How are you attaching the file to the email? Just tested it here with the latest version of Automise 3 and it works as expected, I've attached the project so you compare it to your project.

&nbsp;

Regards,

Paul.
[SendEmail.atz3](https://www.finalbuilder.com/forums/uploads/default/original/2X/3/34e4ff298b21d9981257a4a993f0efdd7143dd85.atz3) (2.65 KB)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 13, 2010, 12:07pm UTC](https://www.finalbuilder.com/forums/t/email-as-attach-file/4443/3 "2010-07-13T12:07:50Z")

</div>

Hej Poul,   
  
 It works as a charme. Did not know that you could use a variable to store the file in.   
  
 Thanks!   
  
 If I want the name of the file to be the subject in the e-mail - can I do that? I tried %file% and %fileset% but it uses the filepath of the fil. It is only the filename attatch that i want as Subject in the e-mail.   
  
 Best regard   
 Gordon - Denmark

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 13, 2010, 12:52pm UTC](https://www.finalbuilder.com/forums/t/email-as-attach-file/4443/4 "2010-07-13T12:52:00Z")

</div>

Have a look at the Path Manipulation Action, you can use it to extract the filename to another variable.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 14, 2010, 6:26am UTC](https://www.finalbuilder.com/forums/t/email-as-attach-file/4443/5 "2010-07-14T06:26:35Z")

</div>

Super
