The sending server connects to the recipient's server, usually on port 25, introduces itself with the EHLO command, names the sender and the recipient, and transmits the email. At each step the server replies with a code. Codes starting with 2 mean success, 4 a temporary error after which the email is retried, and 5 a permanent rejection.
Email apps and websites send emails through port 587 with a login and password, and sometimes through 465 with encryption. If you connect your website to an email service over SMTP, check the server address, the port, the encryption type, and that the sender address belongs to your verified domain.