[fix bug 874403] Implemented generic send_remo_mail.
* Change main function to use IDs in voting app.