PUtting the content of RSC file on the body of an email

Hi all!

I’m tring to put the content of the RSC file created by my script on the body of one email, but nothing happen. The email cames with the attachment and with the static text on the body, but without the RSC content.

The script I’m using is:
:local ident ([/system identity get name]);

:local nome (“Backup_” . [/system identity get name] . “.rsc”);
/interface wireless export file=$nome;
:delay 10;
:local configs (“Content of the file: $nome \n\n” . [/file get [/file find name=$nome] contents]);

/tool e-mail send from=email@mydomain.com server=201.91.202.26 to=email@mydomain.com subject=“[BACKUP MK] $ident - TESTE” body=“$configs” file=$nome;

The email is working! I receive the message but I want to put the cotent of the file on the body!

Can someone help me please?

Thanks!

Fabricio

Hi, there is a limit of chars in the body. I don’t remember how many… Sorry.

Thanks for your reply!

Do you know if I can send an email with 2 attachments?

Thanks

Fabrício

I think it’s not possible, and you can’t send large files.

do you have any auto backup mail script using rsc format.
for New version Router OS
Thank in advance