added working function to auto welcome email and newsletter signup