send email for your dynamic ip
| Very often we are on dynamic ip provided by your ISP. 
 I recently encountered problem with the ISP. As such my router keeps on updating the dynamic DNS. At the end, it is considered as abuse and my domain is blocked.
 
 I have tried another way to get your dynamic ip address. At least you can have a temporary access using IP address
 
 Require the following software
 smtp-cli
 see the following link to install and also dependencies
 http://www.logix.cz/michal/devel/smtp-cli/
 
 create a script e.g. emailip like this
 
 #!/usr/bin/perl
 
 `wget http://checkip.dyndns.org`;
 `smtp-cli --from xxxx@domain1.com --to yyyy@gmail.com --subject "Your_ip_address " --attach index.html --host=your smtp host --user=username  --pass=zzzzz`;
 `rm index.html`;
 
 chmod +x emailip
 
 run it as sh emailip
 
 You will receive an email like this
 
 Current IP Address: xxx.yyy.zzz.nnn
 
 Lastly if success, add it as cron job.
 Remember it is a backup
 |