0

1

Hi I am using gmail smtp with port 587. that is working fine on local but not working on production. my website is hosted on AWS EC2.

enter image description here

I have added the port in security group as well.

Please help!

Thanks.

Naresh
  • 16,698
  • 6
  • 112
  • 113

2 Answers2

1

First check your code is working or not by selecting All traffic range option. aws If that works then remove above setting and add it for 587 with other necessary port like https requires 443 port etc.

Also check Outbound port Settings.

Saurabh Lende
  • 953
  • 2
  • 13
  • 19
Nikhil Lende
  • 129
  • 7
0

You have opened a Custom TCP port. SMTP traffic can be handled through TCP but only at port 25 which is dedicated to SMTP via TCP (see more). What you need here is to add an outbound traffic rule (if you are trying to send an email from your instance) of type SMTP at port 587 in you security group.

bot
  • 1,293
  • 3
  • 17
  • 34