This example will use Gmail SMTP server to send Kong email to recipient. For more details about using Gmail SMTP server, see the Gmail SMTP server documentation in Related resources.
-
Set up an
app passwordfor your Gmail account. This will enable you to use the email service without using your real password.You may need to enable 2 Step verification for your account to create an
app password. For more details on how to enable 2 Step verification, see the 2-Step Verification documentation in Related resources.After you create an
app password, you should see the password for your account like below: -
Setup kong parameters for SMTP in
kong.confor as environment variables. Below are the minimum required parameters to setup the SMTP with Gmail SMTP server. Below will usekongtestsmtp@gmail.comas a test account.smtp_mock=off smtp_host=smtp.gmail.com smtp_port=587 smtp_starttls=on smtp_username=kongtestsmtp@gmail.com <-- your gmail account smtp_password=kvttlirflsbobuwx <-- your gmail app password smtp_auth_type=plain admin_emails_from=kongtestsmtp@gmail.com <-- The email FROM for Kong to send out, it must be same with your smtp_username, as you will using the account to send it out.For more details on the parameters, see the Kong SMTP configuration reference in Related resources.
-
Now invite a new admin by going to
Teams>Invite Adminfrom Kong Manager and specify the admin email. For this example, the admin email will use the same test account, so thekongtestsmtp@gmail.comwill receive the invitation email from the samekongtestsmtp@gmail.com -
Check your email inbox. You should see the invitation email from email you set for
admin_emails_from.