i got a exception when send mail
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. s2sm7483493pfa.167 - gsmtp
i given Host,Port No, credentials correctly, but exception will be like this.
can anyone help me..

Amit GuptaRank #190 · 12.8K reputationPosted Feb 23, 2019, 3:43 AM EST
Atul SharmaRank #656 · 3.7K reputationPosted Feb 22, 2019, 11:50 PM EST
Md SarfarajRank #194 · 12.4K reputationPosted Feb 23, 2019, 5:46 PM EST
Željko PerićRank #644 · 3.7K reputationPosted Feb 23, 2019, 10:51 PM EST
Vivek KumarRank #272 · 9.3K reputationPosted Feb 24, 2019, 7:52 AM EST
Leon DRank #851 · 2.6K reputationPosted Feb 24, 2019, 3:07 PM EST
Ravishankar NRank #241 · 10.2K reputationPosted Feb 25, 2019, 2:14 AM EST
ram kumarRank #5,536 · 296 reputationPosted Feb 25, 2019, 3:22 AM EST