I have been trying to run an email backup script but for one reason or another I can not get it send the mail. The script runs fine etc, but no email is ever recieved. Below is the script i have but it dont work lol.
/system backup save name=email_backup
/tool e-mail send file=email_backup.backup to=“phonyemail@home.com” body=“See attached file for System Backup” subject=([/system identity get name] . " " . [/system clock get time] . " " . [/system clock get date] . " Backup")
My mail provider sent me this php script below but I cant use it I am hoping someone can tell me a way to implement it to my router also this is the ip to the server I am sending to 207.97.245.100 I am currently using rackspace. below is the script they sent me lol..
<? $headers = 'From: '; mail('', 'the subject', 'the message', $headers, '-'); ?>
\
[phonyemail@home.ca - Fri Feb 08 18:58:16 2008]:
/ tool e-mail
set server= from=“souris-mikrotik@home.com”
/ system script
add name=“backup_mail” source=“/system backup save name=email_backup
\n/tool
e-mail send file=email_backup.backup to="phonyemail@home.com"
body="See
attached file for System Backup" subject=([/system identity get
name]
. " " . [/system clock get time] . " " . [/system clock get
date]
. " Backup")\n”
I am hoping someone can help me out…
Cheers…