Email alert not working

What more do i need to edit before it works?

#Email transport
transport_email_enabled = true
transport_email_hostname = localhost
transport_email_port = 25
transport_email_use_auth = false
transport_email_use_tls = false
transport_email_use_ssl = false
transport_email_auth_username = you@example.com
transport_email_auth_password = secret
transport_email_subject_prefix = [graylog]
transport_email_from_email = graylog@example.com

Nothing.

If your configuration is correct, the email alarm callback will be able to send out emails.

I changed it to the i.p of my smtp server but it didnt work. the shaded portion is the private i.p i.e xx.xx.xx.xx:25

Is the provided SMTP server accessible on that address on port 25/tcp?

What’s the output of the following command on the machine running Graylog (replace xx.xx.xx.xx with the IP address of your SMTP server)?

# echo "QUIT" | nc xx.xx.xx.xx 25

Netcat: connection refused.

Cool, now you only have to find out why you can’t access the provided SMTP server from that machine.
But that has nothing to do with Graylog.