Error sending email <filename.rsc>:error handling file

RB2011UiAS and any other RB. v6.38.1 or current v6.39.1 it worked on v6.30 I have created a script to export compact file=filename.rsc it create the file and I can send the file on an email manually on email tool. But when it runs automatically from the script and the scheduler it always gives the error handling file. Tools email work perfectly sending the file manually using send email button Here is the copy of the script:

/system script
add name=“e-script” policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon,dude
source=“/export compact file=([/system identity get name]); /tool
e-mail send to= "netadmin@lightningspeed.net" subject=([/system identity get
name] . " rsc") file=([/system identity get name] . ".rsc")”

/system scheduler
add comment=“” disabled=no interval=1d name=“email-script” on-event=e-script
start-date=jan/01/1970 start-time=08:45:30

Hi.

I test your code and works for me, please tell me what is exactly the error to help you better.

Maybe your filename.rsc has to many words or especial characters.

This is the error when I run it.

That is a image of the error from the log but it says: Error sending e-mail <AbeTest.rsc>: error handling file

I did it it work one time and then when I run the script again it shows that error on the log.

Try to use fliname without space.

Everything is workin the problem is when you tried several times same day it shows that error message.