When an email is sent, it first goes to the primary server. The primary server processes the email and attempts to deliver it to the recipient's email server. If the primary server is unable to perform this task due to any issue such as high traffic or hardware failure, the secondary server takes over. The secondary server has the same configuration and capabilities as the primary server, ensuring seamless transition and continuous email delivery.