Step by step to setting SMTP server

Can you help me to configure SMTP server? i have a problem when i try to use public ip (on EC2) i didn’t get any notification for alerting the gas volume, but when i used it send notification by email, is it the problem coming from setting on aws or i need to put some additional code to make it works…

Check this

Hope this helps.