We are set value true for this "OPD.AutoSendPrescriptionToMail"  configuration as well as value true for this "Alert.IsActivateEmail" configuration and OPD save then getting error of server error in application and user don't get any prescription mail.