send mail added, bug fixed