Community discussions

MikroTik App
 
rubenb
just joined
Topic Author
Posts: 10
Joined: Mon Sep 27, 2004 4:27 pm

e-mail error in script

Tue Mar 22, 2005 3:07 pm

friends
anybody have an idea what happend, I have the following problem with an script, only in one of my 10 routers, and I don't know what is the problem.

My script

/export file=BackUp; /tool e-mail send file=BackUp to=validemail@mydomain.com subject=([/system identity get name] . " " . [/system clock get time] . " " . [/system clock get date] . " Backup");

When the script run, in th elog view this error:

Error sending e-mail valid TO address

but my email is correct
Same script is running in other of my routers....
Plese helpme....!!!!

muchas gracias
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Tue Mar 22, 2005 5:50 pm

Take support-output file from your router after you've tried to execute the script and send it to support@mikrotik.com
 
paralichko
just joined
Posts: 10
Joined: Mon Apr 25, 2005 10:36 am

Re: e-mail error in script

Sat Apr 30, 2005 8:06 pm

Check the email server and permission to it !!!



Be healthy
BEST REGARDS GABY !!!
 
randyloveless
Member Candidate
Member Candidate
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

email error

Fri May 06, 2005 9:37 pm

cannot send email , i keep getting

system error error sending email . error connectiing to server

what does this mean and how do i correct the issue.


Randy
 
randyloveless
Member Candidate
Member Candidate
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Sat May 07, 2005 12:44 am

your problem is you need to tell MT what server you want to send your email thru. this is the reason for the error

this is your script that i modified

:if ([/ping 192.168.0.252 count=5] = 0) do={/tool e-mail send to="MT@somwhere.net" subject="Can't ping 192.168.0.252" server="64.xxx.xx.xx" from="MT@somwhere.net"}

this works i tested it and verified thru our server works fine

Randy
Last edited by randyloveless on Sat May 07, 2005 1:28 am, edited 1 time in total.
 
randyloveless
Member Candidate
Member Candidate
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Sat May 07, 2005 1:27 am

my bad wrong script

try this one

system backup save name=email
/tool e-mail send to="valid@email.com" from="valid@email.com" server="64.xx.xxx.x" subject=([/system identity get name] . " " . [/system clock get time] . " " . [/system clock get date] . " Backup") file=email.backup

Randy