Sympathetic nervous system
The Sympathetic Nervous System (SNS) is a branch of the autonomic nervous system. It is always active at a basal level (called sympathetic tone) and becomes more active during times of stress. Its actions during the stress response comprise the fight-or-flight response.

# Overview
Like other parts of the nervous system, the sympathetic nervous system operates through a series of interconnected neurons. Sympathetic neurons are frequently considered part of the peripheral nervous system (PNS), although there are many that lie within the central nervous system (CNS). Sympathetic neurons of the spinal cord (which is part of the CNS) communicate with peripheral sympathetic neurons via a series of sympathetic ganglia. Within the ganglia, spinal cord sympathetic neurons join peripheral sympathetic neurons through chemical synapses. Spinal cord sympathetic neurons are therefore called presynaptic (or preganglionic) neurons, while peripheral sympathetic neurons are called postsynaptic (or postganglionic) neurons.
At synapses within the sympathetic ganglia, preganglionic sympathetic neurons release acetylcholine, a chemical messenger that binds and activates nicotinic acetylcholine receptors on postganglionic neurons. In response to this stimulus, postganglionic neurons principally release noradrenaline (norepinephrine). Prolonged activation can elicit the release of adrenaline from the adrenal medulla.
Once released, noradrenaline and adrenaline bind adrenergic receptors on peripheral tissues. Binding to adrenergic receptors causes the effects seen during the fight-or-flight response. These include pupil dilation, increased sweating, increased heart rate, occasional vomiting, and increased blood pressure.

# Function
The sympathetic nervous system is responsible for up- and down-regulating many homeostatic mechanisms in living organisms. Fibers from the SNS innervate tissues in almost every organ system, providing at least some regulatory function to things as diverse as pupil diameter, gut motility, and urinary output. It is perhaps best known for mediating the neuronal and hormonal stress response commonly known as the fight-or-flight response. This response is also known as sympatho-adrenal response of the body, as the preganglionic sympathetic fibers that end in the adrenal medulla (but also all other sympathetic fibers) secrete acetylcholine, which activates the secretion of adrenaline (epinephrine) and to a lesser extent noradrenaline (norepinephrine) from it. Therefore, this response that acts primarily on the cardiovascular system is mediated directly via impulses transmitted through the sympathetic nervous system and indirectly via catecholamines secreted from the adrenal medulla.
Science typically looks at the SNS as an automatic regulation system, that is, one that operates without the intervention of conscious thought. Some evolutionary theorists suggest that the sympathetic nervous system operated in early organisms to maintain survival as the sympathetic nervous system is responsible for priming the body for action. One example of this priming is in the moments before waking, in which sympathetic outflow spontaneously increases in preparation for action.

# Organization
Sympathetic nerves originate inside the vertebral column, toward the middle of the spinal cord in the intermediolateral cell column (or lateral horn), beginning at the first thoracic segment of the spinal cord and are thought to extend to the second or third lumbar segments. Because its cells begin in the thoracic and lumbar regions of the spinal cord, the CNS is said to have a thoracolumbar outflow. Axons of these nerves leave the spinal cord in the ventral branches (rami) of the spinal nerves, and then separate out as 'white rami' (so called from the shiny white sheaths of myelin around each axon) which connect to two chain ganglia extending alongside the vertebral column on the left and right. These elongated ganglia are also known as paravertebral ganglia or sympathetic trunks. In these hubs, connections (synapses) are made which then distribute the nerves to major organs, glands, and other parts of the body.
In order to reach the target organs and glands, the axons must travel long distances in the body, and, to accomplish this, many axons link up with the axon of a second cell.  The ends of the axons do not make direct contact, but rather link across a space, the synapse.
In the SNS and other components of the peripheral nervous system, these synapses are made at sites called ganglia. The cell that sends its fiber is called a preganglionic cell, while the cell whose fiber leaves the ganglion is called a postganglionic cell. As mentioned previously, the preganglionic cells of the SNS are located between the first thoracic segment and third lumbar segments of the spinal cord. Postganglionic cells have their cell bodies in the ganglia and send their axons to target organs or glands.
The ganglia include not just the sympathetic trunks but also the cervical ganglia (superior, middle and inferior), which sends sympathetic nerve fibers to the head and thorax organs, and the celiac and mesenteric ganglia (which send sympathetic fibers to the gut).

# Information transmission
Messages travel through the SNS in a bidirectional flow.  Efferent messages can trigger changes in different parts of the body simultaneously. For example, the sympathetic nervous system can accelerate heart rate; widen bronchial passages; decrease motility (movement) of the large intestine; constrict blood vessels; increase peristalsis in the esophagus; cause pupil dilation, piloerection (goose bumps) and perspiration (sweating); and raise blood pressure. Afferent messages carry sensations such as heat, cold, or pain.
The first synapse (in the sympathetic chain) is mediated by nicotinic receptors physiologically activated by acetylcholine, and the target synapse is mediated by adrenergic receptors physiologically activated by either noradrenaline or adrenaline.  An exception is with sweat glands which receive sympathetic innervation but have muscarinic acetylcholine receptors which are normally characteristic of PNS. Another exception is with certain deep muscle blood vessels, which have acetylcholine receptors and which dilate (rather than constrict) with an increase in sympathetic tone.