Auto Mailer Cbe Websites

We are looking for a script to send automatically letters to clients who sign in on a cube cart website. When the client signs in he/she should get automatically a letter. When they order as well and when the shippment goes out as well