Community discussions

MikroTik App
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

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

Wed Mar 02, 2011 10:55 pm

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
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

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

Wed Mar 02, 2011 11:55 pm

Hi, there is a limit of chars in the body. I don't remember how many... Sorry.
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

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

Thu Mar 03, 2011 6:07 pm

Thanks for your reply!

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

Thanks

Fabrício
Hi, there is a limit of chars in the body. I don't remember how many... Sorry.
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

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

Thu Mar 03, 2011 6:13 pm

I think it's not possible, and you can't send large files.
 
tamilmaran
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Mon Sep 05, 2011 9:36 pm

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

Mon Jul 30, 2012 4:18 pm

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

Who is online

Users browsing this forum: No registered users and 55 guests