Why does poisoning cause foaming at the mouth?

When a patient is poisoned, the parasympathetic nerve endings are overexcited, smooth muscles are contracted and secretion of various glands is increased, which may manifest as profuse sweating, foaming at the mouth, narrow pupils and blurred vision.