I have to send an email using a pre-defined account, I have all the information, smtp server name, email address, user, password. This account uses TTL. How to create the script to send this email using VBA. I'm having problems with the Credential parameter, I don't know how to put the username and password
"Send-MailMessage -To 'xxxx@yyy' -from 'kkk@yyyy' -subject 'Teste' -body 'Testando o envio' -stmpserver 'smtp.gmail.com' -UseSSL -Port 587 -Credential (I don't know how to make this parameter) "