SMTP Configured but doesn't send external email invites to users

I’m trying to configure grafana to send email invites to new user but cannot succeed in it. The server is running on an EC2 instance on ubuntu 18.04

I have attached screenshots of my configurations

@daniellee any help?

Apparently Grafana doesn’t come with it’s own SMTP server as I thought.
So the settings were correct, it just didn’t have anything to send mail with.

Yes, data is wrong. You should enter following data:
enabled = true
host = yourEmailHost:port
user = yourEmail

If the password contains # or ; you have to wrap it with trippel quotes. Ex “”"#password;"""

password = passwordForYourEmail
;cert_file =
;key_file =
;skip_verify = false
from_address = yourEmail
;from_name = Grafana

EHLO identity in SMTP dialog (defaults to instance_name)

;ehlo_identity =