back to email

I have RouterOs 4.9 on intel PC. how can I send system backup file automatically once every 12hrs at 12:10 from gmail or yahoo to hotmail email ?

Could you show using Winbox and what field I need to change?

Note : before I used the following
in Tool–> email
server IP: 74.125.91.109
Port: 587
email:namo@gmail.com
username:namo@gmail.com
password:…

In scripts:

/system backup save name=$backupfile
:log info "backup pausing for 10s"
:delay 10s
:log info "backup being emailed"
/tool e-mail send to="namo@hotmail.com" subject=([/system identity get name] . \
" Backup") from=namo@gmail.com file=$backupfile server=74.125.91.109
:log info "backup finished"

In Scheduler, I run backup script every 12 hours

It was working before but now the email sending doesn’t happen(a backup copy still stored in the Mikrotik)

I don’t know if something wrong with gmail (I replace it with yahoo and it worked)
I just change to namo@yahoo.com and server IP to 69.147.102.58 in the email and the script

I don’t believe that you can specify the port that SMTP uses inside of the Mikrotik. SMTP by default is port 25, and I’m guessing that is where your problem came from with gmail.

Just add tls=yes to your e-mail command.

The ability to change TLS setting was added in v4.6:

*) email - user must enable tls explicitly



/tool e-mail send tls=yes to="namo@hotmail.com" subject=([/system identity get name] . \
" Backup") from=namo@gmail.com file=$backupfile server=74.125.91.109

now yahoo is working with port 587.