Working code to add account to table, and also sendmail