Let's explain how to add these two servers to a recorder or camera, bearing in mind that it may be easier to do so with Yahoo as there are fewer steps to configure.
GMAIL
The data of this mail server are the following:
Smtp server: smtp.gmail.com
SMTP Port: 587
Enable TTL
It's also important to enable POP and IMAP in your mail.
It is also necessary to activate the sending of emails from less secure applications, from this tab: https://www.google.com/settings/security/lesssecureapps
IMPORTANT: Do not enable two-step gmail protection
Example: brand Safire Safire with Gmail
YAHOO
Smtp server: smtp.mail.yahoo.com
SMTP Port: 587
Enable TTL
Example: X-Security brand with Yahoo