a)https://php.com.br/51?como-enviar-e-mails-com-php-mailer

b)https://support.google.com/accounts/answer/185833?hl=pt-BR