How to use SMTP Component

I am trying this block but it’s not working please guide me.

Thank you.

1 Like

There are few parameters missing such as TlsEnabled and Auth,
set both to true

I know why it is not working, you haven’t Enabled less secure apps in you google account

If component still gives you error, you can use my aix made specifically for Gmail SMTP

com.kab.MailSender.aix (705.7 KB)

1 Like

Do we have to use email in username and host will be same?