Solve and debug one problem at a time. Your issue here has nothing to do with email. First go check your stock levels, then prepare a message body and send an email if you need to. I really recommend ...