Error sending E-Mail : Socket Error

Hello

I would like to use the following script to backup my router 2.9.xx but its not working. Log says System Error : ERROR sending E Mail: Socket Error Other scripts like sending mail on reboot are working fine. but this script is not working. My script follows
[admin@hypewifi0001] system script> pr
0 name=“ebackup” owner=“admin” policy=ftp,reboot,read,write,policy,test,winbox,password
last-started=aug/02/2006 11:15:30 run-count=1
source=/system backup save name=([/system identity get name] . “-” . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); /tool e-mail send to=“srikanth418@gmail.com” subject=([/system identity get name] . " Backup " . [/system clock get date]) file=([/system identity get name] . “-” . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . “.backup”); :delay 10; /file rem [/file find name=([/system identity get name] . “-” . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . “.backup”)]; :log info ("System Backup emailed at " . [/sys cl get time] . " " . [/sys cl get date])

Somebody help resolving Thanx in advance,

regards,

srikanth

There is nothing wrong with the script. I just loaded the exact same script into a Routerboard running 2.9.51 - it emailed me the backup just fine. Not surprising as this is the exact same script as in Example 2 in the wiki. :slight_smile:

So the problem seems to be elsewhere.

Using the command console, what do you have when you do …

/tool e-mail print

Do you have a valid server IP address listed? Is this the IP of your SMTP mail server on port 25? (The mail server must NOT require authentication. This is not possible with v2.9.xx)