For yandex.com...
smtp.yandex.com is the server
587 is the port. 465 is supported, but don't use it (dated).
Username: username@yandex.com
Password: App password. And it must be set to use this service.
For yahoo.com...
smtp.mail.yahoo.com is the server
587 is the port. 465 is supported...