• try vsql-email, you can find it on google, it is exactly what you want and saved me a lot of time.